Redshift with temp and brightness slider?

Hi everyone

ive switched from Mint and what im missing the most is a easy and graphical way to adjust the color temps and brightness.

I installted redshift with pacman and followed the setup on the wiki but i gotta say it was quite the hassle, and theres no easy way to use it.

anyone has suggestion?

much appreciated

System:
  Kernel: 6.1.8-arch1-1 arch: x86_64 bits: 64 Desktop: Xfce v: 4.18.1
    Distro: EndeavourOS
Machine:
  Type: Desktop Mobo: ASUSTeK model: M5A97 EVO R2.0 v: Rev 1.xx
    serial: <superuser required> UEFI: American Megatrends v: 2501
    date: 04/09/2014
CPU:
  Info: 6-core model: AMD FX-6300 bits: 64 type: MT MCP cache: L2: 6 MiB
  Speed (MHz): avg: 1750 min/max: 1400/3500 cores: 1: 3500 2: 1405 3: 1400
    4: 1400 5: 1400 6: 1400
Graphics:
  Device-1: AMD Hawaii PRO [Radeon R9 290/390] driver: radeon v: kernel
  Display: x11 server: X.Org v: 21.1.6 driver: X: loaded: radeon
    unloaded: modesetting dri: radeonsi gpu: radeon resolution: 3440x1440~60Hz
  API: OpenGL v: 4.5 Mesa 22.3.3 renderer: HAWAII ( LLVM 15.0.7 DRM 2.50
    6.1.8-arch1-1)
Audio:
  Device-1: AMD SBx00 Azalia driver: snd_hda_intel
  Device-2: AMD Hawaii HDMI Audio [Radeon R9 290/290X / 390/390X]
    driver: snd_hda_intel
  Sound API: ALSA v: k6.1.8-arch1-1 running: yes
  Sound Server-1: PipeWire v: 0.3.64 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: ---
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
    driver: btusb
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: see --recommends
Drives:
  Local Storage: total: 465.77 GiB used: 4.94 GiB (1.1%)
  ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB

Partition:
  ID-1: / size: 410.15 GiB used: 4.79 GiB (1.2%) fs: btrfs dev: /dev/dm-0
  ID-2: /home size: 410.15 GiB used: 4.79 GiB (1.2%) fs: btrfs
    dev: /dev/dm-0
  ID-3: /var/log size: 410.15 GiB used: 4.79 GiB (1.2%) fs: btrfs
    dev: /dev/dm-0
Swap:
  ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%)
    file: /swap/swapfile
Sensors:
  System Temperatures: cpu: 20.1 C mobo: N/A gpu: radeon temp: 60.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 265 Uptime: 1h 26m Memory: 23.38 GiB used: 3.91 GiB (16.7%)
  Shell: Bash inxi: 3.3.24

welcome to Endeavouros forum .

:pray: read
A friendly intro about our community rules and tips for the forum

will help you get faster + more helpful answer.

Hope you enjoy your time on EOS

thanks. I updated with more info

Well, lack of the built-in blue light filter is one of the downsides of XFCE.
Basically you have two options: ether to configure Redshift and forget about it (it’s actually not that hard - maybe my thread from last year will be helpful) or try luck with few alternatives like x-flux-gui

thats a bummer

its not that its complicated setting it up, its more that it is not dynamic.
sometimes you want it a bit redder than your standard value because you pulled a double shift.
oneday you want it a bit cooler than (your) standard cause youre watching a movie, and add a bit more brightness because the movie is dark af.
Another time, its deep in the night at 4am and you want it as red and dark as possible.

#!/bin/bash
temp=$(yad --title "Redshift" --text "Set the colour temperature" --scale --step=100 --min-value=1000 --max-value=9000)
redshift -m randr -O $temp -P

That three-line script should do it - run it, select the screen temperature (1000-9000 Kelvin) from the slider and redshift makes the change. The tint sticks until you run the script again and set another temperature.

The randr parameter after -m describes the method used to tint the screen. If it doesn’t work, try another one (redshift -m list gives the available options). Unfortunately that sort of thing is trial and error.

Setting two things at once (temperature and brightness) is much more difficult to write a script for. However, this is a start.

2 Likes

it works real nice!
thanks !

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.