This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/env/x/xinitrc
2016-11-22 15:03:14 -06:00

40 lines
585 B
Bash

#!/bin/sh
if [ -f ~/.fehbg ]; then
~/.fehbg &
fi
source "$DOTFILES_PATH/env/x/xloadresources"
source "$DOTFILES_PATH/variables.bash"
# keyrepeat settings
xset r rate 250 80 &
# no screen blanking
xset -dpms &
xset s noblank &
xset s off &
# start the bar if we want it
if [ "$BAR_ON_XINIT" -eq 1 ]; then
"$BAR_PATH/start.bash" &
fi
if [ -d "/usr/lib/nvidia" ]; then
export LD_LIBRARY_PATH=/usr/lib/nvidia
fi
export BSPWM_MONITORS=$(bspc query -M)
if [ -f "$HOME/.xinitrc.env" ]; then
source "$HOME/.xinitrc.env"
fi
# fire up wm
unclutter &
sxhkd &
urxvtd &
exec bspwm