helm/os/arch/.xprofile

34 lines
659 B
Plaintext
Raw Normal View History

#!/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-center $HOME/pictures/wallpaper
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-24 13:01:59 -08:00
# key daemon
running sxhkd || sxhkd &
2016-12-24 13:01:59 -08:00
# notifications
running dunst || dunst &
# window manager helpers
running compton || compton &
2016-12-25 16:14:48 -08:00
# music player
running mpd || mpd &
2016-11-02 17:01:16 -07:00
2016-12-24 13:01:59 -08:00
# taskbar
$HOME/.config/panel/panel 2>&1 >$HOME/.config/panel/panel.log &
2016-12-24 13:01:59 -08: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
running sxhkd || termite &
2016-11-02 17:01:16 -07:00
} &