os/arch/.xprofile: refactor + run mpd/redshift/rslsync from here
This commit is contained in:
parent
fb455f288b
commit
6ffd25e44b
|
@ -8,27 +8,30 @@ run() {
|
||||||
pgrep "$1" >/dev/null || $@
|
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
|
# mouse acceleration
|
||||||
xset m 11/8 0
|
xset m 11/8 0
|
||||||
# keyboard repeat rate
|
# keyboard repeat rate
|
||||||
xset r rate 350 45
|
xset r rate 350 45
|
||||||
|
|
||||||
# essentials
|
|
||||||
run dunst & # notifications
|
|
||||||
run compton & # perdy effects + transparency
|
|
||||||
run sxhkd & # keyboard daemon
|
|
||||||
|
|
||||||
# set wallpaper
|
# set wallpaper
|
||||||
run feh --no-fehbg --image-bg black --bg-center "$HOME/pictures/wallpaper"
|
run feh --no-fehbg --image-bg black --bg-center "$HOME/pictures/wallpaper"
|
||||||
|
|
||||||
{
|
# essentials
|
||||||
sleep 3
|
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
|
# non-essentials
|
||||||
# a terminal so I can do something about it
|
run mpd & # music server
|
||||||
pgrep sxhkd >/dev/null || termite &
|
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)"
|
|
||||||
|
|
Loading…
Reference in a new issue