Generalize X startup stuff
This commit is contained in:
parent
68d9defb45
commit
bc43da6264
2 changed files with 23 additions and 2 deletions
|
@ -17,3 +17,5 @@
|
||||||
*.color14: #9AEDFE
|
*.color14: #9AEDFE
|
||||||
*.color7: #BFBFBF
|
*.color7: #BFBFBF
|
||||||
*.color15: #E6E6E6
|
*.color15: #E6E6E6
|
||||||
|
|
||||||
|
!Xft.dpi: 192
|
||||||
|
|
23
.xinitrc
23
.xinitrc
|
@ -1,4 +1,25 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
userresources=$HOME/.Xresources
|
||||||
|
usermodmap=$HOME/.Xmodmap
|
||||||
|
sysresources=/etc/X11/xinit/.Xresources
|
||||||
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||||
|
|
||||||
|
if [ -f $sysresources ]; then
|
||||||
|
xrdb -merge $sysresources
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $sysmodmap ]; then
|
||||||
|
xmodmap $sysmodmap
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $userresources ]; then
|
||||||
|
xrdb -merge $userresources
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $usermodmap ]; then
|
||||||
|
xmodmap $usermodmap
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||||
|
@ -10,7 +31,5 @@ fi
|
||||||
setxkbmap "us,us" ",intl" "grp:shifts_toggle"
|
setxkbmap "us,us" ",intl" "grp:shifts_toggle"
|
||||||
xset m 0 0
|
xset m 0 0
|
||||||
|
|
||||||
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
|
|
||||||
|
|
||||||
mkdir -p $HOME/.local/share/bspwm
|
mkdir -p $HOME/.local/share/bspwm
|
||||||
exec bspwm >$HOME/.local/share/bspwm/output.log 2>$HOME/.local/share/bspwm/error.log
|
exec bspwm >$HOME/.local/share/bspwm/output.log 2>$HOME/.local/share/bspwm/error.log
|
||||||
|
|
Loading…
Reference in a new issue