dot_testing/builds/utils/sh/mode
2024-01-28 19:02:49 -06:00

14 lines
264 B
Plaintext
Executable File

# mode - change the current effective sxhkd configuration
if [ -n "$1" ]; then
pkill sxhkd
sxhkd -c ~/.config/sxhkd/$1 & disown
[ -f "~/.config/sxhkd/$1.sh" ] && ~/.config/sxhkd/$1.sh
exit
fi
# we need a menu
choice=$(ls ~/.config/sxhkd | tmenu)
$0 $choice