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

26 lines
655 B
Plaintext
Raw Normal View History

2017-02-07 16:16:45 -06:00
#!/usr/bin/env bash
2020-01-17 03:02:53 -06:00
echo "xload init" > /tmp/xload
echo "ep: $ENV_PATH" > /tmp/xload
xqm() {
f="$1"; shift; [ -f "$f" ] && xrdb -merge "$f" "$@" &>/dev/null && echo "xqm LOADING $f" >> /tmp/xload
}
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