Created
June 29, 2021 21:15
-
-
Save dafevara/6b6af1724ecc8b5633413b95b6311764 to your computer and use it in GitHub Desktop.
turn the lights on!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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