Update
This commit is contained in:
@ -6,15 +6,12 @@
|
||||
# startx ~/.xinitrc WM
|
||||
|
||||
|
||||
# Session to run if none given
|
||||
# Session to run if none passed via startx
|
||||
session=${1:-openbox}
|
||||
|
||||
# set ENV window manager for use in other scripts
|
||||
# set environment wm for use in scripts
|
||||
export WM="$session"
|
||||
|
||||
# bspwm requires this to be set
|
||||
export XDG_CONFIG_HOME=$HOME/.config
|
||||
|
||||
# Default Arch xinit scripts
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/*.sh; do
|
||||
@ -22,59 +19,36 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -f /etc/X11/xinit/.Xmodmap ]; then
|
||||
xmodmap /etc/X11/xinit/.Xmodmap
|
||||
fi
|
||||
|
||||
# user init scripts and settings
|
||||
if [ -f ~/.Xmodmap ]; then
|
||||
xmodmap ~/.Xmodmap
|
||||
fi
|
||||
|
||||
if [ -f ~/.Xresources ]; then
|
||||
xrdb -merge ~/.Xresources
|
||||
fi
|
||||
|
||||
if [ -f ~/.xprofile ]; then
|
||||
source ~/.xprofile
|
||||
fi
|
||||
|
||||
[ -f /etc/X11/xinit/.Xmodmap ] && xmodmap /etc/X11/xinit/.Xmodmap
|
||||
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
|
||||
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
|
||||
[ -f ~/.xprofile ] && source ~/.xprofile
|
||||
|
||||
# keyring for storing passwords
|
||||
if hash gnome-keyring &>/dev/null; then
|
||||
# keyring for storing passwords
|
||||
gnome-keyring-daemon --start --components=pkcs11 &
|
||||
fi
|
||||
|
||||
if [ -x "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" ]; then
|
||||
# run policy kit
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
fi
|
||||
# display timeout and sleep
|
||||
xset s 3600 3600
|
||||
xset dpms 3600 3700 4000
|
||||
|
||||
# keyboard repeat rate
|
||||
kbdrate -d 400 -r 50
|
||||
xset r rate 400 50
|
||||
kbdrate -d 400 -r 50
|
||||
|
||||
# display timeout
|
||||
xset s 3600 3600
|
||||
# 1/1 mouse acceleration
|
||||
xset m 1/1
|
||||
|
||||
|
||||
# Do NOT put code below this case statement
|
||||
# Do NOT put commands below the exec lines
|
||||
case $session in
|
||||
i3|i3wm)
|
||||
exec i3
|
||||
;;
|
||||
bsp|bspwm)
|
||||
exec bspwm
|
||||
;;
|
||||
xfce|xfce4)
|
||||
exec startxfce4
|
||||
;;
|
||||
openbox)
|
||||
exec openbox-session
|
||||
;;
|
||||
dwm)
|
||||
exec dwm
|
||||
;;
|
||||
*)
|
||||
exec "$1" # Unknown, try running it
|
||||
i3|i3wm) exec i3 ;;
|
||||
bsp|bspwm) exec bspwm ;;
|
||||
xfce|xfce4) exec startxfce4 ;;
|
||||
openbox) exec openbox-session ;;
|
||||
awesome) exec awesome ;;
|
||||
dwm) exec dwm ;;
|
||||
*) exec "$1" # Unknown, try running it
|
||||
esac
|
||||
|
Reference in New Issue
Block a user