Move most init stuff into ~/.xprofile rather than each WM config and ~/.xinitrc

This commit is contained in:
natemaia
2018-10-29 01:36:27 -07:00
parent 998e4343bf
commit 749193ba48
8 changed files with 59 additions and 71 deletions

View File

@ -2,7 +2,9 @@
# vim:ft=sh
# sourced at boot by xinit and lightdm
# sourced at boot by both xinit and most display managers like lightdm
export XDG_CONFIG_HOME="$HOME/.config"
[ -d /sbin ] && PATH="$PATH:/sbin"
[ -d /usr/sbin ] && PATH="$PATH:/usr/sbin"
@ -11,6 +13,10 @@
# restore the background
nitrogen --restore &
# keyring and polkit daemons
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
gnome-keyring-daemon --start --components=pkcs11 &
# pressing super alone simulates Alt-F1
ksuperkey -e 'Super_L=Alt_L|F1' &
ksuperkey -e 'Super_R=Alt_L|F1' &
@ -22,5 +28,3 @@ xset dpms 1200 1300 1400
# keyboard repeat rate
kbdrate -d 400 -r 50
xset r rate 350 60
export XDG_CONFIG_HOME="$HOME/.config"