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/apps/de/x/loadresources

24 lines
549 B
Text
Raw Normal View History

2020-01-20 10:49:06 -06:00
#!/usr/bin/env sh
2017-02-07 16:16:45 -06:00
2020-01-17 03:02:53 -06:00
xqm() {
2020-01-20 10:49:06 -06:00
f="$1"; shift; [ -f "$f" ] && xrdb -merge "$f" "$@" &>/dev/null
2020-01-17 03:02:53 -06:00
}
2018-09-25 14:19:35 -05:00
2020-01-17 03:02:53 -06:00
xqm "/etc/X11/xinit/.Xresources"
xqm "$HOME/.Xresources"
xqm "$DOTFILES_PATH/bin/lib/colors/xresources"
xqm "$ENV_PATH/x/resources"
2018-09-25 14:19:35 -05:00
sysmodmap="/etc/X11/xinit/.Xmodmap"
2020-01-17 03:02:53 -06:00
usermodmap="$ENV_PATH/x/modmap"
2017-02-07 16:16:45 -06:00
2020-01-17 03:02:53 -06:00
[ -f "$sysmodmap" ] && xmodmap "$sysmodmap" &>/dev/null
[ -f "$usermodmap" ] && xmodmap "$usermodmap" &>/dev/null
2017-02-07 16:16:45 -06:00
if [ -d "/etc/X11/xinit/xinitrc.d" ] ; then
2018-10-31 14:40:57 -05:00
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
2017-02-07 16:16:45 -06:00
[ -x "$f" ] && . "$f"
done
unset f
fi