helm/os/+arch/.xprofile

42 lines
1 KiB
Plaintext
Raw Normal View History

#!/usr/bin/env bash
2016-11-02 17:01:16 -07:00
export __GL_THREADED_OPTIMISATIONS=1
# Maybe start this daemon
running() { pgrep -x "$1" >/dev/null; }
run() {
command -v "$1" >/dev/null || return
running "$1" || "$@"
}
2016-10-19 07:56:37 -07:00
# failsafe
{
sleep 5
# If sxhkd isn't running by now something is wrong and we're stuck, so open
# a terminal so I can do something about it
pgrep -x sxhkd >/dev/null || termite &
} &
2016-11-02 17:01:16 -07:00
# mouse acceleration
xset m 11/8 0
# keyboard repeat rate
xset r rate 350 45
# set wallpaper
run feh --no-fehbg --image-bg black --bg-center "$HOME/pictures/wallpaper"
# essentials
run sxhkd & # keyboard daemon
run dunst & # notifications
run compton & # perdy effects + transparency
2016-12-24 13:01:59 -08:00
# non-essentials
run mpd & # music server
run redshift & # screen temperature based on time-of-day
run rslsync & # resilio sync
# key agents
running ssh-agent || { ssh-agent -s | sed 's/^echo/#echo/' >~/.ssh/agentenv; }
running gpg-agent || { gpg-agent --daemon | sed 's/^echo/#echo/' >~/.gnupg/agentenv; }