From ccd25e65eac1db337379583766408f7171dad7f5 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 22 May 2019 14:46:48 +0200 Subject: [PATCH] set sxhkd to autostart on xinit Checks for existence of the program, and then starts it. Does nothing if sxhkd is not installed (fails silently). --- .xinitrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.xinitrc b/.xinitrc index 852f9eb..d6fc84d 100644 --- a/.xinitrc +++ b/.xinitrc @@ -55,6 +55,9 @@ type compton >/dev/null 2>&1 && compton & # same deal with flashfocus as our active window indicator type flashfocus >/dev/null 2>&1 && flashfocus -l never & +# if sxhkd - the key-binding daemon is installed, start it up +type sxhkd >/dev/null 2>&1 && sxhkd & + # additional config options for Touchpad devices ONLY if [ $(dmesg | grep "Touchpad" | wc -l) > 0 ]; then # enable touch tapping for XPS13 touchpad - for different devices get the touchpad name with xinput list-prop