sway: structure scripts, add helpers in separate file

This commit is contained in:
Konstantin Koslowski 2021-01-04 18:27:42 +01:00
parent 307d1dd03d
commit 9a4b96932a
5 changed files with 86 additions and 70 deletions

View file

@ -1,5 +1,11 @@
#!/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*)
@ -9,6 +15,7 @@ case $1 in
light -s $DEVICE -A 10
;;
*)
echo "ERROR: invalid command: \"$1\""
echo "invalid argument: \"$1\""
echo "arguments: [decrease|increase]"
;;
esac