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 | |
plutil -extract AppleSelectedInputSources xml1 -o - ~/Library/Preferences/com.apple.HIToolbox.plist | xmllint --xpath \"string(//dict[2]/string[2])\" - |
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
" Logic for entering/leaving a pane | |
function! OnWinEnter() | |
if exists('w:initial_cc') | |
let &colorcolumn = w:initial_cc | |
endif | |
endfunction | |
function! OnWinLeave() | |
if !exists('w:initial_cc') | |
let w:initial_cc=&colorcolumn | |
endif |
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
" COLORS AND THEMING ########################################################## | |
function! SetBackgroundMode(...) | |
let g:new_bg = "light" | |
let g:ayucolor = "light" # If your theme supports light mode | |
let s:mode = systemlist("defaults read -g AppleInterfaceStyle")[0] | |
if s:mode ==? "Dark" | |
let g:ayucolor = "dark" # If your theme supports dark mode | |
let g:new_bg = "dark" | |
endif |