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,5 +1,5 @@
#!/bin/bash #!/bin/bash
source $HOME/.config/sway/bin/helpers source $HOME/.config/sway/bin/sway_helpers
DEVICE=sysfs/backlight/intel_backlight DEVICE=sysfs/backlight/intel_backlight
APP=light APP=light

View file

@ -30,9 +30,16 @@ function _set_inhibit() {
rm -f $file rm -f $file
_log _set_inhibit: INFO inhibit disabled _log _set_inhibit: INFO inhibit disabled
;; ;;
*) 1|on)
touch $file touch $file
_log _set_inhibit: INFO inhibit enabled _log _set_inhibit: INFO inhibit enabled
;; ;;
*)
status=0
if [ -f $file ]; then
status=1
fi
_log _set_inhibit: INFO inhibit status: $status
;;
esac esac
} }

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
source $HOME/.config/sway/bin/helpers source $HOME/.config/sway/bin/sway_helpers
IMAGE=$HOME/.lockscreen.jpg IMAGE=$HOME/.lockscreen.jpg
SCROT_APP=grim SCROT_APP=grim
SCROT_ARGS=" -t jpeg" SCROT_ARGS=" -t jpeg"

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
source $HOME/.config/sway/bin/helpers source $HOME/.config/sway/bin/sway_helpers
BAT_PATH=/sys/class/power_supply BAT_PATH=/sys/class/power_supply
BAT=BAT0 BAT=BAT0
MODE=suspend-then-hibernate MODE=suspend-then-hibernate

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
source $HOME/.config/sway/bin/helpers source $HOME/.config/sway/bin/sway_helpers
SINK=$(pacmd list-sinks | grep "* index" | grep -oE '[0-9]*') SINK=$(pacmd list-sinks | grep "* index" | grep -oE '[0-9]*')
APP="pavucontrol" APP="pavucontrol"

8
config
View file

@ -16,10 +16,10 @@ set $right l
# Your preferred terminal emulator # Your preferred terminal emulator
set $term termite set $term termite
set $background $HOME/Cloud/xkonni/Pictures/wallpaper/5k_bavarian_forest_bw.jpg set $background $HOME/Cloud/xkonni/Pictures/wallpaper/5k_bavarian_forest_bw.jpg
set $lock_cmd $HOME/.config/sway/bin/lock set $lock_cmd $HOME/.config/sway/bin/sway_lock
set $brightness_cmd "$HOME/.config/sway/bin/brightness set $brightness_cmd "$HOME/.config/sway/bin/sway_brightness
set $suspend_cmd "$HOME/.config/sway/bin/suspend set $suspend_cmd "$HOME/.config/sway/bin/sway_suspend
set $volume_cmd "$HOME/.config/sway/bin/volume set $volume_cmd "$HOME/.config/sway/bin/sway_volume
set $font Cascadia Code PL Regular 10 set $font Cascadia Code PL Regular 10
# Your preferred application launcher # Your preferred application launcher