dot_testing/builds/utils/sxhkd-mode

11 lines
244 B
Plaintext
Raw Normal View History

2023-11-15 21:04:50 -06:00
# mode - change the current effective sxhkd configuration
2024-01-15 03:52:45 -06:00
if [ -n "$1" ]; then
2024-12-25 07:29:11 -06:00
pkill -x sxhkd
2024-01-15 03:52:45 -06:00
sxhkd -c ~/.config/sxhkd/$1 & disown
[ -f "~/.config/sxhkd/$1.sh" ] && ~/.config/sxhkd/$1.sh
echo "$1" > ~/.cache/statusbar/sxhkd_mode
2024-01-15 03:52:45 -06:00
exit
fi