X: reorganize xinitrc+xprofile

This commit is contained in:
Henrik Lissner 2016-11-03 01:01:16 +01:00
parent f4ae258318
commit 81be051d8e
2 changed files with 32 additions and 4 deletions

4
os/arch/.xinitrc Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
[ -f ~/.xprofile ] && source ~/.xprofile
exec ssh-agent bspwm

View file

@ -1,8 +1,32 @@
sxhkd & #!/bin/sh
compton &
export __GL_THREADED_OPTIMISATIONS=1
running() { pgrep "$1" >/dev/null; }
# wallpaper # wallpaper
feh --bg-scale $HOME/pictures/wallpaper feh --bg-scale $HOME/pictures/wallpaper
# Start bittorrent sync # mouse acceleration
pgrep rslsync >/dev/null || { cd $HOME && /usr/local/bin/rslsync; } xset m 11/8 0
# keyboard repeat rate
xset r rate 350 45
# bittorrent sync
running rslsync || { cd $HOME && /usr/local/bin/rslsync; }
# monitor color adjustment based on time-of-day
running redshift || redshift &
# music server
running mpd || mpd &
# lemonbar config depends on bspwm, so wait for it
{
while ! running bspwm; do sleep 1; done
cd ~/.config/panel && ./panel.sh &
# notifications
dunst &
# window manager helpers
compton &
sxhkd &
} &