diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-08-22 18:07:39 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-08-22 18:28:50 (EDT) |
commit | 11ea13b80978e78830e1074556d242e380dbefc8 (patch) | |
tree | 669f8f3f96e39f41bd5b0c67915658a393a679c8 /.fluxbox/keys | |
parent | d6c1c966594d042c68d16414de33be66ea4ffee3 (diff) | |
download | fluxbox-11ea13b80978e78830e1074556d242e380dbefc8.zip fluxbox-11ea13b80978e78830e1074556d242e380dbefc8.tar.gz fluxbox-11ea13b80978e78830e1074556d242e380dbefc8.tar.bz2 |
.fluxbox/keys: Add brightness controls
Diffstat (limited to '.fluxbox/keys')
-rw-r--r-- | .fluxbox/keys | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.fluxbox/keys b/.fluxbox/keys index c122e6c..178f0b2 100644 --- a/.fluxbox/keys +++ b/.fluxbox/keys @@ -159,6 +159,10 @@ Control Mod1 Delete r :Exec ~/bin/xsession reboot Control Mod1 Delete d :Exec ~/bin/xsession s2disk Control Mod1 Delete c :Reconfigure +# Brightness +XF86MonBrightnessUp :Exec if [ $(brightnessctl --class=backlight get) -lt 152 ]; then brightnessctl --class=backlight set 152; else brightnessctl --class=backlight set +200; fi +XF86MonBrightnessDown :Exec if [ $(brightnessctl --class=backlight get) -lt 202 ]; then brightnessctl --class=backlight set 2; else brightnessctl --class=backlight set 200-; fi + # Audio XF86AudioRaiseVolume :Exec amixer set Master,0 5dB+ XF86AudioLowerVolume :Exec amixer set Master,0 5dB- |