termcolor (255B)
1 #!/usr/bin/env bash 2 3 DIR=${XTHEMEDIR:-"$HOME/.Xresources.d/themes"} 4 5 [ -z "$1" ] && printf "usage: termcolor <dark|light>\n" && exit 1 6 7 rm -f "$DIR/current" 8 ln -s "$DIR/$1" "$DIR/current" 9 10 xrdb -load "$HOME/.Xresources" 11 12 [ "$2" == "kill" ] && pkill urxvt