Commit | Line | Data |
---|---|---|
6db09847 SK |
1 | #! /bin/sh |
2 | ||
3 | set -e | |
4 | ||
d78db511 SK |
5 | # XXX Since this script is also named xbindkeys, we avoid suicide by: |
6 | # 1. not using killall; | |
7 | # 2. using "command" (or "cmd") instead of "comm". | |
8 | ps -eo pid,command | awk '$2 ~ "^xbindkeys" {print $1}' | xargs -I% kill % | |
6db09847 | 9 | xbindkeys -n |