This commit is contained in:
Dmitry Zakharchenko 2022-10-30 21:01:55 +02:00
parent 6bb0ef9cc2
commit 9c7b008d88
16 changed files with 177 additions and 505 deletions

View File

@ -2,8 +2,6 @@
= add volume 5
A cycle audio
S cycle sub
H add chapter -1
L add chapter 1
h seek -5
j seek -60
k seek 60

View File

@ -12,7 +12,6 @@ history-limit 0
notify-always no
notify-program "notify-send"
# Formatting
notify-format "%d new articles loaded."
datetime-format "%b %d"
feedlist-title-format " Feed (%u feeds unreaded)"
@ -21,7 +20,6 @@ feedlist-format " %-6T %-50t (%U New)"
articlelist-format "%3f %-8D %t"
itemview-title-format " %T"
# Bindings
bind-key h quit
bind-key j down
bind-key k up

View File

@ -52,7 +52,6 @@ https://youtube.com/feeds/videos.xml?channel_id=UCJLorkdDK41pOQyoVQbFqJQ "(ytb)"
"MOV" "(---)"
https://thepiratebay10.org/rss/top100/207 "(www)" "~HD Movies (top 100)"
https://youtube.com/feeds/videos.xml?channel_id=UCbaKd4mhqd1QvfDp5EaUlHw "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCoxVyr6d4OBKEY1dHhtEkRg "(ytb)"
https://youtube.com/feeds/videos.xml?channel_id=UCOaqC7XshSJO7PWwvjDJ1nQ "(ytb)"
"HIS" "(---)"

View File

