Try out some colors...

This commit is contained in:
Andrew Tomaka 2022-09-15 22:52:12 -04:00
parent 3a7a94ed34
commit 0589a622de
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
5 changed files with 68 additions and 38 deletions

View file

@ -1,28 +1,30 @@
# Colors (Ayu Mirage) # Colors (Gruvbox dark)
colors: colors:
# Default colors # Default colors
primary: primary:
background: '#202734' # hard contrast: background = '0x1d2021'
foreground: '#CBCCC6' background: '0x282828'
# soft contrast: background = '0x32302f'
foreground: '0xebdbb2'
# Normal colors # Normal colors
normal: normal:
black: '#191E2A' black: '0x282828'
red: '#FF3333' red: '0xcc241d'
green: '#BAE67E' green: '0x98971a'
yellow: '#FFA759' yellow: '0xd79921'
blue: '#73D0FF' blue: '0x458588'
magenta: '#FFD580' magenta: '0xb16286'
cyan: '#95E6CB' cyan: '0x689d6a'
white: '#C7C7C7' white: '0xa89984'
# Bright colors # Bright colors
bright: bright:
black: '#686868' black: '0x928374'
red: '#F27983' red: '0xfb4934'
green: '#A6CC70' green: '0xb8bb26'
yellow: '#FFCC66' yellow: '0xfabd2f'
blue: '#5CCFE6' blue: '0x83a598'
magenta: '#FFEE99' magenta: '0xd3869b'
cyan: '#95E6CB' cyan: '0x8ec07c'
white: '#FFFFFF' white: '0xebdbb2'

View file

@ -1,27 +1,30 @@
# ayu-light # Colors (Gruvbox light)
colors: colors:
# Default colors
primary: primary:
background: '0xfafafa' # hard contrast: background = '0xf9f5d7'
foreground: '0x5b6672' background: '0xfbf1c7'
# soft contrast: background = '0xf2e5bc'
foreground: '0x3c3836'
# Normal colors # Normal colors
normal: normal:
black: '0x000000' #0 black: '0xfbf1c7'
red: '0xf2590b' #1 red: '0xcc241d'
green: '0x76cc00' #2 green: '0x98971a'
yellow: '0xf29717' #3 yellow: '0xd79921'
blue: '0x41a5d9' #4 blue: '0x458588'
magenta: '0x9965cc' #5 magenta: '0xb16286'
cyan: '0x4dbf98' #6 cyan: '0x689d6a'
white: '0xc7c7c7' #7 white: '0x7c6f64'
# Bright colors # Bright colors
bright: bright:
black: '0x676767' black: '0x928374'
red: '0xd6646a' #9 red: '0x9d0006'
green: '0xa3d900' #10 green: '0x79740e'
yellow: '0xe7c446' #11 yellow: '0xb57614'
blue: '0x6871ff' #12 blue: '0x076678'
magenta: '0xa37acc' #13 magenta: '0x8f3f71'
cyan: '0x56d9ad' #14 cyan: '0x427b58'
white: '0xfeffff' #15 white: '0x3c3836'

View file

@ -20,3 +20,11 @@ echo $alacritty_header > $alacritty/alacritty.yml
cat $alacritty/alacritty-base.yml $alacritty/themes/$new_color.yml >> $alacritty/alacritty.yml cat $alacritty/alacritty-base.yml $alacritty/themes/$new_color.yml >> $alacritty/alacritty.yml
echo $new_color > $color_file echo $new_color > $color_file
for pane_info in $(tmux list-panes -a -F '#{pane_id}-#{pane_current_command}'); do
IFS=- read pane cmd <<< "$pane_info"
if [[ $cmd == "vim" || $cmd == "nvim" ]]; then
tmux send-keys -t $pane ":call ChangeBackground()" ENTER
fi
done

View file

@ -1,5 +1,8 @@
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message " ✱ tmux.conf is reloaded" bind-key r source-file ~/.config/tmux/tmux.conf \; display-message " ✱ tmux.conf is reloaded"
set -g default-terminal "alacritty"
set -ag terminal-overrides ",alacritty:RGB"
# for muxception # for muxception
bind-key b send-prefix bind-key b send-prefix

View file

@ -18,6 +18,9 @@ Plug 'rust-lang/rust.vim'
Plug 'tpope/vim-rails' Plug 'tpope/vim-rails'
Plug 'vim-ruby/vim-ruby' Plug 'vim-ruby/vim-ruby'
" colors
Plug 'morhetz/gruvbox'
call plug#end() call plug#end()
" STATUS LINE " STATUS LINE
@ -124,6 +127,17 @@ autocmd BufNewFile,BufRead *.tftpl :set filetype=terraform
" other " other
map <Leader>fj :%!jq .<cr> map <Leader>fj :%!jq .<cr>
" COLOR CONFIGURATION
colorscheme gruvbox
" NONE is case sensitive in vim here (but not nvim)
autocmd ColorScheme * hi Normal ctermbg=NONE guibg=NONE
function! ChangeBackground()
let &background=readfile(glob("~/.config/atomaka/color.yml"))[0]
endfunction
call ChangeBackground()
" PLUGIN CONFIGURATION " PLUGIN CONFIGURATION
" editorconfig-vim " editorconfig-vim
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*'] let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']