Update configs, move some init stuff to ~/.xprofile, remove ob-autostart
This commit is contained in:
@ -2,17 +2,14 @@
|
||||
|
||||
# this file is executed when calling startx
|
||||
|
||||
# to start a different WM, set session below, or in console run:
|
||||
# startx ~/.xinitrc WM
|
||||
|
||||
# set session below, or in console run: startx ~/.xinitrc SESSION
|
||||
|
||||
# session to run if none passed as first arg ($1)
|
||||
session="${1:-openbox}"
|
||||
|
||||
# set environment wm for use in scripts
|
||||
WM="${session%-session}"
|
||||
WM="${session#start}"
|
||||
export WM
|
||||
export WM="${WM#start}"
|
||||
|
||||
# default arch xinit scripts
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
@ -27,20 +24,6 @@ fi
|
||||
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
|
||||
[ -f ~/.xprofile ] && source ~/.xprofile
|
||||
|
||||
# display timeout and sleep
|
||||
xset s 3600 3600
|
||||
xset dpms 3600 3700 4000
|
||||
|
||||
# keyboard repeat rate
|
||||
xset r rate 400 50
|
||||
kbdrate -d 400 -r 50
|
||||
|
||||
if [[ $session =~ (dwm|cinnamon|gnome|xfce4) ]]; then
|
||||
nitrogen --restore &
|
||||
ksuperkey -e 'Super_L=Alt_L|p' &
|
||||
ksuperkey -e 'Super_R=Alt_L|p' &
|
||||
fi
|
||||
|
||||
# do NOT put commands below the exec lines
|
||||
case $session in
|
||||
dwm) exec dwm ;;
|
||||
|
Reference in New Issue
Block a user