diff options
-rw-r--r-- | Xresources/.Xresources/seoul256.dark | 40 | ||||
-rw-r--r-- | vim/.vimrc | 9 | ||||
-rw-r--r-- | zsh/.zsh/functions | 14 |
3 files changed, 39 insertions, 24 deletions
diff --git a/Xresources/.Xresources/seoul256.dark b/Xresources/.Xresources/seoul256.dark index f775e12..30ad561 100644 --- a/Xresources/.Xresources/seoul256.dark +++ b/Xresources/.Xresources/seoul256.dark @@ -6,23 +6,25 @@ URxvt.borderColor: #3a3a3a URxvt*background: #3a3a3a URxvt*foreground: #d0d0d0 +! Cursor +*cursorColor: #d0d0d0 +*cursorColor2: #3a3a3a +*colorBD: #e4e4e4 + ! Other colors -URxvt*color0: #4e4e4e -URxvt*color1: #d68787 -URxvt*color2: #5f865f -URxvt*color3: #d8af5f -URxvt*color4: #85add4 -URxvt*color5: #d7afaf -URxvt*color6: #87afaf -URxvt*color7: #d0d0d0 -URxvt*color8: #626262 -URxvt*color9: #d75f87 -URxvt*color10: #87af87 -URxvt*color11: #ffd787 -URxvt*color12: #add4fb -URxvt*color13: #ffafaf -URxvt*color14: #87d7d7 -URxvt*color15: #e4e4e4 -URxvt*cursorColor: #d0d0d0 -URxvt*cursorColor2: #3a3a3a -URxvt*colorBD: #e4e4e4 +*color0: #4e4e4e +*color1: #d68787 +*color2: #5f865f +*color3: #d8af5f +*color4: #85add4 +*color5: #d7afaf +*color6: #87afaf +*color7: #d0d0d0 +*color8: #626262 +*color9: #d75f87 +*color10: #87af87 +*color11: #ffd787 +*color12: #add4fb +*color13: #ffafaf +*color14: #87d7d7 +*color15: #e4e4e4 @@ -304,10 +304,11 @@ nnoremap <Leader>d :bd!<cr> nmap gs :set opfunc=Search<cr>g@ xmap gs :<c-u>call Search(visualmode())<cr> -function! Search(vt) - let l=getline(a:0 ? "'<" : "'[") - let [line1,col1] = getpos(a:0 ? "'<" : "'[")[1:2] - let [line2,col2] = getpos(a:0 ? "'>" : "']")[1:2] +function! Search(vm) + let is_visual=(a:vm == "v") + let l=getline(is_visual ? "'<" : "'[") + let [line1,col1] = getpos(is_visual ? "'<" : "'[")[1:2] + let [line2,col2] = getpos(is_visual ? "'>" : "']")[1:2] call feedkeys(':Grepper -tool git -query "' . l[col1 - 1: col2 - 1] . '"') endfunction diff --git a/zsh/.zsh/functions b/zsh/.zsh/functions index 0735fa2..411f27a 100644 --- a/zsh/.zsh/functions +++ b/zsh/.zsh/functions @@ -24,10 +24,22 @@ function colo { -e "s/.*borderColor:/${esc}]708;/p" \ -e "s/.*color\\([0-9][^:]*\\):/${esc}]4;\\1;/p" | tr \\n \\a - # Change color for future sessions xrdb ${XRESOURCE_FILE} + # Update termite colorscheme + TERMITE_CONFIG=~/.config/termite/config + while read -r line || [[ -n "$line" ]]; do + case "$line" in + *background* ) sed -i "s/^background.*$/background = ${line##* }/" ${TERMITE_CONFIG} ;; + *foreground* ) sed -i "s/^foreground.*$/foreground = ${line##* }/" ${TERMITE_CONFIG} ;; + *cursorColor* ) sed -i "s/^cursor.*$/cursor = ${line##* }/" ${TERMITE_CONFIG} ;; + *color[0-9]* ) color=$(echo ${line/:*/} | sed 's/.*color\([0-9]\+\)/\1/'); + sed -i "s/^color${color}\>.*$/color${color} = ${line##* }/" ${TERMITE_CONFIG} ;; + * ) ;; + esac + done < ${XRESOURCE_FILE} + # Change default environment variable for future sessions mkdir -p $(dirname ${ZSH_COLORS}) |