3 dark_color
='black' # #222
6 if [ "$1" = "dark" ]; then
9 elif [ "$1" = "light" ]; then
13 echo "Usage: $0 {dark|light}"
17 # most applications using xresources
18 printf "*.foreground: $fg\n*.background: $bg" | xrdb
-override
20 printf "*VT100*foreground: $fg\n*VT100*background: $bg" | xrdb
-override
23 if [ "$(pgrep -u $USER emacs)" ]; then
24 emacsclient
-ue "(set-face-attribute 'default nil :foreground \"$fg\" :background \"$bg\")"
27 for term
in /dev
/pts
/*; do
28 if [ -w "$term" ]; then
29 printf "\033]10;$fg\a" > "$term"
30 printf "\033]11;$bg\a" > "$term"