try to start sxhkd if xbindkeys not installed

This commit is contained in:
Ray Elliott 2020-03-31 21:34:42 +01:00
parent 64662edfa1
commit 3f69dfb3c1
1 changed files with 12 additions and 6 deletions

16
xinitrc
View File

@ -60,7 +60,11 @@ xmodmap -e "keycode 108 = Super_L"
# disable DPMS and screensaving # disable DPMS and screensaving
xset s off -dpms xset s off -dpms
if command -v xbindkeys ; then
xbindkeys xbindkeys
elif command -v sxhkd ; then
sxhkd &
fi
if [ -f "$HOME/.config/feh/fehbg" ] ; then if [ -f "$HOME/.config/feh/fehbg" ] ; then
"$HOME/.config/feh/fehbg" & "$HOME/.config/feh/fehbg" &
@ -86,8 +90,10 @@ case "$_host" in
;; ;;
esac esac
if [ -f /usr/local/bin/start_dwm ] ; then bspwm
exec /usr/local/bin/start_dwm
else # if [ -f /usr/local/bin/start_dwm ] ; then
exec /usr/local/bin/dwm # exec /usr/local/bin/start_dwm
fi # else
# exec /usr/local/bin/dwm
# fi