Differentiate between host-specific startup progs and profiles
[~bandali/configs] / .local / bin / startup-progs
index 0c37df0..2040de2 100755 (executable)
@@ -1,8 +1,12 @@
 #!/bin/sh
 
 #!/bin/sh
 
-resources="~/.Xresources ~/.Xresources.d/$(hostname)"
+resources="$HOME/.Xresources $HOME/.Xresources.d/$(hostname)"
 for res in $resources; do [ -f "$res" ] && xrdb -merge "$res"; done
 
 for res in $resources; do [ -f "$res" ] && xrdb -merge "$res"; done
 
+if [ -f "$HOME/.local/bin/$(hostname)/startup" ]; then
+   . "$HOME/.local/bin/$(hostname)/startup"
+fi
+
 xsetroot -cursor_name left_ptr
 xset r rate 200 45
 xset b off
 xsetroot -cursor_name left_ptr
 xset r rate 200 45
 xset b off