2016-12-17 00:06:41 -08:00
|
|
|
#!/usr/bin/env bash
|
2016-11-02 17:01:16 -07:00
|
|
|
|
|
|
|
export __GL_THREADED_OPTIMISATIONS=1
|
|
|
|
|
|
|
|
running() { pgrep "$1" >/dev/null; }
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
# wallpaper
|
|
|
|
feh --bg-scale $HOME/pictures/wallpaper
|
|
|
|
|
2016-11-02 17:01:16 -07:00
|
|
|
# mouse acceleration
|
|
|
|
xset m 11/8 0
|
|
|
|
# keyboard repeat rate
|
|
|
|
xset r rate 350 45
|
|
|
|
|
2016-12-20 19:53:57 -08:00
|
|
|
running sxhkd || sxhkd &
|
2016-11-02 17:01:16 -07:00
|
|
|
# lemonbar config depends on bspwm, so wait for it
|
|
|
|
{
|
|
|
|
while ! running bspwm; do sleep 1; done
|
2016-11-04 17:55:04 -07:00
|
|
|
$HOME/.config/panel/panel 2>&1 >$HOME/.config/panel/panel.log &
|
2016-11-02 17:01:16 -07:00
|
|
|
|
|
|
|
# notifications
|
2016-12-20 19:53:57 -08:00
|
|
|
running dunst || dunst &
|
2016-11-02 17:01:16 -07:00
|
|
|
# window manager helpers
|
2016-12-20 19:53:57 -08:00
|
|
|
running compton || compton &
|
2016-11-05 08:28:45 -07:00
|
|
|
|
|
|
|
# If sxhkd isn't running, something is wrong and we're stuck. Instead, open
|
|
|
|
# a terminal so I can do something about it
|
|
|
|
sleep 3
|
2016-12-17 00:06:41 -08:00
|
|
|
running sxhkd || termite &
|
2016-11-02 17:01:16 -07:00
|
|
|
} &
|