my-scripts/hotkeys.sh

19 lines
181 B
Bash
Raw Normal View History

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