dotfiles-old/.local/scripts/hotkeys.sh

19 lines
181 B
Bash
Raw Normal View History

#!/usr/bin/env sh
run () {
killall swhks
swhks & pkexec swhkd
}
close () {
killall swhks
sudo killall swhkd
}
if [ "$1" = "-k" ]; then
close
else
run
fi