sway: prefix scripts with sway_

This commit is contained in:
Konstantin Koslowski 2021-01-04 18:46:33 +01:00
parent 9a4b96932a
commit f895cb3ee9
6 changed files with 16 additions and 9 deletions

21
bin/sway_brightness Executable file
View file

@ -0,0 +1,21 @@
#!/bin/bash
source $HOME/.config/sway/bin/sway_helpers
DEVICE=sysfs/backlight/intel_backlight
APP=light
## main
_log BRIGHTNESS INFO args: $*
_check_app $APP
case $1 in
d*)
light -s $DEVICE -U 10
;;
i*)
light -s $DEVICE -A 10
;;
*)
echo "invalid argument: \"$1\""
echo "arguments: [decrease|increase]"
;;
esac