This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/env/x/xloadresources

43 lines
911 B
Plaintext
Raw Normal View History

2016-01-06 12:46:55 -06:00
#!/usr/bin/env bash
2017-02-03 22:03:44 -06:00
userresources="$HOME/.Xresources"
usercolors="$HOME/.Xresources.colors"
userenv="$HOME/.Xresources.env"
usermodmap="$HOME/.Xmodmap"
sysresources="/etc/X11/xinit/.Xresources"
sysmodmap="/etc/X11/xinit/.Xmodmap"
echo "xstartup: resources $userresources $userenv" >> "$HOME/.xstartup_log"
if [ -f "$sysresources" ]; then
xrdb -merge "$sysresources" >/dev/null 2>&1
2016-01-06 12:46:55 -06:00
fi
2017-02-03 22:03:44 -06:00
if [ -f "$sysmodmap" ]; then
xmodmap "$sysmodmap" >/dev/null 2>&1
2016-01-06 12:46:55 -06:00
fi
if [ -f "$userresources" ]; then
2017-02-03 22:03:44 -06:00
xrdb -merge "$userresources" >/dev/null 2>&1
2016-01-06 12:46:55 -06:00
fi
if [ -f "$usercolors" ]; then
2017-02-03 22:03:44 -06:00
xrdb -merge "$usercolors" >/dev/null 2>&1
2016-01-06 12:46:55 -06:00
fi
if [ -f "$userenv" ]; then
2017-02-03 22:03:44 -06:00
xrdb -merge "$userenv" >/dev/null 2>&1
2016-01-06 12:46:55 -06:00
fi
if [ -f "$usermodmap" ]; then
2017-02-03 22:03:44 -06:00
xmodmap "$usermodmap" >/dev/null 2>&1
2016-01-06 12:46:55 -06:00
fi
2017-02-03 22:03:44 -06: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
2016-01-06 12:46:55 -06:00
fi