* .local/bin/startup-progs: Add host-specific X resources.
authorAmin Bandali <bandali@gnu.org>
Thu, 24 Nov 2022 01:44:54 +0000 (20:44 -0500)
committerAmin Bandali <bandali@gnu.org>
Thu, 24 Nov 2022 01:44:54 +0000 (20:44 -0500)
.local/bin/startup-progs

index ab1c99f..0c37df0 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 
-[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
+resources="~/.Xresources ~/.Xresources.d/$(hostname)"
+for res in $resources; do [ -f "$res" ] && xrdb -merge "$res"; done
 
 xsetroot -cursor_name left_ptr
 xset r rate 200 45