[i3] Fix backlight script and hotkeys

This commit is contained in:
2022-01-12 09:43:20 -05:00
parent 3a8b6dd5aa
commit 544088a7fe
2 changed files with 14 additions and 6 deletions

View File

@ -1,12 +1,18 @@
#!/bin/sh
count=100
hostname=`hostname`
count=200
if [[ $hostname = 'titan' ]]
then
count=50
fi
for i in $(seq $count); do
case $1 in
'up')
brightnessctl s +5
brightnessctl s +3
;;
'down')
brightnessctl s 5-
brightnessctl s 3-
;;
esac
done