2021-01-09 12:38:56 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
userresources=$HOME/.Xresources
|
|
|
|
usermodmap=$HOME/.Xmodmap
|
|
|
|
sysresources=/etc/X11/xinit/.Xresources
|
|
|
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
|
|
|
xprofile=$HOME/.xprofile
|
|
|
|
|
|
|
|
# merge in defaults and keymaps
|
|
|
|
|
|
|
|
if [ -f $sysresources ]; then
|
2022-07-14 12:15:51 -04:00
|
|
|
xrdb -merge $sysresources
|
2021-01-09 12:38:56 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $sysmodmap ]; then
|
2022-07-14 12:15:51 -04:00
|
|
|
xmodmap $sysmodmap
|
2021-01-09 12:38:56 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f "$userresources" ]; then
|
2022-07-14 12:15:51 -04:00
|
|
|
xrdb -merge "$userresources"
|
2021-01-09 12:38:56 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f "$usermodmap" ]; then
|
2022-07-14 12:15:51 -04:00
|
|
|
xmodmap "$usermodmap"
|
2021-01-09 12:38:56 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
# start some nice programs
|
|
|
|
|
2022-07-14 12:15:51 -04:00
|
|
|
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
|
|
|
for f in /etc/X11/xinit/xinitrc.d/?*.sh; do
|
|
|
|
[ -x "$f" ] && . "$f"
|
|
|
|
done
|
|
|
|
unset f
|
2021-01-09 12:38:56 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
# enable xprofiles
|
|
|
|
|
|
|
|
if [ -f "$xprofile" ]; then
|
2022-07-14 12:15:51 -04:00
|
|
|
source "$xprofile"
|
2021-01-09 12:38:56 -05:00
|
|
|
fi
|