#!/usr/bin/env bash export __GL_THREADED_OPTIMISATIONS=1 running() { pgrep "$1" >/dev/null; } # wallpaper feh --bg-center $HOME/pictures/wallpaper # mouse acceleration xset m 11/8 0 # keyboard repeat rate xset r rate 350 45 # key daemon running sxhkd || sxhkd & # notifications running dunst || dunst & # window manager helpers running compton || compton & # music player running mpd || mpd & # taskbar $HOME/.config/panel/panel 2>&1 >$HOME/.config/panel/panel.log & { sleep 3 # 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 running sxhkd || termite & } &