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

18
xinitrc
View File

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