os/arch: back to .xinitrc + .xprofile flow (+gpg/ssh agents)
This commit is contained in:
parent
eb34ebb681
commit
6165a90230
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ -f ~/.Xresources ] && xrdb ~/.Xresources
|
[[ -f $HOME/.Xresources ]] && xrdb ~/.Xresources
|
||||||
[ -f ~/.xprofile ] && source ~/.xprofile
|
[[ -f $HOME/.xprofile ]] && source ~/.xprofile
|
||||||
exec ssh-agent bspwm
|
|
||||||
|
exec bspwm
|
||||||
|
|
|
@ -2,32 +2,33 @@
|
||||||
|
|
||||||
export __GL_THREADED_OPTIMISATIONS=1
|
export __GL_THREADED_OPTIMISATIONS=1
|
||||||
|
|
||||||
running() { pgrep "$1" >/dev/null; }
|
# Maybe start this daemon
|
||||||
|
run() {
|
||||||
# wallpaper
|
command -v "$1" >/dev/null || return
|
||||||
feh --bg-center $HOME/pictures/wallpaper
|
pgrep "$1" >/dev/null || $@
|
||||||
|
}
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
# key daemon
|
# essentials
|
||||||
running sxhkd || sxhkd &
|
run dunst & # notifications
|
||||||
# notifications
|
run compton & # perdy effects + transparency
|
||||||
running dunst || dunst &
|
run sxhkd & # keyboard daemon
|
||||||
# window manager helpers
|
|
||||||
running compton || compton &
|
|
||||||
# music player
|
|
||||||
running mpd || mpd &
|
|
||||||
|
|
||||||
# taskbar
|
# set wallpaper
|
||||||
$HOME/.config/panel/panel 2>&1 >$HOME/.config/panel/panel.log &
|
run feh --no-fehbg --image-bg black --bg-center "$HOME/pictures/wallpaper"
|
||||||
|
|
||||||
{
|
{
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
# If sxhkd isn't running by now, something is wrong and we're stuck. Instead, open
|
# 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
|
# a terminal so I can do something about it
|
||||||
running sxhkd || termite &
|
pgrep sxhkd >/dev/null || termite &
|
||||||
} &
|
} &
|
||||||
|
|
||||||
|
# key agents daemons
|
||||||
|
eval "$(run gpg-agent --daemon)"
|
||||||
|
eval "$(run ssh-agent)"
|
||||||
|
|
Loading…
Reference in a new issue