sway: add control-brightness.sh script

it allows to change external monitor's brightness
This commit is contained in:
2022-10-09 14:43:32 +03:00
parent 2e0b3169bf
commit 305533d854
2 changed files with 21 additions and 2 deletions

View File

@@ -166,8 +166,8 @@ bindsym --to-code {
XF86AudioMicMute exec $HOME/dotfiles/bin/toggle-mic-mute.sh
# brightness
XF86MonBrightnessDown exec brightnessctl set 5%- | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > $WOBSOCK
XF86MonBrightnessUp exec brightnessctl set 5%+ | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > $WOBSOCK
XF86MonBrightnessDown exec $HOME/dotfiles/bin/control-brightness.sh down | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > $WOBSOCK
XF86MonBrightnessUp exec $HOME/dotfiles/bin/control-brightness.sh up | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > $WOBSOCK
# screenshots
$mod+Shift+s exec grim -g "$(slurp)" - | swappy -f -