...
 
Commits (5)
# colors for exa
set -x EXA_COLORS "uu=38;5;249:un=38;5;241:gu=38;5;245:gn=38;5;241:da=38;5;245:sn=38;5;7:sb=38;5;7:ur=38;5;3;1:uw=38;5;5;1:ux=38;5;1;1:ue=38;5;1;1:gr=38;5;249:gw=38;5;249:gx=38;5;249:tr=38;5;249:tw=38;5;249:tx=38;5;249:fi=38;5;248:di=38;5;253:ex=38;5;1:xa=38;5;12:*.png=38;5;4:*.jpg=38;5;4:*.gif=38;5;4"
# Darkmode
set -l val (defaults read -g AppleInterfaceStyle 2>/dev/null)
if test ! -n "$val"
echo -ne "\033]50;SetProfile=Default\a"
set -x ITERM_PROFILE "Default"
set -x BAT_THEME "OneHalfLight"
set -x HIGHLIGHT_STYLE "base16/tomorrow"
set -u FZF_DEFAULT_OPTS
else
echo -ne "\033]50;SetProfile=Dark\a"
set -x ITERM_PROFILE "Dark"
set -x BAT_THEME "OneHalfDark"
set -x HIGHLIGHT_STYLE "base16/tomorrow-night"
set -x FZF_DEFAULT_OPTS '--color=bg+:#635196,fg:#b4b4b9,pointer:#ffb07b,marker:#ff761a,prompt:#34bfa4,info:#ffd392'
end
# falcon colors for exa
# set -x EXA_COLORS "uu=38;5;249:un=38;5;241:gu=38;5;245:gn=38;5;241:da=38;5;245:sn=38;5;7:sb=38;5;7:ur=38;5;3;1:uw=38;5;5;1:ux=38;5;1;1:ue=38;5;1;1:gr=38;5;249:gw=38;5;249:gx=38;5;249:tr=38;5;249:tw=38;5;249:tx=38;5;249:fi=38;5;248:di=38;5;253:ex=38;5;1:xa=38;5;12:*.png=38;5;4:*.jpg=38;5;4:*.gif=38;5;4"
# GPG setup
set -x GPG_TTY "(tty)"
......@@ -17,7 +33,6 @@ set -x LC_TIME "en_US.UTF-8"
set -x LC_ALL "en_US.UTF-8"
# setup fzf
set -x FZF_DEFAULT_OPTS '--color=bg+:#635196,fg:#b4b4b9,pointer:#ffb07b,marker:#ff761a,prompt:#34bfa4,info:#ffd392'
set -x FZF_DEFAULT_COMMAND "fd -t f -E Library -E Pictures -E Music"
set -x FZF_CTRL_T_COMMAND "$FZF_DEFAULT_COMMAND"
set -x FZF_CTRL_T_OPTS "--ansi --preview '(highlight -O ansi -l {} || cat {}) 2> /dev/null | head -100' --height 50%"
......
function dm -d "Switch iTerm2 to Dark Mode"
set -l val (defaults read -g AppleInterfaceStyle 2>/dev/null)
if test ! -n "$val"
echo -ne "\033]50;SetProfile=Default\a"
set -x ITERM_PROFILE "Default"
set -x BAT_THEME "OneHalfLight"
set -x HIGHLIGHT_STYLE "base16/tomorrow"
set -u FZF_DEFAULT_OPTS
else
echo -ne "\033]50;SetProfile=Dark\a"
set -x ITERM_PROFILE "Dark"
set -x BAT_THEME "OneHalfDark"
set -x HIGHLIGHT_STYLE "base16/tomorrow-night"
set -x FZF_DEFAULT_OPTS '--color=bg+:#635196,fg:#b4b4b9,pointer:#ffb07b,marker:#ff761a,prompt:#34bfa4,info:#ffd392'
end
end
......@@ -7,3 +7,4 @@
!rc.conf
!.gitignore
!devicons.py
!scope.sh
......@@ -100,7 +100,7 @@ set show_hidden_bookmarks true
# Which colorscheme to use? These colorschemes are available by default:
# default, jungle, snow, solarized
set colorscheme falcon
set colorscheme default
# Preview files on the rightmost column?
# And collapse (shrink) the last column if there is nothing to preview?
......
This diff is collapsed.
......@@ -27,7 +27,6 @@ Plug 'tomasr/molokai'
Plug 'sjl/badwolf'
Plug 'chriskempson/tomorrow-theme'
Plug 'rizzatti/dash.vim'
Plug 'fenetikm/falcon'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'honza/vim-snippets'
......@@ -50,21 +49,24 @@ call plug#end()
filetype plugin indent on
syntax enable
" check for darkmode
let iterm_profile = $ITERM_PROFILE
" support 256 color terminal
set t_Co=256
let g:rehash256 = 1
set background=dark
if iterm_profile == "Dark"
set background=dark
let g:airline_theme = 'tomorrow'
colorscheme Tomorrow-Night-Bright
else
set background=light
let g:airline_theme = 'tomorrow'
colorscheme Tomorrow
endif
" enable 24bit colors
set termguicolors
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
" enable falcon theme
let g:falcon_background = 0
let g:falcon_inactive = 1
let g:falcon_airline = 1
let g:airline_theme = 'falcon'
colorscheme falcon
hi ColorColumn ctermbg=grey guibg=#303030
" setup GUI
if has("gui_running")
......