Add support for HW brightness control on desktop

master
Quentin Duchemin 2023-02-19 19:20:05 +01:00
parent fb134bbf39
commit 413c12c378
Signed by: Chosto
GPG Key ID: 96AB8AE7DFEA3D74
4 changed files with 15 additions and 1 deletions

View File

@ -1,4 +1,6 @@
gddccontrol
hamster-time-tracker
musescore
realtime-privileges
zita-ajbridge
zenity

View File

@ -30,6 +30,7 @@ polybar
powerline-fonts
python-pip
python-pygments
python-pyperclip
python-requests
redshift
rofi

View File

@ -48,6 +48,8 @@ exec --no-startup-id amixer -D hw:PCH -M sset Headphone 100%
# BINDINGS FOR STARTING PROGRAMS
##################################
bindsym $mod+b exec --no-startup-id ~/.config/i3/scripts/brightness.sh
##################################
# BINDINGS FOR STANDARD OPERATIONS
##################################

View File

@ -0,0 +1,9 @@
#!/bin/bash
MONITORS='0 9'
BRIGHT=`zenity --entry --width 40 --text="Brightness:"`
for m in ${MONITORS}; do
ddccontrol dev:/dev/i2c-${m} -r 0x10 -w ${BRIGHT}
done