Add .xinitrc file

This commit is contained in:
Anas Elgarhy 2023-03-08 22:48:25 +02:00
parent 8a849d1865
commit 239eacf23e
No known key found for this signature in database
GPG key ID: 0501802A1D496528

51
.xinitrc Normal file
View 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