TheRepoClub-DotFiles/xinitrc/.xinitrc

41 lines
686 B
Plaintext
Raw Normal View History

2023-08-15 12:37:16 -04:00
#!/usr/bin/env bash
2021-01-09 12:38:56 -05:00
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
xrdb -merge $sysresources
2021-01-09 12:38:56 -05:00
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
2021-01-09 12:38:56 -05:00
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
2021-01-09 12:38:56 -05:00
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
2021-01-09 12:38:56 -05:00
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
2021-01-09 12:38:56 -05:00
fi
# enable xprofiles
if [ -f "$xprofile" ]; then
source "$xprofile"
2021-01-09 12:38:56 -05:00
fi