X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2F.xlaunch.d%2Fxbindkeys;h=2a3569d160124c2a3d0ae6f54aefb6b76b3636cd;hb=d78db511f9c2430c160daca5fd71c8edb68061b6;hp=73cb8e929d3ecf5032bf43482c0d1be474d09bdb;hpb=1bce1dbc90a207613685fd997b310a48ebd98b6f;p=khome.git diff --git a/home/.xlaunch.d/xbindkeys b/home/.xlaunch.d/xbindkeys index 73cb8e9..2a3569d 100755 --- a/home/.xlaunch.d/xbindkeys +++ b/home/.xlaunch.d/xbindkeys @@ -2,4 +2,8 @@ set -e +# XXX Since this script is also named xbindkeys, we avoid suicide by: +# 1. not using killall; +# 2. using "command" (or "cmd") instead of "comm". +ps -eo pid,command | awk '$2 ~ "^xbindkeys" {print $1}' | xargs -I% kill % xbindkeys -n