sway: prefix scripts with sway_
This commit is contained in:
parent
9a4b96932a
commit
f895cb3ee9
6 changed files with 16 additions and 9 deletions
21
bin/sway_brightness
Executable file
21
bin/sway_brightness
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue