2 # using zsh to load .zshenv (eg. for PATH) but file is sh-compatible
4 sysmodmap=/usr/local/etc/X11/xinit/.Xmodmap
5 sysresources=/usr/local/etc/X11/xinit/.Xresources
7 userresources=~/.Xresources
9 if [ -f $sysresources ]; then
10 xrdb -merge $sysresources
12 if [ -f $sysmodmap ]; then
15 if [ -f "$userresources" ]; then
16 xrdb -merge "$userresources"
18 if [ -f "$usermodmap" ]; then
22 # redshift, root image
32 find -L "${XDG_DATA_HOME:-~/share}/fonts" -type d -mindepth 1 -maxdepth 2 | while read -r x; do
33 [ -f "$x/fonts.dir" ] && xset +fp $x
38 urxvt -name TermBg1 -override-redirect -geometry x5+0--1 \
39 -e tail -F /var/log/messages &
40 xdotool search --limit 1 --sync --classname TermBg1 windowsize --usehints 100% 6
43 #"$HOME/src/phwmon/phwmon.py" --mem --mem_percent --net --io --bg \#0000 &
49 xautolock -time 10 -locker "$HOME/bin/lck" &
53 if [ -z "$TERMINAL" -a \( -x /usr/bin/urxvtd -o -x /usr/local/bin/urxvtd \) ]; then
55 # try to start client twice, once before checking for daemon
56 # and another after trying to start it
57 urxvtc -e exit 2>/dev/null
59 # daemon not started, attempt to start once
75 # try to wait for session to start
76 (sleep 0.1 && tint2) &
78 # TODO: check hostname to load auxillary things
79 # TODO: reformat for linux
80 #(sleep 0.1 "$HOME/bin/acpi_ac" "0x0`sysctl -n hw.acpi.acline`") &
82 # load any global scripts
83 if [ -d /usr/local/etc/X11/xinit/xinitrc.d ]; then
84 for f in /usr/local/etc/X11/xinit/xinitrc.d/?*.sh; do