sway: Add shared brightness control bindings

This commit is contained in:
Peter Cai 2022-12-20 15:11:17 -05:00
parent 1ab7f02535
commit 471b499720
1 changed files with 4 additions and 0 deletions

View File

@ -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) }')"