From 6ffd25e44b11f73b550921a5c7617d0aea578188 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 3 Jan 2017 18:18:56 -0500 Subject: [PATCH] os/arch/.xprofile: refactor + run mpd/redshift/rslsync from here --- os/arch/.xprofile | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/os/arch/.xprofile b/os/arch/.xprofile index de2b3c5b..c9e23b79 100644 --- a/os/arch/.xprofile +++ b/os/arch/.xprofile @@ -8,27 +8,30 @@ run() { pgrep "$1" >/dev/null || $@ } +# 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 sxhkd >/dev/null || termite & +} & + # mouse acceleration xset m 11/8 0 # keyboard repeat rate xset r rate 350 45 -# essentials -run dunst & # notifications -run compton & # perdy effects + transparency -run sxhkd & # keyboard daemon - # set wallpaper run feh --no-fehbg --image-bg black --bg-center "$HOME/pictures/wallpaper" -{ - sleep 3 +# essentials +run sxhkd & # keyboard daemon +run dunst & # notifications +run compton & # perdy effects + transparency - # 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 - pgrep sxhkd >/dev/null || termite & -} & +# non-essentials +run mpd & # music server +run redshift & # screen temperature based on time-of-day +$HOME/.bin/rsl.sh # resilio sync -# key agents daemons -eval "$(run gpg-agent --daemon)" -eval "$(run ssh-agent)"