Created
June 29, 2021 21:16
-
-
Save dafevara/fd435a9357223c5abbcf5173cfb9a9ec to your computer and use it in GitHub Desktop.
turn the lights off
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 = true" | |
it2setcolor preset onedark_dfvr | |
if pgrep -x 'nvim' > /dev/null | |
then | |
if [ -e /tmp/nvimsocket ] | |
then | |
nvr --remote-send ':set background=dark<Enter>' | |
nvr --remote-send ':colorscheme onedark<Enter>' | |
nvr --remote-send ":let g:airline_theme='onedark'<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