Skip to content

Instantly share code, notes, and snippets.

@dafevara
Created June 29, 2021 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dafevara/6b6af1724ecc8b5633413b95b6311764 to your computer and use it in GitHub Desktop.
Save dafevara/6b6af1724ecc8b5633413b95b6311764 to your computer and use it in GitHub Desktop.
turn the lights on!
#!/bin/bash
osascript -l JavaScript -e "Application('System Events').appearancePreferences.darkMode = false"
it2setcolor preset base16-one-light-256 #for it2setcolor see iterm2 shell integration
if pgrep -x 'nvim' > /dev/null
then
if [ -e /tmp/nvimsocket ]
then
nvr --remote-send ":let g:airline_theme='light'<Enter>"
nvr --remote-send ':set background=light<Enter>'
nvr --remote-send ':colorscheme one<Enter>'
else
echo $NVIM_PROCESS
fi
else
echo "No nvim running"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment