25 lines
655 B
Bash
Executable file
25 lines
655 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
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
|
|
}
|
|
|
|
xqm "/etc/X11/xinit/.Xresources"
|
|
xqm "$HOME/.Xresources"
|
|
xqm "$DOTFILES_PATH/bin/lib/colors/xresources"
|
|
xqm "$ENV_PATH/x/resources"
|
|
|
|
sysmodmap="/etc/X11/xinit/.Xmodmap"
|
|
usermodmap="$ENV_PATH/x/modmap"
|
|
|
|
[ -f "$sysmodmap" ] && xmodmap "$sysmodmap" &>/dev/null
|
|
[ -f "$usermodmap" ] && xmodmap "$usermodmap" &>/dev/null
|
|
|
|
if [ -d "/etc/X11/xinit/xinitrc.d" ] ; then
|
|
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
|
[ -x "$f" ] && . "$f"
|
|
done
|
|
unset f
|
|
fi
|