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
544 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
2020-02-06 20:42:39 -06:00
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
2017-02-07 16:16:45 -06:00
fi