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
|
|
|
|
|
2016-12-28 19:45:31 -08:00
|
|
|
# Maybe start this daemon
|
|
|
|
run() {
|
|
|
|
command -v "$1" >/dev/null || return
|
|
|
|
pgrep "$1" >/dev/null || $@
|
|
|
|
}
|
2016-10-19 07:56:37 -07:00
|
|
|
|
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-28 19:45:31 -08:00
|
|
|
# essentials
|
|
|
|
run dunst & # notifications
|
|
|
|
run compton & # perdy effects + transparency
|
|
|
|
run sxhkd & # keyboard daemon
|
2016-11-02 17:01:16 -07:00
|
|
|
|
2016-12-28 19:45:31 -08:00
|
|
|
# set wallpaper
|
|
|
|
run feh --no-fehbg --image-bg black --bg-center "$HOME/pictures/wallpaper"
|
2016-11-05 08:28:45 -07:00
|
|
|
|
2016-12-24 13:01:59 -08:00
|
|
|
{
|
2016-11-05 08:28:45 -07:00
|
|
|
sleep 3
|
2016-12-24 13:01:59 -08:00
|
|
|
|
|
|
|
# If sxhkd isn't running by now, something is wrong and we're stuck. Instead, open
|
|
|
|
# a terminal so I can do something about it
|
2016-12-28 19:45:31 -08:00
|
|
|
pgrep sxhkd >/dev/null || termite &
|
2016-11-02 17:01:16 -07:00
|
|
|
} &
|
2016-12-28 19:45:31 -08:00
|
|
|
|
|
|
|
# key agents daemons
|
|
|
|
eval "$(run gpg-agent --daemon)"
|
|
|
|
eval "$(run ssh-agent)"
|