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/x/xinitrc
2016-01-06 11:55:04 -06:00

43 lines
723 B
Bash

#!/bin/sh
userresources=$HOME/.Xresources
usercolors=$HOME/.Xresources.colors
userenv=$HOME/.Xresources.env
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usercolors" ]; then
xrdb -merge "$usercolors"
fi
if [ -f "$userenv" ]; then
xrdb -merge "$userenv"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
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
exec bspwm