sway: Add shared brightness control bindings
This commit is contained in:
parent
1ab7f02535
commit
471b499720
|
@ -0,0 +1,4 @@
|
|||
# set brightness logarithmically by factor 1.4
|
||||
# .72 is just slightly bigger than 1 / 1.4
|
||||
bindsym --locked XF86MonBrightnessUp exec light -S "$(light -G | awk '{ print int(($1 + .72) * 1.4) }')"
|
||||
bindsym --locked XF86MonBrightnessDown exec light -S "$(light -G | awk '{ print int($1 / 1.4) }')"
|
Loading…
Reference in New Issue