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

View file

@ -1,21 +0,0 @@
#!/bin/bash
source $HOME/.config/sway/bin/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