From eb434099837d8870c4dd08955057903dfaf22508 Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Sun, 21 Jan 2024 12:06:39 +0100 Subject: [PATCH] Update 2024-01-21 12:06 OpenBSD/amd64-x13 --- .bin/_config | 3 +- .bin/chrome | 1 - .bin/dexec_ssh | 2 +- .bin/portjump | 5 - .config/bspwm/bspwmrc | 13 +- .config/bspwm/sxhkdrc | 14 +- .config/herbstluftwm/autostart | 19 +- .gdbinit | 10 +- .vim/colors/boring.vim | 85 ----- .vim/colors/goodwolf.vim | 546 --------------------------------- 10 files changed, 39 insertions(+), 659 deletions(-) delete mode 100644 .vim/colors/boring.vim delete mode 100644 .vim/colors/goodwolf.vim diff --git a/.bin/_config b/.bin/_config index 1ccb6b5..9447b54 100644 --- a/.bin/_config +++ b/.bin/_config @@ -12,7 +12,7 @@ PIMDIR="${HOME}/Documents" COLOR_NB="#181818" COLOR_NF="#707070" -COLOR_SB="#222222" +COLOR_SB="#333333" COLOR_SF="#CCCCCC" # @@ -38,6 +38,7 @@ DMENUOPTS="-fn Terminus:pixelsize=20 \ DMENU_CMD="dmenu $DMENUOPTS" #DMENU_CMD="rofi -dmenu" DMENURUN_CMD="dmenu_run $DMENUOPTS" +#DMENURUN_CMD="rofi -show run" # # NOTIFY diff --git a/.bin/chrome b/.bin/chrome index 1efa0f4..20e25c2 100755 --- a/.bin/chrome +++ b/.bin/chrome @@ -1,5 +1,4 @@ #!/bin/sh -. ~/.bin/_config /usr/local/bin/ungoogled-chromium \ --bwsi \ --enable-easy-off-store-extension-install \ diff --git a/.bin/dexec_ssh b/.bin/dexec_ssh index c9e2e0b..aba7ee6 100755 --- a/.bin/dexec_ssh +++ b/.bin/dexec_ssh @@ -4,7 +4,7 @@ CONF=$(cat $HOME/.ssh/config| grep -Ei "^host" | grep -v '*' | cut -d" " -f2) HOSTS=$(cat $HOME/.ssh/known_hosts | cut -d" " -f1 | tr ',' '\n') -HOST=$(printf '%s\n%s' "$CONF" "$HOSTS" | grep -v '=' | sort -ru | $DMENU_CMD -p SSH) +HOST=$(printf '%s\n%s' "$CONF" "$HOSTS" | grep -v '=' | sort -ru | $DMENU_CMD -p SSH -l 20) if [ ! -z "$HOST" ]; then case "$HOST" in *-sftp) texec "sftp $HOST"; ;; diff --git a/.bin/portjump b/.bin/portjump index fb665c7..bce20bb 100755 --- a/.bin/portjump +++ b/.bin/portjump @@ -1,10 +1,5 @@ #!/bin/sh -if [ -z $1 ] -then - exit 0 -fi - cd /usr/ports _ports=$(find \ diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index cdcd767..8b237e1 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -1,13 +1,14 @@ #!/bin/sh -#export MIXERDEVICE=/dev/audioctl0 -pgrep -q polybar || polybar & +# export MIXERDEVICE=/dev/audioctl0 +# pgrep -q polybar || polybar & # start hotkey daemon pgrep -q sxhkd || sxhkd -c $HOME/.config/bspwm/sxhkdrc & # we're fancy now. -pgrep -q picom || picom & +# hsetroot -fill ~/Backgrounds/5JdtbnY.jpg +# pgrep -q picom || picom & # configure bspwm bspc monitor -d 1 2 3 4 5 6 7 8 9 10 @@ -29,11 +30,11 @@ bspc config active_border_color "#444444" bspc config normal_border_color "#222222" bspc config ignore_ewmh_fullscreen true -bspc config presel_feedback_color "#FF6A00" -bspc config presel_feedback false +bspc config presel_feedback_color "#442211" +bspc config presel_feedback true # automatic tiling -bspc config automatic_scheme longest_side +bspc config automatic_scheme alternate bspc config honor_size_hints false # mouse can resize/move floating nodes diff --git a/.config/bspwm/sxhkdrc b/.config/bspwm/sxhkdrc index 9222c41..dcdfbe6 100644 --- a/.config/bspwm/sxhkdrc +++ b/.config/bspwm/sxhkdrc @@ -34,6 +34,15 @@ alt + a alt + p dexec_pim +alt + v + dexec_vpn + +alt + shift + o + texec "vim -c ':History!'" + +alt + o + texec "vim -c ':Files!'" + # # bspwm hotkeys # @@ -50,7 +59,6 @@ alt + p # quit/restart bspwm alt + shift + r bspc wm -r - pkill -SIGUSR1 polybar pkill -SIGUSR1 sxhkd # close and kill @@ -140,8 +148,8 @@ ctrl + alt + shift + {1-9,0} # # preselect the direction -alt + ctrl + {h,j,k,l} - bspc node -p {west,south,north,east} +#super + {Left,Down,Up,Right} +# bspc node -p {west,south,north,east} alt + ctrl + {Left,Down,Up,Right} bspc node -p {west,south,north,east} diff --git a/.config/herbstluftwm/autostart b/.config/herbstluftwm/autostart index 59848ce..cb6b14e 100755 --- a/.config/herbstluftwm/autostart +++ b/.config/herbstluftwm/autostart @@ -44,6 +44,7 @@ hc keybind $Mod-Shift-r reload hc keybind $Mod-q close_or_remove hc keybind $Mod-Return spawn sterm hc keybind $Mod-Shift-Return spawn bterm +hc keybind $Mod-Control-Return spawn hterm hc keybind $Mod-d spawn dexec hc keybind $Mod-a spawn dexec_apps hc keybind $Mod-Shift-f spawn dexec_browser @@ -58,6 +59,8 @@ hc keybind $Mod-Down focus down hc keybind $Mod-Up focus up hc keybind $Mod-Right focus right +hc keybind $Mod-x split explode + # splitting frames # create an empty frame at the specified direction hc keybind $Mod-Shift-Down chain . split bottom 0.5 . focus down @@ -87,7 +90,7 @@ hc keybind $Mod-Control-Next chain . move_index +1 . use_index +1 hc keybind $Mod-space set_attr clients.focus.floating toggle # scratchpad -hc keybind $Mod-minus spawn scratchpad.sh +# hc keybind $Mod-minus spawn scratchpad.sh ####################################################################### # MOUSE BINDINGS @@ -133,11 +136,15 @@ hc set tree_style '╾│ ├└╼─┐' hc attr theme.reset 1 # spacing -hc set frame_gap 14 +hc set frame_gap 0 hc attr theme.title_align center hc set frame_padding 0 hc set smart_window_surroundings off -hc set smart_frame_surroundings off +hc set smart_frame_surroundings on + +hc set frame_transparent_width 0 +hc set always_show_frame on +hc set frame_bg_transparent on # TABS hc attr theme.title_height 12 @@ -149,7 +156,7 @@ hc attr theme.title_depth 5 hc attr theme.inner_width 0 hc attr theme.outer_width 0 hc attr theme.border_width 0 -hc set frame_border_width 1 +hc set frame_border_width 2 hc set window_border_width 0 # FLOATING WINDOW @@ -210,5 +217,5 @@ hc unlock # "$panel" "$monitor" & # done -pkill -lf "^polybar$" -polybar & +# pkill -lf "^polybar$" +# polybar & diff --git a/.gdbinit b/.gdbinit index ca24cf9..19910dc 100644 --- a/.gdbinit +++ b/.gdbinit @@ -103,13 +103,13 @@ prompt, see the command `python print(gdb.prompt.prompt_help())`''', See the `prompt` attribute. This value is used as a Python format string where `{pid}` is expanded with the process identifier of the target program.''', - 'default': '\[\e[1;35m\]>>>\[\e[0m\]' + 'default': r'\[\e[1;35m\]>>>\[\e[0m\]' }, 'prompt_not_running': { 'doc': '''Define the value of `{status}` when the target program is running. See the `prompt` attribute. This value is used as a Python format string.''', - 'default': '\[\e[90m\]>>>\[\e[0m\]' + 'default': r'\[\e[90m\]>>>\[\e[0m\]' }, # divider 'omit_divider': { @@ -2099,7 +2099,7 @@ architectures different from x86 setting this attribute might be mandatory.''', if len(fields) != 7: continue name, _, _, _, _, _, groups = fields - if not re.match('\w', name): + if not re.match(r'\w', name): continue for group in groups.split(','): if group in (match_groups or ('general',)): @@ -2187,7 +2187,7 @@ class Expressions(Dashboard.Module): default_radix = Expressions.get_default_radix() for number, expression in enumerate(self.table, start=1): label = expression - match = re.match('^/(\d+) +(.+)$', expression) + match = re.match(r'^/(\d+) +(.+)$', expression) try: if match: radix, expression = match.groups() @@ -2262,7 +2262,7 @@ class Expressions(Dashboard.Module): except RuntimeError: # XXX this is a fix for GDB <8.1.x see #161 message = run('show output-radix') - match = re.match('^Default output radix for printing of values is (\d+)\.$', message) + match = re.match(r'^Default output radix for printing of values is (\d+)\.$', message) return match.groups()[0] if match else 10 # fallback # XXX workaround to support BP_BREAKPOINT in older GDB versions diff --git a/.vim/colors/boring.vim b/.vim/colors/boring.vim deleted file mode 100644 index 940845a..0000000 --- a/.vim/colors/boring.vim +++ /dev/null @@ -1,85 +0,0 @@ -" Inspired by and based on Berk D. Demir's `noclown`: -" https://github.com/bdd/.vim/blob/09b4dbef06612c52c9c160773645bea82c0f490d/colors/noclown.vim - -hi clear -if exists("syntax_on") - syntax reset -endif -let g:colors_name = "boring" - -" Terminals that don't support italics resort to rendering them as standout. -" For comments and other things we italicize, this can become annoying very -" quickly. We are going to ignore 'italic' attribute if the terminal doesn't -" know about it. -let g:boring_has_italics = 0 -if (has('gui_running') || has('unix') && system('tput sitm') == "\e[3m") - let g:boring_has_italics = 1 -endif - -let s:palette = { - \ 'bg' : ["black", '#000000'], - \ 'fg' : ["white", '#ffffff'], - \ 'dull' : [ 251, '#c6c6c6'], - \ 'dark' : [ 246, '#949494'], - \ 'deep' : [ 239, '#4e4e4e'], - \ } - -function! s:Clear(group) - execute 'highlight! clear ' . a:group - execute 'highlight ' . a:group . ' NONE' -endfunction - -function! s:Define(group, fg, bg, style) - call s:Clear(a:group) - - let [l:ctermfg, l:guifg] = s:palette[a:fg] - let [l:ctermbg, l:guibg] = s:palette[a:bg] - - let l:style = g:boring_has_italics || a:style != 'italic' ? a:style : 'NONE' - - let l:hi_expr = 'highlight ' . a:group - let l:hi_expr .= ' cterm=' . l:style - let l:hi_expr .= ' ctermfg=' . l:ctermfg - let l:hi_expr .= ' ctermbg=' . l:ctermbg - let l:hi_expr .= ' gui=' . l:style - let l:hi_expr .= ' guifg=' . l:guifg - let l:hi_expr .= ' guibg=' . l:guibg - - execute l:hi_expr -endfunction - -function! s:Link(from, to) - call s:Clear(a:from) - execute 'highlight link ' . a:from . ' ' . a:to -endfunction - -call s:Define('Normal', 'fg', 'bg', 'NONE') -call s:Define('PreProc', 'dull', 'bg', 'NONE') -call s:Define('Constant', 'dull', 'bg', 'NONE') -call s:Define('String', 'dull', 'bg', 'italic') -call s:Define('Comment', 'dark', 'bg', 'NONE') -call s:Define('SpecialKey', 'deep', 'bg', 'NONE') -call s:Define('TODO', 'dark', 'bg', 'bold') -call s:Define('IncSearch', 'dull', 'bg', 'inverse') -call s:Define('Search', 'fg', 'bg', 'inverse') -call s:Define('Folded', 'dark', 'bg', 'inverse') -call s:Define('Title', 'fg', 'bg', 'bold') -call s:Define('Underlined', 'fg', 'bg', 'underline') -call s:Define('Pmenu ', 'fg', 'bg', 'inverse') -call s:Define('PmenuSel', 'fg', 'bg', 'bold') -call s:Define('MatchParen', 'fg', 'bg', 'bold') - -call s:Clear('Identifier') -call s:Clear('Special') -call s:Clear('Statement') -call s:Clear('Type') -call s:Clear('WarningMsg') -call s:Clear('Wildmenu') -call s:Clear('Directory') -call s:Clear('LineNr') -call s:Clear('SignColumn') - -call s:Link('NonText', 'SpecialKey') -call s:Link('Error', 'Search') -call s:Link('ErrorMsg', 'Search') -call s:Link('FoldColumn', 'Folded') diff --git a/.vim/colors/goodwolf.vim b/.vim/colors/goodwolf.vim deleted file mode 100644 index 7ef26c3..0000000 --- a/.vim/colors/goodwolf.vim +++ /dev/null @@ -1,546 +0,0 @@ -" _ _ __ -" | | | |/ _| -" __ _ ___ ___ __| | __ _____ | | |_ -" / _` |/ _ \ / _ \ / _` | \ \ /\ / / _ \| | _| -" | (_| | (_) | (_) | (_| | \ V V / (_) | | | -" \__, |\___/ \___/ \__,_| \_/\_/ \___/|_|_| -" __/ | -" |___/ -" -" :syntax less -" -" A Vim colorscheme pieced together by Steve Losh. -" Available at http://stevelosh.com/projects/badwolf/ -" -" Supporting code ------------------------------------------------------------- -" Preamble {{{ - -if !has("gui_running") && &t_Co != 88 && &t_Co != 256 - finish -endif - -set background=dark - -if exists("syntax_on") - syntax reset -endif - -let g:colors_name = "goodwolf" - -if !exists("g:badwolf_html_link_underline") " {{{ - let g:badwolf_html_link_underline = 1 -endif " }}} - -" }}} -" Palette {{{ - -let s:bwc = {} - -" The most basic of all our colors is a slightly tweaked version of the Molokai -" Normal text. -let s:bwc.plain = ['f8f6f2', 15] - -" Pure and simple. -let s:bwc.snow = ['ffffff', 15] -let s:bwc.coal = ['000000', 16] - -" All of the Gravel colors are based on a brown from Clouds Midnight. -let s:bwc.brightgravel = ['d9cec3', 252] -let s:bwc.lightgravel = ['998f84', 245] -let s:bwc.gravel = ['857f78', 243] -let s:bwc.mediumgravel = ['666462', 241] -let s:bwc.deepgravel = ['45413b', 238] -let s:bwc.deepergravel = ['35322d', 236] -let s:bwc.darkgravel = ['242321', 235] -let s:bwc.blackgravel = ['1c1b1a', 233] -let s:bwc.blackestgravel = ['141413', 232] - -" A color sampled from a highlight in a photo of a glass of Dale's Pale Ale on -" my desk. -let s:bwc.dalespale = ['fade3e', 221] - -" A beautiful tan from Tomorrow Night. -let s:bwc.dirtyblonde = ['f4cf86', 222] - -" Delicious, chewy red from Made of Code for the poppiest highlights. -let s:bwc.taffy = ['ff2c4b', 196] - -" Another chewy accent, but use sparingly! -let s:bwc.saltwatertaffy = ['8cffba', 121] - -" The star of the show comes straight from Made of Code. -" -" You should almost never use this. It should be used for things that denote -" 'where the user is', which basically consists of: -" -" * The cursor -" * A REPL prompt -let s:bwc.tardis = ['0a9dff', 39] - -" This one's from Mustang, not Florida! -let s:bwc.orange = ['ffa724', 214] - -" A limier green from Getafe. -let s:bwc.lime = ['aeee00', 154] - -" Rose's dress in The Idiot's Lantern. -let s:bwc.dress = ['ff9eb8', 211] - -" Another play on the brown from Clouds Midnight. I love that color. -let s:bwc.toffee = ['b88853', 137] - -" Also based on that Clouds Midnight brown. -let s:bwc.coffee = ['c7915b', 173] -let s:bwc.darkroast = ['88633f', 95] - -" }}} -" Highlighting Function {{{ -function! GoodWolfHL(group, fg, ...) - " Arguments: group, guifg, guibg, gui, guisp - - let histring = 'hi ' . a:group . ' ' - - if strlen(a:fg) - if a:fg == 'fg' - let histring .= 'guifg=fg ctermfg=fg ' - else - let c = get(s:bwc, a:fg) - let histring .= 'guifg=#' . c[0] . ' ctermfg=' . c[1] . ' ' - endif - endif - - if a:0 >= 1 && strlen(a:1) - if a:1 == 'bg' - let histring .= 'guibg=bg ctermbg=bg ' - else - let c = get(s:bwc, a:1) - let histring .= 'guibg=#' . c[0] . ' ctermbg=' . c[1] . ' ' - endif - endif - - if a:0 >= 2 && strlen(a:2) - let histring .= 'gui=' . a:2 . ' cterm=' . a:2 . ' ' - endif - - if a:0 >= 3 && strlen(a:3) - let c = get(s:bwc, a:3) - let histring .= 'guisp=#' . c[0] . ' ' - endif - - execute histring -endfunction - -" }}} -" Configuration Options {{{ - -if exists('g:badwolf_darkgutter') && g:badwolf_darkgutter - let s:gutter = 'blackestgravel' -else - let s:gutter = 'blackgravel' -endif - -if exists('g:badwolf_tabline') - if g:badwolf_tabline == 0 - let s:tabline = 'blackestgravel' - elseif g:badwolf_tabline == 1 - let s:tabline = 'blackgravel' - elseif g:badwolf_tabline == 2 - let s:tabline = 'darkgravel' - elseif g:badwolf_tabline == 3 - let s:tabline = 'deepgravel' - else - let s:tabline = 'blackestgravel' - endif -else - let s:tabline = 'blackgravel' -endif - -" }}} - -" Actual colorscheme ---------------------------------------------------------- -" Vanilla Vim {{{ - -" General/UI {{{ - -" call GoodWolfHL('Normal', 'plain', 'blackgravel') -call GoodWolfHL('Normal', 'plain', 'blackestgravel') - -call GoodWolfHL('Folded', 'mediumgravel', 'bg', 'none') - -call GoodWolfHL('VertSplit', 'lightgravel', 'bg', 'none') - -call GoodWolfHL('CursorLine', '', 'darkgravel', 'none') -call GoodWolfHL('CursorColumn', '', 'darkgravel') -call GoodWolfHL('ColorColumn', '', 'darkgravel') - -call GoodWolfHL('TabLine', 'plain', s:tabline, 'none') -call GoodWolfHL('TabLineFill', 'plain', s:tabline, 'none') -call GoodWolfHL('TabLineSel', 'coal', 'tardis', 'none') - -call GoodWolfHL('MatchParen', 'dalespale', 'darkgravel', 'bold') - -call GoodWolfHL('NonText', 'deepgravel', 'bg') -call GoodWolfHL('SpecialKey', 'deepgravel', 'bg') - -call GoodWolfHL('Visual', '', 'deepgravel') -call GoodWolfHL('VisualNOS', '', 'deepgravel') - -call GoodWolfHL('Search', 'coal', 'dalespale', 'bold') -call GoodWolfHL('IncSearch', 'coal', 'tardis', 'bold') - -call GoodWolfHL('Underlined', 'fg', '', 'underline') - -call GoodWolfHL('StatusLine', 'coal', 'tardis', 'bold') -call GoodWolfHL('StatusLineNC', 'snow', 'deepgravel', 'none') - -call GoodWolfHL('Directory', 'dirtyblonde', '', 'bold') - -call GoodWolfHL('Title', 'lime') - -call GoodWolfHL('ErrorMsg', 'taffy', 'bg', 'bold') -call GoodWolfHL('MoreMsg', 'dalespale', '', 'bold') -call GoodWolfHL('ModeMsg', 'dirtyblonde', '', 'bold') -call GoodWolfHL('Question', 'dirtyblonde', '', 'bold') -call GoodWolfHL('WarningMsg', 'dress', '', 'bold') - -" This is a ctags tag, not an HTML one. 'Something you can use c-] on'. -call GoodWolfHL('Tag', '', '', 'bold') - -" }}} -" Gutter {{{ - -call GoodWolfHL('LineNr', 'mediumgravel', s:gutter) -call GoodWolfHL('SignColumn', '', s:gutter) -call GoodWolfHL('FoldColumn', 'mediumgravel', s:gutter) - -" }}} -" Cursor {{{ - -call GoodWolfHL('Cursor', 'coal', 'tardis', 'bold') -call GoodWolfHL('vCursor', 'coal', 'tardis', 'bold') -call GoodWolfHL('iCursor', 'coal', 'tardis', 'none') - -" }}} -" Syntax highlighting {{{ - -" Start with a simple base. -call GoodWolfHL('Special', 'plain') - -" Comments are slightly brighter than folds, to make 'headers' easier to see. -call GoodWolfHL('Comment', 'gravel', 'bg', 'none') -call GoodWolfHL('Todo', 'snow', 'bg', 'bold') -call GoodWolfHL('SpecialComment', 'snow', 'bg', 'bold') - -" Strings are highlighted separately. -call GoodWolfHL('String', 'lightgravel', '', 'bold') - -" Turn off everything else -call GoodWolfHL('Statement', 'plain', '', 'none') -call GoodWolfHL('Keyword', 'plain', '', 'none') -call GoodWolfHL('Conditional', 'plain', '', 'none') -call GoodWolfHL('Operator', 'plain', '', 'none') -call GoodWolfHL('Label', 'plain', '', 'none') -call GoodWolfHL('Repeat', 'plain', '', 'none') -call GoodWolfHL('Identifier', 'plain', '', 'none') -call GoodWolfHL('Function', 'plain', '', 'none') -call GoodWolfHL('PreProc', 'plain', '', 'none') -call GoodWolfHL('Macro', 'plain', '', 'none') -call GoodWolfHL('Define', 'plain', '', 'none') -call GoodWolfHL('PreCondit', 'plain', '', 'none') -call GoodWolfHL('Constant', 'plain', '', 'none') -call GoodWolfHL('Character', 'plain', '', 'none') -call GoodWolfHL('Boolean', 'plain', '', 'none') -call GoodWolfHL('Number', 'plain', '', 'none') -call GoodWolfHL('Float', 'plain', '', 'none') -call GoodWolfHL('Type', 'plain', '', 'none') -call GoodWolfHL('StorageClass', 'plain', '', 'none') -call GoodWolfHL('Structure', 'plain', '', 'none') -call GoodWolfHL('Typedef', 'plain', '', 'none') -call GoodWolfHL('Exception', 'plain', '', 'none') - -" Not sure what 'special character in a constant' means, but let's make it pop. -call GoodWolfHL('SpecialChar', 'plain', '', 'bold') - -" Misc -call GoodWolfHL('Error', 'snow', 'taffy', 'bold') -call GoodWolfHL('Debug', 'snow', '', 'bold') -call GoodWolfHL('Ignore', 'gravel', '', '') - -" }}} -" Completion Menu {{{ - -call GoodWolfHL('Pmenu', 'plain', 'deepergravel') -call GoodWolfHL('PmenuSel', 'coal', 'tardis', 'bold') -call GoodWolfHL('PmenuSbar', '', 'deepergravel') -call GoodWolfHL('PmenuThumb', 'brightgravel') - -" }}} -" Diffs {{{ - -call GoodWolfHL('DiffDelete', 'coal', 'coal') -call GoodWolfHL('DiffAdd', '', 'deepergravel') -call GoodWolfHL('DiffChange', '', 'darkgravel') -call GoodWolfHL('DiffText', 'snow', 'deepergravel', 'bold') - -" }}} -" Spelling {{{ - -if has("spell") - call GoodWolfHL('SpellCap', 'dalespale', 'bg', 'undercurl,bold', 'dalespale') - call GoodWolfHL('SpellBad', '', 'bg', 'undercurl', 'dalespale') - call GoodWolfHL('SpellLocal', '', '', 'undercurl', 'dalespale') - call GoodWolfHL('SpellRare', '', '', 'undercurl', 'dalespale') -endif - -" }}} -" Status Line Utils {{{ - -call GoodWolfHL('GWStatusLineMode', 'coal', 'lime') -call GoodWolfHL('GWStatusLineModeX', 'lime', 'deepergravel') - - -" }}} - -" }}} -" Plugins {{{ - -" Clam {{{ - -" hg status -call GoodWolfHL('clamHgStatusAdded', 'lime', '', 'none') -call GoodWolfHL('clamHgStatusModified', 'saltwatertaffy', '', 'none') -call GoodWolfHL('clamHgStatusRemoved', 'toffee', '', 'none') -call GoodWolfHL('clamHgStatusUnknown', 'taffy', '', 'bold') - -" }}} -" CtrlP {{{ - -" the message when no match is found -call GoodWolfHL('CtrlPNoEntries', 'snow', 'taffy', 'bold') - -" the matched pattern -call GoodWolfHL('CtrlPMatch', 'dress', 'bg', 'bold') - -" the line prefix '>' in the match window -call GoodWolfHL('CtrlPLinePre', 'deepgravel', 'bg', 'none') - -" the prompt’s base -call GoodWolfHL('CtrlPPrtBase', 'deepgravel', 'bg', 'none') - -" the prompt’s text -call GoodWolfHL('CtrlPPrtText', 'plain', 'bg', 'none') - -" the prompt’s cursor when moving over the text -call GoodWolfHL('CtrlPPrtCursor', 'coal', 'tardis', 'bold') - -" 'prt' or 'win', also for 'regex' -call GoodWolfHL('CtrlPMode1', 'coal', 'tardis', 'bold') - -" 'file' or 'path', also for the local working dir -call GoodWolfHL('CtrlPMode2', 'coal', 'tardis', 'bold') - -" the scanning status -call GoodWolfHL('CtrlPStats', 'coal', 'tardis', 'bold') - -" }}} -" Interesting Words {{{ - -" These are only used if you're me or have copied the hNUM mappings -" from my Vimrc. -call GoodWolfHL('InterestingWord1', 'coal', 'orange') -call GoodWolfHL('InterestingWord2', 'coal', 'lime') -call GoodWolfHL('InterestingWord3', 'coal', 'saltwatertaffy') -call GoodWolfHL('InterestingWord4', 'coal', 'toffee') -call GoodWolfHL('InterestingWord5', 'coal', 'dress') -call GoodWolfHL('InterestingWord6', 'coal', 'taffy') - -" }}} -" Rainbow Parentheses {{{ - -call GoodWolfHL('level1c', 'mediumgravel', '', 'bold') - -" }}} -" Fugitive {{{ - -call GoodWolfHL('fugitiveHeading', 'dress', 'bg', 'bold') -call GoodWolfHL('fugitiveHeader', 'dress', 'bg', 'bold') -call GoodWolfHL('fugitiveCount', 'plain', 'bg', 'bold') -call GoodWolfHL('fugitiveSymbolicRef', 'dirtyblonde', 'bg', 'none') -call GoodWolfHL('fugitiveModifier', 'dirtyblonde', 'bg', 'bold') - -" }}} - -" }}} -" Filetype-specific {{{ - -" Clojure {{{ - -call GoodWolfHL('clojureParen0', 'lightgravel', '', 'none') -call GoodWolfHL('clojureAnonArg', 'snow', '', 'bold') - -" }}} -" CSS {{{ - -call GoodWolfHL('cssBraces', 'lightgravel', '', 'none') - -" }}} -" Diff {{{ - -call GoodWolfHL('gitDiff', 'lightgravel', '',) - -call GoodWolfHL('diffRemoved', 'dress', '',) -call GoodWolfHL('diffAdded', 'lime', '',) -call GoodWolfHL('diffFile', 'coal', 'toffee', 'bold') -call GoodWolfHL('diffNewFile', 'coal', 'toffee', 'bold') - -call GoodWolfHL('diffLine', 'coal', 'orange', 'bold') -call GoodWolfHL('diffSubname', 'orange', '', 'none') - -" }}} -" Fish {{{ - -call GoodWolfHL('fishOperator', 'fg', 'bg', 'none') -call GoodWolfHL('fishDerefIdentifier', 'dress', 'bg', 'bold') - -" }}} -" HTML {{{ - -" Punctuation -call GoodWolfHL('htmlTag', 'darkroast', 'bg', 'none') -call GoodWolfHL('htmlEndTag', 'darkroast', 'bg', 'none') - -" Tag names -call GoodWolfHL('htmlTagName', 'coffee', '', 'bold') -call GoodWolfHL('htmlSpecialTagName', 'coffee', '', 'bold') -call GoodWolfHL('htmlSpecialChar', 'lime', '', 'none') - -" Attributes -call GoodWolfHL('htmlArg', 'coffee', '', 'none') - -" Stuff inside an tag - -if g:badwolf_html_link_underline - call GoodWolfHL('htmlLink', 'lightgravel', '', 'underline') -else - call GoodWolfHL('htmlLink', 'lightgravel', '', 'none') -endif - -" }}} -" Java {{{ - -call GoodWolfHL('javaCommentTitle', 'gravel', '') -call GoodWolfHL('javaDocTags', 'snow', '', 'none') -call GoodWolfHL('javaDocParam', 'plain', '', '') - -" }}} -" LaTeX {{{ - -call GoodWolfHL('texStatement', 'dress', '', 'none') -call GoodWolfHL('texDocType', 'dress', '', 'none') -call GoodWolfHL('texSection', 'dress', '', 'none') -call GoodWolfHL('texBeginEnd', 'dress', '', 'none') - -call GoodWolfHL('texMathZoneX', 'orange', '', 'none') -call GoodWolfHL('texMathZoneA', 'orange', '', 'none') -call GoodWolfHL('texMathZoneB', 'orange', '', 'none') -call GoodWolfHL('texMathZoneC', 'orange', '', 'none') -call GoodWolfHL('texMathZoneD', 'orange', '', 'none') -call GoodWolfHL('texMathZoneE', 'orange', '', 'none') -call GoodWolfHL('texMathZoneV', 'orange', '', 'none') -call GoodWolfHL('texMathZoneX', 'orange', '', 'none') -call GoodWolfHL('texMath', 'orange', '', 'none') -call GoodWolfHL('texMathMatcher', 'orange', '', 'none') -call GoodWolfHL('texRefLabel', 'dirtyblonde', '', 'none') -call GoodWolfHL('texRefZone', 'lime', '', 'none') -call GoodWolfHL('texDelimiter', 'orange', '', 'none') -call GoodWolfHL('texZone', 'brightgravel', '', 'none') - -augroup badwolf_tex - au! - - au BufRead,BufNewFile *.tex syn region texMathZoneV start="\\(" end="\\)\|%stopzone\>" keepend contains=@texMathZoneGroup - au BufRead,BufNewFile *.tex syn region texMathZoneX start="\$" skip="\\\\\|\\\$" end="\$\|%stopzone\>" keepend contains=@texMathZoneGroup -augroup END - -" }}} -" REPLs {{{ -" This isn't a specific plugin, but just useful highlight classes for anything -" that might want to use them. - -call GoodWolfHL('replPrompt', 'tardis', '', 'bold') - -" }}} -" Mail {{{ - -call GoodWolfHL('mailSubject', 'orange', '', 'bold') -call GoodWolfHL('mailHeader', 'lightgravel', '', '') -call GoodWolfHL('mailHeaderKey', 'lightgravel', '', '') -call GoodWolfHL('mailHeaderEmail', 'snow', '', '') -call GoodWolfHL('mailURL', 'toffee', '', 'underline') -call GoodWolfHL('mailSignature', 'gravel', '', 'none') - -call GoodWolfHL('mailQuoted1', 'gravel', '', 'none') -call GoodWolfHL('mailQuoted2', 'dress', '', 'none') -call GoodWolfHL('mailQuoted3', 'dirtyblonde', '', 'none') -call GoodWolfHL('mailQuoted4', 'orange', '', 'none') -call GoodWolfHL('mailQuoted5', 'lime', '', 'none') - -" }}} -" Markdown {{{ - -call GoodWolfHL('markdownHeadingRule', 'lightgravel', '', 'bold') -call GoodWolfHL('markdownHeadingDelimiter', 'lightgravel', '', 'bold') -call GoodWolfHL('markdownOrderedListMarker', 'lightgravel', '', 'bold') -call GoodWolfHL('markdownListMarker', 'lightgravel', '', 'bold') -call GoodWolfHL('markdownItalic', 'snow', '', 'bold') -call GoodWolfHL('markdownBold', 'snow', '', 'bold') -call GoodWolfHL('markdownH1', 'orange', '', 'bold') -call GoodWolfHL('markdownH2', 'lime', '', 'bold') -call GoodWolfHL('markdownH3', 'lime', '', 'none') -call GoodWolfHL('markdownH4', 'lime', '', 'none') -call GoodWolfHL('markdownH5', 'lime', '', 'none') -call GoodWolfHL('markdownH6', 'lime', '', 'none') -call GoodWolfHL('markdownLinkText', 'toffee', '', 'underline') -call GoodWolfHL('markdownIdDeclaration', 'toffee') -call GoodWolfHL('markdownAutomaticLink', 'toffee', '', 'bold') -call GoodWolfHL('markdownUrl', 'toffee', '', 'bold') -call GoodWolfHL('markdownUrldelimiter', 'lightgravel', '', 'bold') -call GoodWolfHL('markdownLinkDelimiter', 'lightgravel', '', 'bold') -call GoodWolfHL('markdownLinkTextDelimiter', 'lightgravel', '', 'bold') -call GoodWolfHL('markdownCodeDelimiter', 'dirtyblonde', '', 'bold') -call GoodWolfHL('markdownCode', 'dirtyblonde', '', 'none') -call GoodWolfHL('markdownCodeBlock', 'dirtyblonde', '', 'none') - -" }}} -" Python {{{ - -hi def link pythonOperator Operator -call GoodWolfHL('pythonBuiltin', 'plain') -call GoodWolfHL('pythonBuiltinObj', 'plain') -call GoodWolfHL('pythonBuiltinFunc', 'plain') -call GoodWolfHL('pythonEscape', 'plain') -call GoodWolfHL('pythonException', 'plain', '', 'none') -call GoodWolfHL('pythonExceptions', 'plain', '', 'none') -call GoodWolfHL('pythonPrecondit', 'plain', '', 'none') -call GoodWolfHL('pythonDecorator', 'plain', '', 'none') -call GoodWolfHL('pythonRun', 'plain', '', 'none') -call GoodWolfHL('pythonCoding', 'plain', '', 'bold') - -" }}} -" Scala {{{ - -call GoodWolfHL('scalaParameterAnnotation', 'gravel', '', 'bold') -call GoodWolfHL('scalaParamAnnotationValue', 'gravel', '', 'bold') -call GoodWolfHL('scalaCommentAnnotation', 'gravel', '', 'bold') -call GoodWolfHL('scalaDocLinks', 'gravel', '', 'bold') - -" }}} -" Vim {{{ - -call GoodWolfHL('helpHyperTextJump', 'dress', '', 'none') - -" }}} - -" }}} - -