Add .xinitrc file
This commit is contained in:
parent
8a849d1865
commit
239eacf23e
1 changed files with 51 additions and 0 deletions
51
.xinitrc
Normal file
51
.xinitrc
Normal file
|
@ -0,0 +1,51 @@
|
|||
#!/bin/sh
|
||||
# Make sure this is before the 'exec' command or it won't be sourced.
|
||||
[ -f /etc/xprofile ] && . /etc/xprofile
|
||||
[ -f ~/.xprofile ] && . ~/.xprofile
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
usermodmap=$HOME/.Xmodmap
|
||||
sysresources=/etc/X11/xinit/.Xresources
|
||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
|
||||
wmname LG3D
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
export AWT_TOOLKIT=MToolkit
|
||||
|
||||
# merge in defaults and keymaps
|
||||
|
||||
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
|
||||
|
||||
# start some nice programs
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
# picom &
|
||||
# slstatus &
|
||||
# setxkbmap -model pc101 -layout us,ara -variant ,, -option grp:win_space_toggle &
|
||||
exec dwm
|
||||
# exec env KDEWM=/usr/local/bin/dwm /usr/bin/startplasma-x11
|
||||
# exec sddm
|
||||
# exec ly
|
Loading…
Reference in a new issue