Skip to content

Instantly share code, notes, and snippets.

@mcfiredrill
Last active January 31, 2022 14:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcfiredrill/4569002 to your computer and use it in GitHub Desktop.
Save mcfiredrill/4569002 to your computer and use it in GitHub Desktop.
dark.sh/light.sh
alias dark=$HOME/bin/dark.sh
alias light=$HOME/bin/light.sh
#!/bin/bash
set -e
XDEFAULTS="/home/tony/.Xdefaults"
VIMRC="/home/tony/.vimrc"
sed -i 's/urxvt\*background:\ white/urxvt\*background:\ black/g' $XDEFAULTS
sed -i 's/urxvt\*foreground:\ black/urxvt\*foreground:\ white/g' $XDEFAULTS
xrdb -merge $XDEFAULTS
sed -i 's/set background=light/set background=dark/g' $VIMRC
#!/bin/bash
set -e
XDEFAULTS="/home/tony/.Xdefaults"
VIMRC="/home/tony/.vimrc"
sed -i 's/urxvt\*background:\ black/urxvt\*background:\ white/g' $XDEFAULTS
sed -i 's/urxvt\*foreground:\ white/urxvt\*foreground:\ black/g' $XDEFAULTS
xrdb -merge $XDEFAULTS
sed -i 's/set background=dark/set background=light/g' $VIMRC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment