STARTWayland, basically all my dotfiles + wayland equivalent to xinit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
startw/conf/config/scripts/brightness

18 lines
201 B

4 years ago
#!/bin/sh
back="$(xbacklight -get)"
case $1 in
-i)
scale="2.0"
;;
-d)
scale="0.5"
;;
*)
scale="1.0"
4 years ago
;;
4 years ago
esac
val="$(echo "${back} * ${scale}" | bc)"
4 years ago
exec xbacklight -fps 30 -set "$val"