2 # using zsh to load .zshenv (eg. for PATH) but file is sh-compatible
5 # TODO: create shim for cpp
6 xrdb -merge ~/.Xresources
12 find -L "${XDG_DATA_HOME:-~/share}/fonts" -mindepth 1 -maxdepth 2 -type d | while read -r x; do
13 [ -f "$x/fonts.dir" ] && xset +fp $x
17 # redshift, root image
22 urxvt -name TermBg1 -override-redirect -geometry x5+0--1 \
23 -e tail -F /var/log/messages &
24 xdotool search --limit 1 --sync --classname TermBg1 windowsize --usehints 100% 6
27 #"$HOME/src/phwmon/phwmon.py" --mem --mem_percent --net --io --bg \#0000 &
33 xautolock -time 10 -locker "$HOME/bin/lck" &
36 if [ -z "$TERMINAL" -a \( -x $(which -a urxvtd | head -1) \) ]; then
38 # try to start client twice, once before checking for daemon
39 # and another after trying to start it
40 urxvtc -e exit >/dev/null 2>&1
42 # daemon not started, attempt to start once
59 # sleep to wait for session to start fully
60 (sleep 0.1 && tint2) &
63 # TODO: check hostname to load auxillary things
64 # TODO: reformat for linux
65 #(sleep 0.1 "$HOME/bin/acpi_ac" "0x0`sysctl -n hw.acpi.acline`") &