my-scripts/hotkeys.sh

20 lines
263 B
Bash
Raw Normal View History

2022-09-19 02:13:02 +00:00
#!/usr/bin/env sh
2022-09-22 04:24:46 +00:00
#add to autostart script to startup swhkd automatically/restart when login/logout
2022-09-19 02:13:02 +00:00
run () {
killall swhks
swhks & pkexec swhkd
}
close () {
killall swhks
sudo killall swhkd
}
if [ "$1" = "-k" ]; then
close
else
run
fi