@ -1,164 +1,35 @@
" vi:syntax=vim
" base16-vim (https://github.com/chriskempson/base16-vim)
" by Chris Kempson (http://chriskempson.com)
" Eighties scheme by Chris Kempson (http://chriskempson.com)
" This enables the coresponding base16-shell script to run so that
" :colorscheme works in terminals supported by base16-shell scripts
" User must set this variable in .vimrc
" let g:base16_shell_path=base16-builder/output/shell/
if !has("gui_running")
if exists("g:base16_shell_path")
execute "silent !/bin/sh ".g:base16_shell_path."/base16-eighties.sh"
endif
endif
" GUI color definitions
let s:gui00 = "2d2d2d"
let g:base16_gui00 = "2d2d2d"
let s:gui01 = "393939"
let g:base16_gui01 = "393939"
let s:gui02 = "515151"
let g:base16_gui02 = "515151"
let s:gui03 = "747369"
let g:base16_gui03 = "747369"
let s:gui04 = "a09f93"
let g:base16_gui04 = "a09f93"
let s:gui05 = "d3d0c8"
let g:base16_gui05 = "d3d0c8"
let s:gui06 = "e8e6df"
let g:base16_gui06 = "e8e6df"
let s:gui07 = "f2f0ec"
let g:base16_gui07 = "f2f0ec"
let s:gui08 = "f2777a"
let g:base16_gui08 = "f2777a"
let s:gui09 = "f99157"
let g:base16_gui09 = "f99157"
let s:gui0A = "ffcc66"
let g:base16_gui0A = "ffcc66"
let s:gui0B = "99cc99"
let g:base16_gui0B = "99cc99"
let s:gui0C = "66cccc"
let g:base16_gui0C = "66cccc"
let s:gui0D = "6699cc"
let g:base16_gui0D = "6699cc"
let s:gui0E = "cc99cc"
let g:base16_gui0E = "cc99cc"
let s:gui0F = "d27b53"
let g:base16_gui0F = "d27b53"
" Terminal color definitions
let s:cterm00 = "00"
let g:base16_cterm00 = "00"
let s:cterm03 = "08"
let g:base16_cterm03 = "08"
let s:cterm05 = "07"
let g:base16_cterm05 = "07"
let s:cterm07 = "15"
let g:base16_cterm07 = "15"
let s:cterm08 = "01"
let g:base16_cterm08 = "01"
let s:cterm0A = "03"
let g:base16_cterm0A = "03"
let s:cterm0B = "02"
let g:base16_cterm0B = "02"
let s:cterm0C = "06"
let g:base16_cterm0C = "06"
let s:cterm0D = "04"
let g:base16_cterm0D = "04"
let s:cterm0E = "05"
let g:base16_cterm0E = "05"
if exists("base16colorspace") && base16colorspace == "256"
let s:cterm01 = "18"
let g:base16_cterm01 = "18"
let s:cterm02 = "19"
let g:base16_cterm02 = "19"
let s:cterm04 = "20"
let g:base16_cterm04 = "20"
let s:cterm06 = "21"
let g:base16_cterm06 = "21"
let s:cterm09 = "16"
let g:base16_cterm09 = "16"
let s:cterm0F = "17"
let g:base16_cterm0F = "17"
else
let s:cterm01 = "10"
let g:base16_cterm01 = "10"
let s:cterm02 = "11"
let g:base16_cterm02 = "11"
let s:cterm04 = "12"
let g:base16_cterm04 = "12"
let s:cterm06 = "13"
let g:base16_cterm06 = "13"
let s:cterm09 = "09"
let g:base16_cterm09 = "09"
let s:cterm0F = "14"
let g:base16_cterm0F = "14"
endif
let s:cterm00 = "00"
let s:cterm01 = "10"
let s:cterm02 = "11"
let s:cterm03 = "08"
let s:cterm04 = "12"
let s:cterm05 = "07"
let s:cterm06 = "13"
let s:cterm07 = "15"
let s:cterm08 = "01"
let s:cterm09 = "09"
let s:cterm0A = "03"
let s:cterm0B = "02"
let s:cterm0C = "06"
let s:cterm0D = "04"
let s:cterm0E = "05"
let s:cterm0F = "14"
" Neovim terminal colours
if has("nvim")
let g:terminal_color_0 = "#2d2d2d"
let g:terminal_color_1 = "#f2777a"
let g:terminal_color_2 = "#99cc99"
let g:terminal_color_3 = "#ffcc66"
let g:terminal_color_4 = "#6699cc"
let g:terminal_color_5 = "#cc99cc"
let g:terminal_color_6 = "#66cccc"
let g:terminal_color_7 = "#d3d0c8"
let g:terminal_color_8 = "#747369"
let g:terminal_color_9 = "#f2777a"
let g:terminal_color_10 = "#99cc99"
let g:terminal_color_11 = "#ffcc66"
let g:terminal_color_12 = "#6699cc"
let g:terminal_color_13 = "#cc99cc"
let g:terminal_color_14 = "#66cccc"
let g:terminal_color_15 = "#f2f0ec"
let g:terminal_color_background = g:terminal_color_0
let g:terminal_color_foreground = g:terminal_color_5
if &background == "light"
let g:terminal_color_background = g:terminal_color_7
let g:terminal_color_foreground = g:terminal_color_2
endif
elseif has("terminal")
let g:terminal_ansi_colors = [
\ "#2d2d2d",
\ "#f2777a",
\ "#99cc99",
\ "#ffcc66",
\ "#6699cc",
\ "#cc99cc",
\ "#66cccc",
\ "#d3d0c8",
\ "#747369",
\ "#f2777a",
\ "#99cc99",
\ "#ffcc66",
\ "#6699cc",
\ "#cc99cc",
\ "#66cccc",
\ "#f2f0ec",
\ ]
endif
" Theme setup
hi clear
syntax reset
let g:colors_name = "base16-eighties"
let g:colors_name = "eighties"
" Highlighting function
" Optional variables are attributes and guisp
function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, ...)
function! g:Base16hi(group, ctermfg, ctermbg, ...)
let l:attr = get(a:, 1, "")
let l:guisp = get(a:, 2, "")
if a:guifg != ""
exec "hi " . a:group . " guifg=#" . a:guifg
endif
if a:guibg != ""
exec "hi " . a:group . " guibg=#" . a:guibg
endif
if a:ctermfg != ""
exec "hi " . a:group . " ctermfg=" . a:ctermfg
endif
@ -168,246 +39,200 @@ function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, ...)
if l:attr != ""
exec "hi " . a:group . " gui=" . l:attr . " cterm=" . l:attr
endif
if l:guisp != ""
exec "hi " . a:group . " guisp=#" . l:guisp
endif
endfunction
fun <sid>hi(group, guifg, guibg, ctermfg, ctermbg, attr, guisp)
call g:Base16hi(a:group, a:guifg, a:guibg, a:ctermfg, a:ctermbg, a:attr, a:guisp)
fun <sid>hi(group, ctermfg, ctermbg, attr, guisp)
call g:Base16hi(a:group, a:ctermfg, a:ctermbg, a:attr, a:guisp)
endfun
" Vim editor colors
call <sid>hi("Normal", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "")
call <sid>hi("Bold", "", "", "", "", "bold", "")
call <sid>hi("Debug", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Directory", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Error", s:gui00, s:gui08, s:cterm00, s:cterm08, "", "")
call <sid>hi("ErrorMsg", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "")
call <sid>hi("Exception", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("FoldColumn", s:gui0C, s:gui01, s:cterm0C, s:cterm01, "", "")
call <sid>hi("Folded", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "")
call <sid>hi("IncSearch", s:gui01, s:gui09, s:cterm01, s:cterm09, "none", "")
call <sid>hi("Italic", "", "", "", "", "none", "")
call <sid>hi("Macro", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("MatchParen", "", s:gui03, "", s:cterm03, "", "")
call <sid>hi("ModeMsg", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("MoreMsg", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("Question", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Search", s:gui01, s:gui0A, s:cterm01, s:cterm0A, "", "")
call <sid>hi("Substitute", s:gui01, s:gui0A, s:cterm01, s:cterm0A, "none", "")
call <sid>hi("SpecialKey", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("TooLong", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Underlined", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Visual", "", "", "", "", "", "reverse")
call <sid>hi("VisualNOS", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("WarningMsg", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("WildMenu", s:gui08, s:gui0A, s:cterm08, "", "", "")
call <sid>hi("Title", s:gui0D, "", s:cterm0D, "", "none", "")
call <sid>hi("Conceal", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "")
call <sid>hi("Cursor", s:gui00, s:gui05, s:cterm00, s:cterm05, "", "")
call <sid>hi("NonText", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("LineNr", "", "", s:cterm03, "", "", "")
call <sid>hi("SignColumn", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "")
call <sid>hi("StatusLine", s:gui04, s:gui02, s:cterm04, s:cterm02, "none", "")
call <sid>hi("StatusLineNC", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "")
call <sid>hi("VertSplit", "", "", "", "", "none", "")
call <sid>hi("ColorColumn", "", s:gui01, "", s:cterm01, "none", "")
call <sid>hi("CursorColumn", "", s:gui01, "", s:cterm01, "none", "")
call <sid>hi("CursorLine", "", s:gui01, "", s:cterm01, "none", "")
call <sid>hi("CursorLineNr", s:gui04, s:gui01, s:cterm04, s:cterm01, "", "")
call <sid>hi("QuickFixLine", "", s:gui01, "", s:cterm01, "none", "")
call <sid>hi("PMenu", s:gui05, s:gui01, s:cterm05, s:cterm01, "none", "")
call <sid>hi("PMenuSel", s:gui01, s:gui05, s:cterm01, s:cterm05, "", "")
call <sid>hi("TabLine", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "")
call <sid>hi("TabLineFill", s:gui03, s:gui01, s:cterm03, s:cterm01, "none", "")
call <sid>hi("TabLineSel", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "none", "")
call <sid>hi("Normal", s:cterm05, s:cterm00, "", "")
call <sid>hi("Bold", "", "", "bold", "")
call <sid>hi("Debug", s:cterm08, "", "", "")
call <sid>hi("Directory", s:cterm0D, "", "", "")
call <sid>hi("Error", s:cterm00, s:cterm08, "", "")
call <sid>hi("ErrorMsg", s:cterm08, s:cterm00, "", "")
call <sid>hi("Exception", s:cterm08, "", "", "")
call <sid>hi("FoldColumn", s:cterm0C, s:cterm01, "", "")
call <sid>hi("Folded", s:cterm03, s:cterm01, "", "")
call <sid>hi("IncSearch", s:cterm01, s:cterm09, "none", "")
call <sid>hi("Italic", "", "", "none", "")
call <sid>hi("Macro", s:cterm08, "", "", "")
call <sid>hi("MatchParen", "", s:cterm03, "", "")
call <sid>hi("ModeMsg", s:cterm0B, "", "", "")
call <sid>hi("MoreMsg", s:cterm0B, "", "", "")
call <sid>hi("Question", s:cterm0D, "", "", "")
call <sid>hi("Search", s:cterm01, s:cterm0A, "", "")
call <sid>hi("Substitute", s:cterm01, s:cterm0A, "none", "")
call <sid>hi("SpecialKey", s:cterm03, "", "", "")
call <sid>hi("TooLong", s:cterm08, "", "", "")
call <sid>hi("Underlined", s:cterm08, "", "", "")
call <sid>hi("Visual", "", "", "", "reverse")
call <sid>hi("VisualNOS", s:cterm08, "", "", "")
call <sid>hi("WarningMsg", s:cterm08, "", "", "")
call <sid>hi("WildMenu", s:cterm08, "", "", "")
call <sid>hi("Title", s:cterm0D, "", "none", "")
call <sid>hi("Conceal", s:cterm0D, s:cterm00, "", "")
call <sid>hi("Cursor", s:cterm00, s:cterm05, "", "")
call <sid>hi("NonText", s:cterm03, "", "", "")
call <sid>hi("LineNr", s:cterm03, "", "", "")
call <sid>hi("SignColumn", s:cterm03, s:cterm01, "", "")
call <sid>hi("StatusLine", s:cterm0D, s:cterm02, "none", "")
call <sid>hi("StatusLineNC", s:cterm03, s:cterm01, "none", "")
call <sid>hi("VertSplit", "", "", "none", "")
call <sid>hi("ColorColumn", "", s:cterm01, "none", "")
call <sid>hi("CursorColumn", "", s:cterm01, "none", "")
call <sid>hi("CursorLine", "", s:cterm01, "none", "")
call <sid>hi("CursorLineNr", s:cterm04, s:cterm01, "", "")
call <sid>hi("QuickFixLine", "", s:cterm01, "none", "")
call <sid>hi("PMenu", s:cterm05, s:cterm01, "none", "")
call <sid>hi("PMenuSel", s:cterm01, s:cterm05, "", "")
call <sid>hi("TabLine", s:cterm0D, s:cterm07, "none", "")
call <sid>hi("TabLineFill", s:cterm0D, s:cterm07, "none", "")
call <sid>hi("TabLineSel", s:cterm02, s:cterm07, "none", "")
" Standard syntax highlighting
call <sid>hi("Boolean", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Character", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("Comment", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("Conditional", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("Constant", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Define", s:gui0E, "", s:cterm0E, "", "none", "")
call <sid>hi("Delimiter", s:gui0F, "", s:cterm0F, "", "", "")
call <sid>hi("Float", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Function", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Identifier", s:gui08, "", s:cterm08, "", "none", "")
call <sid>hi("Include", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("Keyword", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("Label", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Number", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("Operator", s:gui05, "", s:cterm05, "", "none", "")
call <sid>hi("PreProc", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Repeat", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Special", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("SpecialChar", s:gui0F, "", s:cterm0F, "", "", "")
call <sid>hi("Statement", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("StorageClass", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("String", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("Structure", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("Tag", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Todo", s:gui0A, s:gui01, s:cterm0A, s:cterm01, "", "")
call <sid>hi("Type", s:gui0A, "", s:cterm0A, "", "none", "")
call <sid>hi("Typedef", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("Boolean", s:cterm09, "", "", "")
call <sid>hi("Character", s:cterm08, "", "", "")
call <sid>hi("Comment", s:cterm03, "", "", "")
call <sid>hi("Conditional", s:cterm0E, "", "", "")
call <sid>hi("Constant", s:cterm09, "", "", "")
call <sid>hi("Define", s:cterm0E, "", "none", "")
call <sid>hi("Delimiter", s:cterm0F, "", "", "")
call <sid>hi("Float", s:cterm09, "", "", "")
call <sid>hi("Function", s:cterm0D, "", "", "")
call <sid>hi("Identifier", s:cterm08, "", "none", "")
call <sid>hi("Include", s:cterm0D, "", "", "")
call <sid>hi("Keyword", s:cterm0E, "", "", "")
call <sid>hi("Label", s:cterm0A, "", "", "")
call <sid>hi("Number", s:cterm09, "", "", "")
call <sid>hi("Operator", s:cterm05, "", "none", "")
call <sid>hi("PreProc", s:cterm0A, "", "", "")
call <sid>hi("Repeat", s:cterm0A, "", "", "")
call <sid>hi("Special", s:cterm0C, "", "", "")
call <sid>hi("SpecialChar", s:cterm0F, "", "", "")
call <sid>hi("Statement", s:cterm08, "", "", "")
call <sid>hi("StorageClass", s:cterm0A, "", "", "")
call <sid>hi("String", s:cterm0B, "", "", "")
call <sid>hi("Structure", s:cterm0E, "", "", "")
call <sid>hi("Tag", s:cterm0A, "", "", "")
call <sid>hi("Todo", s:cterm0A, s:cterm01, "", "")
call <sid>hi("Type", s:cterm0A, "", "none", "")
call <sid>hi("Typedef", s:cterm0A, "", "", "")
" C highlighting
call <sid>hi("cOperator", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("cPreCondit", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("cOperator", s:cterm0C, "", "", "")
call <sid>hi("cPreCondit", s:cterm0E, "", "", "")
" C# highlighting
call <sid>hi("csClass", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("csAttribute", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("csModifier", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("csType", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("csUnspecifiedStatement", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("csContextualStatement", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("csNewDecleration", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("csClass", s:cterm0A, "", "", "")
call <sid>hi("csAttribute", s:cterm0A, "", "", "")
call <sid>hi("csModifier", s:cterm0E, "", "", "")
call <sid>hi("csType", s:cterm08, "", "", "")
call <sid>hi("csUnspecifiedStatement", s:cterm0D, "", "", "")
call <sid>hi("csContextualStatement", s:cterm0E, "", "", "")
call <sid>hi("csNewDecleration", s:cterm08, "", "", "")
" CSS highlighting
call <sid>hi("cssBraces", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("cssClassName", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("cssColor", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("cssBraces", s:cterm05, "", "", "")
call <sid>hi("cssClassName", s:cterm0E, "", "", "")
call <sid>hi("cssColor", s:cterm0C, "", "", "")
" Diff highlighting
call <sid>hi("DiffAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "")
call <sid>hi("DiffChange", s:gui03, s:gui01, s:cterm03, s:cterm01, "", "")
call <sid>hi("DiffDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "")
call <sid>hi("DiffText", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "")
call <sid>hi("DiffAdded", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "")
call <sid>hi("DiffFile", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "")
call <sid>hi("DiffNewFile", s:gui0B, s:gui00, s:cterm0B, s:cterm00, "", "")
call <sid>hi("DiffLine", s:gui0D, s:gui00, s:cterm0D, s:cterm00, "", "")
call <sid>hi("DiffRemoved", s:gui08, s:gui00, s:cterm08, s:cterm00, "", "")
call <sid>hi("DiffAdd", s:cterm0B, s:cterm01, "", "")
call <sid>hi("DiffChange", s:cterm03, s:cterm01, "", "")
call <sid>hi("DiffDelete", s:cterm08, s:cterm01, "", "")
call <sid>hi("DiffText", s:cterm0D, s:cterm01, "", "")
call <sid>hi("DiffAdded", s:cterm0B, s:cterm00, "", "")
call <sid>hi("DiffFile", s:cterm08, s:cterm00, "", "")
call <sid>hi("DiffNewFile", s:cterm0B, s:cterm00, "", "")
call <sid>hi("DiffLine", s:cterm0D, s:cterm00, "", "")
call <sid>hi("DiffRemoved", s:cterm08, s:cterm00, "", "")
" Git highlighting
call <sid>hi("gitcommitOverflow", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("gitcommitSummary", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("gitcommitComment", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("gitcommitUntracked", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("gitcommitDiscarded", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("gitcommitSelected", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("gitcommitHeader", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("gitcommitSelectedType", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("gitcommitUnmergedType", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("gitcommitDiscardedType", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("gitcommitBranch", s:gui09, "", s:cterm09, "", "bold", "")
call <sid>hi("gitcommitUntrackedFile", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("gitcommitUnmergedFile", s:gui08, "", s:cterm08, "", "bold", "")
call <sid>hi("gitcommitDiscardedFile", s:gui08, "", s:cterm08, "", "bold", "")
call <sid>hi("gitcommitSelectedFile", s:gui0B, "", s:cterm0B, "", "bold", "")
" GitGutter highlighting
call <sid>hi("GitGutterAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "")
call <sid>hi("GitGutterChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "")
call <sid>hi("GitGutterDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "")
call <sid>hi("GitGutterChangeDelete", s:gui0E, s:gui01, s:cterm0E, s:cterm01, "", "")
call <sid>hi("gitcommitOverflow", s:cterm08, "", "", "")
call <sid>hi("gitcommitSummary", s:cterm0B, "", "", "")
call <sid>hi("gitcommitComment", s:cterm03, "", "", "")
call <sid>hi("gitcommitUntracked", s:cterm03, "", "", "")
call <sid>hi("gitcommitDiscarded", s:cterm03, "", "", "")
call <sid>hi("gitcommitSelected", s:cterm03, "", "", "")
call <sid>hi("gitcommitHeader", s:cterm0E, "", "", "")
call <sid>hi("gitcommitSelectedType", s:cterm0D, "", "", "")
call <sid>hi("gitcommitUnmergedType", s:cterm0D, "", "", "")
call <sid>hi("gitcommitDiscardedType", s:cterm0D, "", "", "")
call <sid>hi("gitcommitBranch", s:cterm09, "", "bold", "")
call <sid>hi("gitcommitUntrackedFile", s:cterm0A, "", "", "")
call <sid>hi("gitcommitUnmergedFile", s:cterm08, "", "bold", "")
call <sid>hi("gitcommitDiscardedFile", s:cterm08, "", "bold", "")
call <sid>hi("gitcommitSelectedFile", s:cterm0B, "", "bold", "")
" HTML highlighting
call <sid>hi("htmlBold", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("htmlItalic", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("htmlEndTag", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("htmlTag", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("htmlBold", s:cterm0A, "", "", "")
call <sid>hi("htmlItalic", s:cterm0E, "", "", "")
call <sid>hi("htmlEndTag", s:cterm05, "", "", "")
call <sid>hi("htmlTag", s:cterm05, "", "", "")
" JavaScript highlighting
call <sid>hi("javaScript", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("javaScriptBraces", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("javaScriptNumber", s:gui09, "", s:cterm09, "", "", "")
" pangloss/vim-javascript highlighting
call <sid>hi("jsOperator", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("jsStatement", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("jsReturn", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("jsThis", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("jsClassDefinition", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("jsFunction", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("jsFuncName", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("jsFuncCall", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("jsClassFuncName", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("jsClassMethodType", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("jsRegexpString", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("jsGlobalObjects", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("jsGlobalNodeObjects", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("jsExceptions", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("jsBuiltins", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("javaScript", s:cterm05, "", "", "")
call <sid>hi("javaScriptBraces", s:cterm05, "", "", "")
call <sid>hi("javaScriptNumber", s:cterm09, "", "", "")
" Mail highlighting
call <sid>hi("mailQuoted1", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("mailQuoted2", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("mailQuoted3", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("mailQuoted4", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("mailQuoted5", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("mailQuoted6", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("mailURL", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("mailEmail", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("mailQuoted1", s:cterm0A, "", "", "")
call <sid>hi("mailQuoted2", s:cterm0B, "", "", "")
call <sid>hi("mailQuoted3", s:cterm0E, "", "", "")
call <sid>hi("mailQuoted4", s:cterm0C, "", "", "")
call <sid>hi("mailQuoted5", s:cterm0D, "", "", "")
call <sid>hi("mailQuoted6", s:cterm0A, "", "", "")
call <sid>hi("mailURL", s:cterm0D, "", "", "")
call <sid>hi("mailEmail", s:cterm0D, "", "", "")
" Markdown highlighting
call <sid>hi("markdownCode", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("markdownError", s:gui05, s:gui00, s:cterm05, s:cterm00, "", "")
call <sid>hi("markdownCodeBlock", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("markdownHeadingDelimiter", s:gui0D, "", s:cterm0D, "", "", "")
" NERDTree highlighting
call <sid>hi("NERDTreeDirSlash", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("NERDTreeExecFile", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("markdownCode", s:cterm0B, "", "", "")
call <sid>hi("markdownError", s:cterm05, s:cterm00, "", "")
call <sid>hi("markdownCodeBlock", s:cterm0B, "", "", "")
call <sid>hi("markdownHeadingDelimiter", s:cterm0D, "", "", "")
" PHP highlighting
call <sid>hi("phpMemberSelector", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("phpComparison", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("phpParent", s:gui05, "", s:cterm05, "", "", "")
call <sid>hi("phpMethodsVar", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("phpMemberSelector", s:cterm05, "", "", "")
call <sid>hi("phpComparison", s:cterm05, "", "", "")
call <sid>hi("phpParent", s:cterm05, "", "", "")
call <sid>hi("phpMethodsVar", s:cterm0C, "", "", "")
" Python highlighting
call <sid>hi("pythonOperator", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("pythonRepeat", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("pythonInclude", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("pythonStatement", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("pythonOperator", s:cterm0E, "", "", "")
call <sid>hi("pythonRepeat", s:cterm0E, "", "", "")
call <sid>hi("pythonInclude", s:cterm0E, "", "", "")
call <sid>hi("pythonStatement", s:cterm0E, "", "", "")
" Ruby highlighting
call <sid>hi("rubyAttribute", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("rubyConstant", s:gui0A, "", s:cterm0A, "", "", "")
call <sid>hi("rubyInterpolationDelimiter", s:gui0F, "", s:cterm0F, "", "", "")
call <sid>hi("rubyRegexp", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("rubySymbol", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("rubyStringDelimiter", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("rubyAttribute", s:cterm0D, "", "", "")
call <sid>hi("rubyConstant", s:cterm0A, "", "", "")
call <sid>hi("rubyInterpolationDelimiter", s:cterm0F, "", "", "")
call <sid>hi("rubyRegexp", s:cterm0C, "", "", "")
call <sid>hi("rubySymbol", s:cterm0B, "", "", "")
call <sid>hi("rubyStringDelimiter", s:cterm0B, "", "", "")
" SASS highlighting
call <sid>hi("sassidChar", s:gui08, "", s:cterm08, "", "", "")
call <sid>hi("sassClassChar", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("sassInclude", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("sassMixing", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("sassMixinName", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("sassidChar", s:cterm08, "", "", "")
call <sid>hi("sassClassChar", s:cterm09, "", "", "")
call <sid>hi("sassInclude", s:cterm0E, "", "", "")
call <sid>hi("sassMixing", s:cterm0E, "", "", "")
call <sid>hi("sassMixinName", s:cterm0D, "", "", "")
" Signify highlighting
call <sid>hi("SignifySignAdd", s:gui0B, s:gui01, s:cterm0B, s:cterm01, "", "")
call <sid>hi("SignifySignChange", s:gui0D, s:gui01, s:cterm0D, s:cterm01, "", "")
call <sid>hi("SignifySignDelete", s:gui08, s:gui01, s:cterm08, s:cterm01, "", "")
" Spelling highlighting
call <sid>hi("SpellBad", "", "", "", "", "undercurl", s:gui08)
call <sid>hi("SpellLocal", "", "", "", "", "undercurl", s:gui0C)
call <sid>hi("SpellCap", "", "", "", "", "undercurl", s:gui0D)
call <sid>hi("SpellRare", "", "", "", "", "undercurl", s:gui0E)
" Startify highlighting
call <sid>hi("StartifyBracket", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("StartifyFile", s:gui07, "", s:cterm07, "", "", "")
call <sid>hi("StartifyFooter", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("StartifyHeader", s:gui0B, "", s:cterm0B, "", "", "")
call <sid>hi("StartifyNumber", s:gui09, "", s:cterm09, "", "", "")
call <sid>hi("StartifyPath", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("StartifySection", s:gui0E, "", s:cterm0E, "", "", "")
call <sid>hi("StartifySelect", s:gui0C, "", s:cterm0C, "", "", "")
call <sid>hi("StartifySlash", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("StartifySpecial", s:gui03, "", s:cterm03, "", "", "")
call <sid>hi("SpellBad", "", s:cterm00, "underline", "")
call <sid>hi("SpellLocal", "", s:cterm00, "underline", "")
call <sid>hi("SpellCap", "", s:cterm00, "underline", "")
call <sid>hi("SpellRare", "", s:cterm00, "underline", "")
" Java highlighting
call <sid>hi("javaOperator", s:gui0D, "", s:cterm0D, "", "", "")
call <sid>hi("javaOperator", s:cterm0D, "", "", "")
" Remove functions
delf <sid>hi
" Remove color variables
unlet s:gui00 s:gui01 s:gui02 s:gui03 s:gui04 s:gui05 s:gui06 s:gui07 s:gui08 s:gui09 s:gui0A s:gui0B s:gui0C s:gui0D s:gui0E s:gui0F
unlet s:cterm00 s:cterm01 s:cterm02 s:cterm03 s:cterm04 s:cterm05 s:cterm06 s:cterm07 s:cterm08 s:cterm09 s:cterm0A s:cterm0B s:cterm0C s:cterm0D s:cterm0E s:cterm0F

View File

@ -4,7 +4,6 @@ local opts = { noremap=true, silent=true }
vim.g.mapleader = ' '
vim.g.fzf_action = { enter = 'tab split', ['ctrl-t'] = 'vsplit' }
-- Windows
map('n', '<C-h>', '<C-w>h')
map('n', '<C-j>', '<C-w>j')
map('n', '<C-k>', '<C-w>k')
@ -13,16 +12,13 @@ map('n', '<C-t>', '<C-w>r')
map('n', '<C-s>', '<C-w>T')
map('v', '.', ':normal .<CR>')
-- Tabs
map('n', 'K', ':tabprevious<CR>')
map('n', 'J', ':tabnext<CR>')
-- Buffs
map('n', '<C-o>', ':bprevious<CR>')
map('n', '<C-p>', ':bnext<CR>')
map('n', '<C-x>', ':bdelete<CR>')
-- Leader binds
map('', '<leader>c', ':w! | !compiler "<c-r>%"<CR>')
map('', '<leader>f', ':FZF<CR>')
map('', '<leader>p', ':!opout <c-r>%<CR><CR>')

View File

@ -4,7 +4,6 @@ au = vim.api.nvim_create_autocmd
bo = vim.bo
wo = vim.wo
-- global options
o.backup = false
o.clipboard = 'unnamedplus'
o.completeopt = 'menu', 'menuone', 'noselect'
@ -28,12 +27,10 @@ o.swapfile = false
o.tabstop = 4
o.undofile = true
-- local options
wo.wrap = false
-- fzf
g.fzf_layout = { down = '30%' }
g.is_posix = 1
-- autocmds
au({ 'BufWritePre' }, { pattern = { '*' }, command = [[%s/\n\+\%$//e]] })
au({ 'FileType' }, { pattern = { '*' }, command = [[setlocal formatoptions-=cro]] })

View File

@ -20,7 +20,6 @@ gs="cd $GOPATH/src && ls" \
shr="cd $XDG_DATA_HOME && ls" \
sc="cd ~/.local/bin && ls" \
ap="cd $XDG_DOCUMENTS_DIR/code/alps/aports && ls" \
ab="apkbuild-lint APKBUILD && abuild -r" \
cfn="$EDITOR $XDG_CONFIG_HOME/newsboat/config" \
cfa="$EDITOR $XDG_CONFIG_HOME/shell/aliases" \
cfz="$EDITOR $XDG_CONFIG_HOME/zsh/.zshrc" \

View File

@ -1,106 +1,3 @@
[Connection]
password =
username =
port = 9091
host = localhost
path = /transmission/rpc
ssl = False
[Sorting]
# Set startup torrent list sort order. Possible sort keys are:
# name, addedDate, percentDone, seeders, leechers, sizeWhenDone, status,
# uploadedEver, rateUpload, rateDownload, uploadRatio, peersConnected,
# downloadDir, mainTrackerDomain.
# Prepend ':' for reversed sort.
# Examples:
#
# order = :name
# Sorts by torrent name in reversed alphabetical order.
#
# order = sizeWhenDone
# Sorts by torrent size, small to large.
order = name
[Filtering]
# Set startup torrent list filter. Possible filter keys are:
# uploading, downloading, active, paused, seeding, incomplete, verifying,
# private, isolated, selected, honors.
# Use 'invert=True' to shoe only torrents not matching filter.
filter =
invert = False
[Misc]
lines_per_torrent = 3
torrentname_is_progressbar = True
file_viewer = xdg-open %%s
file_open_in_terminal = True
view_selected = False
rdns = True
geoip_database = /xyz
torrent_numbers = False
[Colors]
# Set colors of various interface elements.
# Each element has background and foreground color.
# Each color is default or one of the eight curses colors:
# Black, White, Red, Green, Blue, Cyan, Yellow, Magenta.
# Default is the default background or foreground color.
header = bg:white,fg:black
footer = bg:white,fg:black
title_seed = bg:green,fg:black
title_incomplete = bg:white,fg:black
title_download = bg:blue,fg:black
title_idle = bg:black,fg:cyan
title_verify = bg:black,fg:magenta
title_paused = bg:default,fg:black
title_error = bg:red,fg:default
download_rate = bg:black,fg:blue
upload_rate = bg:black,fg:red
eta+ratio = bg:black,fg:white
filter_status = bg:white,fg:black
multi_filter_status = bg:default,fg:blue
dialog = bg:black,fg:white
dialog_important = bg:black,fg:red
file_prio_high = bg:black,fg:red
file_prio_normal = bg:black,fg:default
file_prio_low = bg:black,fg:yellow
file_prio_off = bg:black,fg:blue
[Profiles]
# Define filter/sort profiles. See README.md for details.
# Examples:
#
# profile1 = regex#=ubuntu#=:uploadRatio
# A profile named '1' shows only torrents whose name contains ubuntu (case
# insensitive match), sorted by upload ratio from large to small.
# This profile can be selected from the profile menu or by pressing '1'.
#
# profile2 = incomplete#=#=percentDone
# A profile named '2' shows incomplete torrents sorted by progress.
#
# profileABC = regex#=ubuntu#=:incomplete#= #& # location#=/torrents#=peersConnected
# A profile named 'ABC' shows only torrents that satisfy one of the
# conditions:
# 1. Name contains ubuntu and complete;
# 2. Download location is /torrents.
# The torrent list is sorted by number of peers connected.
# This profile can be selected from the profile menu.
# Show all torrents, sort by name:
profile0 =
[ListKeys]
# Configure keys in torrent list only.
backslash = select_search_torrent_fulltext
gt = select_search_torrent_regex_fulltext
y = toggle_torrent_numbers
[DetailsKeys]
# Configure keys in torrent details only.
y = view_file
[CommonKeys]
# Configure keys globally.
Y = verify_torrent
v = move_torrent

View File

@ -13,26 +13,16 @@ set incsearch
set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
colorscheme eighties
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
map <C-o> <C-w>o
map <C-s> <C-w>s
map <C-v> <C-w>v
map R :restart<CR>
nnoremap o :file &<cr>
map E :!$EDITOR %f<CR>
map mkd :mkdir<space>
map X :!aunpack %f &<CR>
nnoremap s :shell<cr>
nnoremap w :view<cr>
vnoremap w :view<cr>gv
nnoremap yd :!echo %d | xclip %i<cr>
nnoremap yf :!echo %c:p | xclip %i<cr>
nnoremap yd :!echo %d | wl-copy %i<cr>
nnoremap yf :!echo %c:p | wl-copy %i<cr>
nnoremap I cw<c-a>
nnoremap cc cw<c-u>
nnoremap A cw
nnoremap ,w :set wrap!<cr>
nmap <space> tj

View File

@ -49,16 +49,8 @@ zle -N zle-line-init
echo -ne '\e[5 q' # Use beam shape cursor on startup.
preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
bindkey -s '^o' 'vifm\n'
bindkey -s '^a' 'bc -lq\n'
bindkey -s '^f' 'cd "$(dirname "$(fzf)")"\n'
bindkey -v '^r' 'history-incremental-search-backward'
bindkey '^[[P' delete-char
# Edit line in vim with ctrl-e:
autoload edit-command-line; zle -N edit-command-line
bindkey '^e' edit-command-line

View File

@ -1,14 +1,5 @@
#!/bin/sh
# This script will compile or run another finishing operation on a document. I
# have this script run via vim.
#
# Compiles .tex. groff (.mom, .ms), .rmd, .md, .org. Opens .sent files as sent
# presentations. Runs scripts based on extention or shebang.
#
# Note that .tex files which you wish to compile with XeLaTeX should have the
# string "xelatex" somewhere in a comment/command in the first 5 lines.
file=$(readlink -f "$1")
dir=${file%/*}
base="${file%.*}"

View File

@ -1,7 +1,6 @@
#!/bin/bash
# Constants
divider="---------"
goback="Back"
# Checks if bluetooth controller is powered on
@ -207,14 +206,14 @@ device_menu() {
fi
paired=$(device_paired "$mac")
trusted=$(device_trusted "$mac")
options="$connected\n$paired\n$trusted\n$divider\n$goback\nExit"
options="$connected\n$paired\n$trusted\n$goback\nExit"
# Open tofi, read chosen option
chosen="$(echo -e "$options" | run_tofi "$device_name")"
# Match chosen option to command
case $chosen in
"" | "$divider")
"")
echo "No option chosen."
;;
"$connected")
@ -248,7 +247,7 @@ show_menu() {
discoverable=$(discoverable_on)
# Options passed to tofi
options="$devices\n$divider\n$power\n$scan\n$pairable\n$discoverable\nExit"
options="$devices\n$power\n$scan\n$pairable\n$discoverable\nExit"
else
power="Power: off"
options="$power\nExit"
@ -259,7 +258,7 @@ show_menu() {
# Match chosen option to command
case $chosen in
"" | "$divider")
"")
echo "No option chosen."
;;
"$power")

View File

@ -1,5 +1,3 @@
#!/bin/sh
# A wmenu binary prompt script.
[ "$(printf "No\\nYes" | tofi --prompt-text "$1" )" = "Yes" ] && $2

View File

@ -1,6 +1,5 @@
#!/bin/sh
# $1 is a url; $2 is a command
[ -z "$1" ] && exit
base="$(basename "$1")"
notify-send "Queuing $base..."

View File

@ -1,8 +1,5 @@
#!/bin/sh
# Prints all batteries and their percentage remaining
# Loop through all attached batteries.
for battery in /sys/class/power_supply/BAT?
do
capacity=$(cat "$battery"/capacity 2>/dev/null) || break

View File

@ -1,8 +1,5 @@
#!/bin/sh
# This loop will update the mpd statusbar module whenever a command changes the
# music player's status. mpd must be running on X's start for this to work.
while : ; do
mpc idle >/dev/null && kill -46 "$(pidof someblocks)" || break
done