From: Andre Ramnitz Date: Sun, 10 Dec 2023 16:26:57 +0000 (+0100) Subject: qutebrowser: fix paths for GNU stow X-Git-Tag: v0.2~369 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=e90f182c4658cbe8877c788c94ac01a50f425eba;p=dotfiles.git qutebrowser: fix paths for GNU stow --- diff --git a/kak/.config/kak/colors/base16.kak b/kak/.config/kak/colors/base16.kak new file mode 100644 index 00000000..0ae479e0 --- /dev/null +++ b/kak/.config/kak/colors/base16.kak @@ -0,0 +1,76 @@ +## +## base16.kak by lenormf +## + +evaluate-commands %sh{ + black_lighterer='rgb:383838' + black_lighter='rgb:2D2D2D' + black_light='rgb:1C1C1C' + cyan_light='rgb:7CB0FF' + green_dark='rgb:A1B56C' + grey_dark='rgb:585858' + grey_medium='rgb:989898' + grey_light='rgb:D8D8D8' + magenta_dark='rgb:AB4642' + magenta_light='rgb:AB4434' + orange_dark='rgb:DC9656' + orange_light='rgb:F7CA88' + purple_dark='rgb:BA8BAF' + + ## code + echo " + face global value ${orange_dark}+b + face global type ${orange_light} + face global variable ${magenta_dark} + face global module ${green_dark} + face global function ${cyan_light} + face global string ${green_dark} + face global keyword ${purple_dark}+b + face global operator ${cyan_light} + face global attribute ${orange_dark} + face global comment ${grey_medium} + face global documentation comment + face global meta ${orange_light} + face global builtin default+b + " + + ## markup + echo " + face global title blue + face global header ${cyan_light} + face global mono ${green_dark} + face global block ${orange_dark} + face global link blue + face global bullet ${magenta_light} + face global list ${magenta_dark} + " + + ## builtin + echo " + face global Default ${grey_light},${black_light} + face global PrimarySelection white,blue+fg + face global SecondarySelection black,blue+fg + face global PrimaryCursor black,white+fg + face global SecondaryCursor black,white+fg + face global PrimaryCursorEol black,${cyan_light}+fg + face global SecondaryCursorEol black,${cyan_light}+fg + face global LineNumbers ${grey_light},${black_lighter} + face global LineNumberCursor ${grey_light},rgb:282828+b + face global MenuForeground ${grey_light},blue + face global MenuBackground blue,${grey_light} + face global MenuInfo ${cyan_light} + face global Information ${black_light},${cyan_light} + face global Error ${grey_light},${magenta_light} + face global DiagnosticError ${magenta_light} + face global DiagnosticWarning ${cyan_light} + face global StatusLine ${grey_light},${black_lighterer} + face global StatusLineMode ${orange_dark} + face global StatusLineInfo ${cyan_light} + face global StatusLineValue ${green_dark} + face global StatusCursor ${black_lighterer},${cyan_light} + face global Prompt ${black_light},${cyan_light} + face global MatchingChar ${cyan_light},${black_light}+b + face global BufferPadding ${cyan_light},${black_lighter} + face global Whitespace ${grey_dark}+f + " +} diff --git a/kak/.config/kak/kakrc b/kak/.config/kak/kakrc new file mode 100644 index 00000000..48318129 --- /dev/null +++ b/kak/.config/kak/kakrc @@ -0,0 +1,151 @@ +# System integration +hook global RegisterModified '"' %{ nop %sh{ + printf %s "$kak_main_reg_dquote" | xsel --input --clipboard +}} + +# Look and Feel +# ───────────── +add-highlighter global/trailing-whitespace regex '\h+$' 0:Error # trailing whitespaces in red +add-highlighter global/todos regex '(//|#|/\*)\h*(TODO|WARNING|FIXME)[:]?[^\n]*' 2:+bu # highlight comment tags +add-highlighter global/ show-matching # show matching brackets +add-highlighter global/ number-lines -min-digits 3 # absolute line nums everywhere +colorscheme default +set-option global tabstop 4 +set-option global indentwidth 4 +set-option global scrolloff 10,10 + +# Different Cursor color in insert mode +# ───────────────────────────────────── +# Shades of blue/cyan for normal mode +set-face global PrimarySelection white,blue+F +set-face global SecondarySelection black,blue+F +set-face global PrimaryCursor black,bright-cyan+F +set-face global SecondaryCursor black,bright-blue+F +set-face global PrimaryCursorEol black,bright-cyan +set-face global SecondaryCursorEol black,bright-blue + +# Shades of green/yellow for insert mode. +hook global ModeChange (push|pop):.*:insert %{ + set-face window PrimarySelection white,green+F + set-face window SecondarySelection black,green+F + set-face window PrimaryCursor black,bright-yellow+F + set-face window SecondaryCursor black,bright-green+F + set-face window PrimaryCursorEol black,bright-yellow + set-face window SecondaryCursorEol black,bright-green +} + +# Undo colour changes when we leave insert mode. +hook global ModeChange (push|pop):insert:.* %{ + unset-face window PrimarySelection + unset-face window SecondarySelection + unset-face window PrimaryCursor + unset-face window SecondaryCursor + unset-face window PrimaryCursorEol + unset-face window SecondaryCursorEol +} + +# Enable editor config +# ──────────────────── +hook global WinCreate ^[^*]+$ %{ editorconfig-load } + +# Extra editor commands +# ───────────────────── +# tab replacement +define-command clean-selections -docstring 'Replace tabs with spaces and trim trailing whitespace' %{ try %{ + execute-keys -draft @s\h+$d +} } +define-command clean-buffer -docstring 'Replace tabs with spaces and trim trailing whitespace' %{ try %{ + execute-keys -draft \%@s\h+$d +} } +# Bring back and from Vim to increment/decrement the number under the cursor +define-command -hidden -params 2 inc %{ try %{ + evaluate-commands %sh{ + [ "$1" = 0 ] && count=1 || count="$1" + printf '%s%s' 'exec h"_/\dna' "$2($count)|{catecho}|bc" + } +} catch %{ + execute-keys l +}} + +# File management +# ─────────────── +# nnn +declare-option str kak_open "%val{config}/kak_open" +define-command nnn -docstring "open nnn" -params .. %{ + terminal sh -c "NNN_OPENER=%opt{kak_open} KAK_SESSION=%val{session} KAK_CLIENT=%val{client} nnn %arg{@}" +} +complete-command nnn file +# broot +define-command broot -docstring "open broot" -params .. %{ + terminal sh -c "EDITOR=%opt{kak_open} KAK_SESSION=%val{session} KAK_CLIENT=%val{client} broot %arg{@}" +} +complete-command broot file +# fuzzy finders +define-command find -docstring "find files" -params 1 %{ edit %arg{1} } +complete-command find shell-script-candidates %{ find . -type f } +alias global f find + +# Various mappings +# ──────────────── +map global normal '#' :comment-line -docstring 'comment line' +map global normal '' :comment-block -docstring 'comment block' +map global goto m 'm;' -docstring 'matching char' +map -docstring 'select lines downwards' global normal X TLx +# see #inc +map global normal ': inc %val{count} +' +map global normal ': inc %val{count} -' + +# User modes +# # ────────── +map global user -docstring 'enable autocomplete' a ': set-option -add buffer autocomplete insert' +map global user -docstring 'disable autocomplete' A ': set-option -remove buffer autocomplete insert' +map global user -docstring 'edit kakrc' e ': e ~/.config/kak/kakrc' +map global user -docstring 'clean tabs and trailing whitespace in selections' c ': clean-selections' +map global user -docstring 'clean tabs and trailing whitespace in the buffer' C ': clean-buffer' +map global user -docstring 'next buffer' n ': buffer-next' +map global user -docstring 'previous buffer' p ': buffer-previous' +map global user -docstring 'comment-line' l ': comment-line' +map global user -docstring 'lint-buffer' L ': buffer *lint-output*' +map global user -docstring 'relative line numbers enable' r ': add-highlighter window/nl number-lines -relative -hlcursor' +map global user -docstring 'relative line numbers disable' R ': remove-highlighter window/nl' +map global user -docstring 'wrap enable' w ': add-highlighter buffer/bw wrap' +map global user -docstring 'wrap disable' W ': remove-highlighter buffer/bw' + +# Enable PLUGin manager +# ───────────────────── +source "%val{config}/plugins/plug.kak/rc/plug.kak" +plug "andreyorst/plug.kak" noload + + plug "andreyorst/powerline.kak" defer powerline_base16 %{ + powerline-theme base16 + } config %{ + powerline-start + } + + plug "Ersikan/bookmarks.kak" %{ + hook global WinCreate .* bookmarks-enable + } + + plug "andreyorst/smarttab.kak" defer smarttab %{ + # when 'backspace' is pressed, 4 spaces are deleted at once + set-option global softtabstop 4 + } config %{ + hook global WinSetOption filetype=(rust|markdown|kak|lisp|scheme|py|sh|perl) expandtab + hook global WinSetOption filetype=(makefile|gas) noexpandtab + hook global WinSetOption filetype=(c|cpp) smarttab + } + plug "whereswaldon/shellcheck.kak" + plug "kakounedotcom/prelude.kak" + plug "kakounedotcom/connect.kak" + plug "occivink/kakoune-sudo-write" + +# PLUGin ends + +# set up plugins +# ───────────────────── + +# for connect.kak +require-module prelude +require-module connect +require-module connect-dolphin + diff --git a/kak/.config/kak/plugins/.build/bookmarks.kak/config b/kak/.config/kak/plugins/.build/bookmarks.kak/config new file mode 100644 index 00000000..d88dc49d --- /dev/null +++ b/kak/.config/kak/plugins/.build/bookmarks.kak/config @@ -0,0 +1,19 @@ +try %{ + + hook global WinCreate .* bookmarks-enable + } catch %{ + echo -debug "Error while evaluating 'bookmarks.kak' configuration: %val{error}" + + set-option -add current plug_conf_errors "Error while evaluating 'bookmarks.kak' configuration:" + set-option -add current plug_conf_errors %sh{ printf "\n " } + set-option -add current plug_conf_errors %val{error} + set-option -add current plug_conf_errors %sh{ printf "\n\n" } + + hook -once -group plug-conf-err global WinDisplay .* %{ + info -style modal -title "plug.kak error" "%opt{plug_conf_errors}" + on-key %{ + info -style modal + execute-keys -with-maps -with-hooks %val{key} + } + } +} diff --git a/kak/.config/kak/plugins/.build/kakoune-smooth-scroll/config b/kak/.config/kak/plugins/.build/kakoune-smooth-scroll/config new file mode 100644 index 00000000..1f93d39b --- /dev/null +++ b/kak/.config/kak/plugins/.build/kakoune-smooth-scroll/config @@ -0,0 +1,30 @@ +try %{ + + # configuration here + # hook global WinCreate [^*].* %{ + # hook -once window WinDisplay .* %{ + # smooth-scroll-enable + # } + hook -group smooth-scroll window User ScrollBegin %{ + add-highlighter -override window/nl number-lines + } + hook -group smooth-scroll window User ScrollEnd %{ + add-highlighter -override window/nl number-lines -relative -hlcursor + } + } + } catch %{ + echo -debug "Error while evaluating 'kakoune-smooth-scroll' configuration: %val{error}" + + set-option -add current plug_conf_errors "Error while evaluating 'kakoune-smooth-scroll' configuration:" + set-option -add current plug_conf_errors %sh{ printf "\n " } + set-option -add current plug_conf_errors %val{error} + set-option -add current plug_conf_errors %sh{ printf "\n\n" } + + hook -once -group plug-conf-err global WinDisplay .* %{ + info -style modal -title "plug.kak error" "%opt{plug_conf_errors}" + on-key %{ + info -style modal + execute-keys -with-maps -with-hooks %val{key} + } + } +} diff --git a/kak/.config/kak/plugins/.build/powerline.kak/config b/kak/.config/kak/plugins/.build/powerline.kak/config new file mode 100644 index 00000000..9da9ddac --- /dev/null +++ b/kak/.config/kak/plugins/.build/powerline.kak/config @@ -0,0 +1,19 @@ +try %{ + + powerline-start + } catch %{ + echo -debug "Error while evaluating 'powerline.kak' configuration: %val{error}" + + set-option -add current plug_conf_errors "Error while evaluating 'powerline.kak' configuration:" + set-option -add current plug_conf_errors %sh{ printf "\n " } + set-option -add current plug_conf_errors %val{error} + set-option -add current plug_conf_errors %sh{ printf "\n\n" } + + hook -once -group plug-conf-err global WinDisplay .* %{ + info -style modal -title "plug.kak error" "%opt{plug_conf_errors}" + on-key %{ + info -style modal + execute-keys -with-maps -with-hooks %val{key} + } + } +} diff --git a/kak/.config/kak/plugins/.build/smarttab.kak/config b/kak/.config/kak/plugins/.build/smarttab.kak/config new file mode 100644 index 00000000..c43b50f2 --- /dev/null +++ b/kak/.config/kak/plugins/.build/smarttab.kak/config @@ -0,0 +1,21 @@ +try %{ + + hook global WinSetOption filetype=(rust|markdown|kak|lisp|scheme|py|sh|perl) expandtab + hook global WinSetOption filetype=(makefile|gas) noexpandtab + hook global WinSetOption filetype=(c|cpp) smarttab + } catch %{ + echo -debug "Error while evaluating 'smarttab.kak' configuration: %val{error}" + + set-option -add current plug_conf_errors "Error while evaluating 'smarttab.kak' configuration:" + set-option -add current plug_conf_errors %sh{ printf "\n " } + set-option -add current plug_conf_errors %val{error} + set-option -add current plug_conf_errors %sh{ printf "\n\n" } + + hook -once -group plug-conf-err global WinDisplay .* %{ + info -style modal -title "plug.kak error" "%opt{plug_conf_errors}" + on-key %{ + info -style modal + execute-keys -with-maps -with-hooks %val{key} + } + } +} diff --git a/kak/colors/base16.kak b/kak/colors/base16.kak deleted file mode 100644 index 0ae479e0..00000000 --- a/kak/colors/base16.kak +++ /dev/null @@ -1,76 +0,0 @@ -## -## base16.kak by lenormf -## - -evaluate-commands %sh{ - black_lighterer='rgb:383838' - black_lighter='rgb:2D2D2D' - black_light='rgb:1C1C1C' - cyan_light='rgb:7CB0FF' - green_dark='rgb:A1B56C' - grey_dark='rgb:585858' - grey_medium='rgb:989898' - grey_light='rgb:D8D8D8' - magenta_dark='rgb:AB4642' - magenta_light='rgb:AB4434' - orange_dark='rgb:DC9656' - orange_light='rgb:F7CA88' - purple_dark='rgb:BA8BAF' - - ## code - echo " - face global value ${orange_dark}+b - face global type ${orange_light} - face global variable ${magenta_dark} - face global module ${green_dark} - face global function ${cyan_light} - face global string ${green_dark} - face global keyword ${purple_dark}+b - face global operator ${cyan_light} - face global attribute ${orange_dark} - face global comment ${grey_medium} - face global documentation comment - face global meta ${orange_light} - face global builtin default+b - " - - ## markup - echo " - face global title blue - face global header ${cyan_light} - face global mono ${green_dark} - face global block ${orange_dark} - face global link blue - face global bullet ${magenta_light} - face global list ${magenta_dark} - " - - ## builtin - echo " - face global Default ${grey_light},${black_light} - face global PrimarySelection white,blue+fg - face global SecondarySelection black,blue+fg - face global PrimaryCursor black,white+fg - face global SecondaryCursor black,white+fg - face global PrimaryCursorEol black,${cyan_light}+fg - face global SecondaryCursorEol black,${cyan_light}+fg - face global LineNumbers ${grey_light},${black_lighter} - face global LineNumberCursor ${grey_light},rgb:282828+b - face global MenuForeground ${grey_light},blue - face global MenuBackground blue,${grey_light} - face global MenuInfo ${cyan_light} - face global Information ${black_light},${cyan_light} - face global Error ${grey_light},${magenta_light} - face global DiagnosticError ${magenta_light} - face global DiagnosticWarning ${cyan_light} - face global StatusLine ${grey_light},${black_lighterer} - face global StatusLineMode ${orange_dark} - face global StatusLineInfo ${cyan_light} - face global StatusLineValue ${green_dark} - face global StatusCursor ${black_lighterer},${cyan_light} - face global Prompt ${black_light},${cyan_light} - face global MatchingChar ${cyan_light},${black_light}+b - face global BufferPadding ${cyan_light},${black_lighter} - face global Whitespace ${grey_dark}+f - " -} diff --git a/kak/kakrc b/kak/kakrc deleted file mode 100644 index 48318129..00000000 --- a/kak/kakrc +++ /dev/null @@ -1,151 +0,0 @@ -# System integration -hook global RegisterModified '"' %{ nop %sh{ - printf %s "$kak_main_reg_dquote" | xsel --input --clipboard -}} - -# Look and Feel -# ───────────── -add-highlighter global/trailing-whitespace regex '\h+$' 0:Error # trailing whitespaces in red -add-highlighter global/todos regex '(//|#|/\*)\h*(TODO|WARNING|FIXME)[:]?[^\n]*' 2:+bu # highlight comment tags -add-highlighter global/ show-matching # show matching brackets -add-highlighter global/ number-lines -min-digits 3 # absolute line nums everywhere -colorscheme default -set-option global tabstop 4 -set-option global indentwidth 4 -set-option global scrolloff 10,10 - -# Different Cursor color in insert mode -# ───────────────────────────────────── -# Shades of blue/cyan for normal mode -set-face global PrimarySelection white,blue+F -set-face global SecondarySelection black,blue+F -set-face global PrimaryCursor black,bright-cyan+F -set-face global SecondaryCursor black,bright-blue+F -set-face global PrimaryCursorEol black,bright-cyan -set-face global SecondaryCursorEol black,bright-blue - -# Shades of green/yellow for insert mode. -hook global ModeChange (push|pop):.*:insert %{ - set-face window PrimarySelection white,green+F - set-face window SecondarySelection black,green+F - set-face window PrimaryCursor black,bright-yellow+F - set-face window SecondaryCursor black,bright-green+F - set-face window PrimaryCursorEol black,bright-yellow - set-face window SecondaryCursorEol black,bright-green -} - -# Undo colour changes when we leave insert mode. -hook global ModeChange (push|pop):insert:.* %{ - unset-face window PrimarySelection - unset-face window SecondarySelection - unset-face window PrimaryCursor - unset-face window SecondaryCursor - unset-face window PrimaryCursorEol - unset-face window SecondaryCursorEol -} - -# Enable editor config -# ──────────────────── -hook global WinCreate ^[^*]+$ %{ editorconfig-load } - -# Extra editor commands -# ───────────────────── -# tab replacement -define-command clean-selections -docstring 'Replace tabs with spaces and trim trailing whitespace' %{ try %{ - execute-keys -draft @s\h+$d -} } -define-command clean-buffer -docstring 'Replace tabs with spaces and trim trailing whitespace' %{ try %{ - execute-keys -draft \%@s\h+$d -} } -# Bring back and from Vim to increment/decrement the number under the cursor -define-command -hidden -params 2 inc %{ try %{ - evaluate-commands %sh{ - [ "$1" = 0 ] && count=1 || count="$1" - printf '%s%s' 'exec h"_/\dna' "$2($count)|{catecho}|bc" - } -} catch %{ - execute-keys l -}} - -# File management -# ─────────────── -# nnn -declare-option str kak_open "%val{config}/kak_open" -define-command nnn -docstring "open nnn" -params .. %{ - terminal sh -c "NNN_OPENER=%opt{kak_open} KAK_SESSION=%val{session} KAK_CLIENT=%val{client} nnn %arg{@}" -} -complete-command nnn file -# broot -define-command broot -docstring "open broot" -params .. %{ - terminal sh -c "EDITOR=%opt{kak_open} KAK_SESSION=%val{session} KAK_CLIENT=%val{client} broot %arg{@}" -} -complete-command broot file -# fuzzy finders -define-command find -docstring "find files" -params 1 %{ edit %arg{1} } -complete-command find shell-script-candidates %{ find . -type f } -alias global f find - -# Various mappings -# ──────────────── -map global normal '#' :comment-line -docstring 'comment line' -map global normal '' :comment-block -docstring 'comment block' -map global goto m 'm;' -docstring 'matching char' -map -docstring 'select lines downwards' global normal X TLx -# see #inc -map global normal ': inc %val{count} +' -map global normal ': inc %val{count} -' - -# User modes -# # ────────── -map global user -docstring 'enable autocomplete' a ': set-option -add buffer autocomplete insert' -map global user -docstring 'disable autocomplete' A ': set-option -remove buffer autocomplete insert' -map global user -docstring 'edit kakrc' e ': e ~/.config/kak/kakrc' -map global user -docstring 'clean tabs and trailing whitespace in selections' c ': clean-selections' -map global user -docstring 'clean tabs and trailing whitespace in the buffer' C ': clean-buffer' -map global user -docstring 'next buffer' n ': buffer-next' -map global user -docstring 'previous buffer' p ': buffer-previous' -map global user -docstring 'comment-line' l ': comment-line' -map global user -docstring 'lint-buffer' L ': buffer *lint-output*' -map global user -docstring 'relative line numbers enable' r ': add-highlighter window/nl number-lines -relative -hlcursor' -map global user -docstring 'relative line numbers disable' R ': remove-highlighter window/nl' -map global user -docstring 'wrap enable' w ': add-highlighter buffer/bw wrap' -map global user -docstring 'wrap disable' W ': remove-highlighter buffer/bw' - -# Enable PLUGin manager -# ───────────────────── -source "%val{config}/plugins/plug.kak/rc/plug.kak" -plug "andreyorst/plug.kak" noload - - plug "andreyorst/powerline.kak" defer powerline_base16 %{ - powerline-theme base16 - } config %{ - powerline-start - } - - plug "Ersikan/bookmarks.kak" %{ - hook global WinCreate .* bookmarks-enable - } - - plug "andreyorst/smarttab.kak" defer smarttab %{ - # when 'backspace' is pressed, 4 spaces are deleted at once - set-option global softtabstop 4 - } config %{ - hook global WinSetOption filetype=(rust|markdown|kak|lisp|scheme|py|sh|perl) expandtab - hook global WinSetOption filetype=(makefile|gas) noexpandtab - hook global WinSetOption filetype=(c|cpp) smarttab - } - plug "whereswaldon/shellcheck.kak" - plug "kakounedotcom/prelude.kak" - plug "kakounedotcom/connect.kak" - plug "occivink/kakoune-sudo-write" - -# PLUGin ends - -# set up plugins -# ───────────────────── - -# for connect.kak -require-module prelude -require-module connect -require-module connect-dolphin - diff --git a/kak/plugins/.build/bookmarks.kak/config b/kak/plugins/.build/bookmarks.kak/config deleted file mode 100644 index d88dc49d..00000000 --- a/kak/plugins/.build/bookmarks.kak/config +++ /dev/null @@ -1,19 +0,0 @@ -try %{ - - hook global WinCreate .* bookmarks-enable - } catch %{ - echo -debug "Error while evaluating 'bookmarks.kak' configuration: %val{error}" - - set-option -add current plug_conf_errors "Error while evaluating 'bookmarks.kak' configuration:" - set-option -add current plug_conf_errors %sh{ printf "\n " } - set-option -add current plug_conf_errors %val{error} - set-option -add current plug_conf_errors %sh{ printf "\n\n" } - - hook -once -group plug-conf-err global WinDisplay .* %{ - info -style modal -title "plug.kak error" "%opt{plug_conf_errors}" - on-key %{ - info -style modal - execute-keys -with-maps -with-hooks %val{key} - } - } -} diff --git a/kak/plugins/.build/kakoune-smooth-scroll/config b/kak/plugins/.build/kakoune-smooth-scroll/config deleted file mode 100644 index 1f93d39b..00000000 --- a/kak/plugins/.build/kakoune-smooth-scroll/config +++ /dev/null @@ -1,30 +0,0 @@ -try %{ - - # configuration here - # hook global WinCreate [^*].* %{ - # hook -once window WinDisplay .* %{ - # smooth-scroll-enable - # } - hook -group smooth-scroll window User ScrollBegin %{ - add-highlighter -override window/nl number-lines - } - hook -group smooth-scroll window User ScrollEnd %{ - add-highlighter -override window/nl number-lines -relative -hlcursor - } - } - } catch %{ - echo -debug "Error while evaluating 'kakoune-smooth-scroll' configuration: %val{error}" - - set-option -add current plug_conf_errors "Error while evaluating 'kakoune-smooth-scroll' configuration:" - set-option -add current plug_conf_errors %sh{ printf "\n " } - set-option -add current plug_conf_errors %val{error} - set-option -add current plug_conf_errors %sh{ printf "\n\n" } - - hook -once -group plug-conf-err global WinDisplay .* %{ - info -style modal -title "plug.kak error" "%opt{plug_conf_errors}" - on-key %{ - info -style modal - execute-keys -with-maps -with-hooks %val{key} - } - } -} diff --git a/kak/plugins/.build/powerline.kak/config b/kak/plugins/.build/powerline.kak/config deleted file mode 100644 index 9da9ddac..00000000 --- a/kak/plugins/.build/powerline.kak/config +++ /dev/null @@ -1,19 +0,0 @@ -try %{ - - powerline-start - } catch %{ - echo -debug "Error while evaluating 'powerline.kak' configuration: %val{error}" - - set-option -add current plug_conf_errors "Error while evaluating 'powerline.kak' configuration:" - set-option -add current plug_conf_errors %sh{ printf "\n " } - set-option -add current plug_conf_errors %val{error} - set-option -add current plug_conf_errors %sh{ printf "\n\n" } - - hook -once -group plug-conf-err global WinDisplay .* %{ - info -style modal -title "plug.kak error" "%opt{plug_conf_errors}" - on-key %{ - info -style modal - execute-keys -with-maps -with-hooks %val{key} - } - } -} diff --git a/kak/plugins/.build/smarttab.kak/config b/kak/plugins/.build/smarttab.kak/config deleted file mode 100644 index c43b50f2..00000000 --- a/kak/plugins/.build/smarttab.kak/config +++ /dev/null @@ -1,21 +0,0 @@ -try %{ - - hook global WinSetOption filetype=(rust|markdown|kak|lisp|scheme|py|sh|perl) expandtab - hook global WinSetOption filetype=(makefile|gas) noexpandtab - hook global WinSetOption filetype=(c|cpp) smarttab - } catch %{ - echo -debug "Error while evaluating 'smarttab.kak' configuration: %val{error}" - - set-option -add current plug_conf_errors "Error while evaluating 'smarttab.kak' configuration:" - set-option -add current plug_conf_errors %sh{ printf "\n " } - set-option -add current plug_conf_errors %val{error} - set-option -add current plug_conf_errors %sh{ printf "\n\n" } - - hook -once -group plug-conf-err global WinDisplay .* %{ - info -style modal -title "plug.kak error" "%opt{plug_conf_errors}" - on-key %{ - info -style modal - execute-keys -with-maps -with-hooks %val{key} - } - } -} diff --git a/qutebrowser/.config/qutebrowser/autoconfig.yml b/qutebrowser/.config/qutebrowser/autoconfig.yml new file mode 100644 index 00000000..63e3d296 --- /dev/null +++ b/qutebrowser/.config/qutebrowser/autoconfig.yml @@ -0,0 +1,298 @@ +# If a config.py file exists, this file is ignored unless it's explicitly loaded +# via config.load_autoconfig(). For more information, see: +# https://github.com/qutebrowser/qutebrowser/blob/main/doc/help/configuring.asciidoc#loading-autoconfigyml +# DO NOT edit this file by hand, qutebrowser will overwrite it. +# Instead, create a config.py - see :help for details. + +config_version: 2 +settings: + backend: + global: webengine + bindings.commands: + global: + insert: + : spawn --userscript qute-keepassxc --key 285D16B66B11BD45BFD57B6CB22C3113D0E83104 + normal: + '''gh''': '''open duckduckgo.com''' + +: null + ',M': hint links spawn vlc {hint-url} + ',m': spawn vlc {url} + '-': null + : home + : zoom-in + : zoom-out + : back + : forward + : scroll-page +3 + Ctrl-+: zoom-in + Ctrl--: zoom-out + E: edit-url + d: null + dd: tab-close + dlA: spawn -u yt-dlp-video {url} + dlV: spawn -u yt-dlp-video {url} + dla: hint links userscript yt-dlp-audio + dlv: hint links userscript yt-dlp-video + eu: edit-url + ga: null + ge: scroll-to-perc 100 + gg: scroll-to-perc 0 + gh: open duckduckgo.com + pw: spawn --userscript qute-keepassxc --key 285D16B66B11BD45BFD57B6CB22C3113D0E83104 + tG: home + tda: tab-only + tg1: tab-give 1 + tg2: tab-give 2 + tg3: tab-give 3 + tgg: tab-give 0 + tp: tab-pin + ttb: set tabs.position bottom + ttl: set tabs.position left + ttr: set tabs.position right + ttt: set tabs.position top + tw1: set tabs.width 48 + tw2: set tabs.width 96 + tw3: set tabs.width 160 + tw4: set tabs.width 240 + tw5: set tabs.width 320 + tw6: set tabs.width 480 + changelog_after_upgrade: + global: patch + colors.statusbar.private.bg: + global: '#2a2e32' + colors.statusbar.private.fg: + global: '#9b59b6' + colors.tabs.indicator.system: + global: rgb + colors.tabs.pinned.selected.odd.fg: + global: '#232629' + colors.webpage.bg: + global: white + colors.webpage.darkmode.enabled: + global: false + completion.open_categories: + global: + - searchengines + - quickmarks + - bookmarks + - history + - filesystem + completion.scrollbar.width: + global: 16 + confirm_quit: + global: + - never + content.autoplay: + global: false + content.blocking.adblock.lists: + global: + - https://easylist.to/easylist/easylist.txt + - https://easylist.to/easylist/easyprivacy.txt + content.blocking.enabled: + global: true + content.blocking.hosts.block_subdomains: + global: true + content.blocking.whitelist: + global: + - piwik.org + - linuxnews.de + content.cache.size: + global: 0 + content.canvas_reading: + global: true + content.default_encoding: + global: _utf-8_,iso-8859-1 + content.dns_prefetch: + global: false + content.geolocation: + https://www.clubderdampfer.de: false + https://www.r-m.de: false + content.headers.accept_language: + global: en-US,en;q=0.9 + content.headers.do_not_track: + global: false + content.javascript.clipboard: + wago.io: access + wowhead.com: access + content.javascript.enabled: + global: true + content.javascript.log_message.excludes: + global: + userscript:_qute_stylesheet: + - '*Refused to apply inline style because it violates the following Content + Security Policy directive: *' + content.notifications.enabled: + global: ask + content.notifications.presenter: + global: auto + content.pdfjs: + global: false + content.plugins: + global: true + content.register_protocol_handler: + https://mail.google.com?extsrc=mailto&url=%25s: true + content.webgl: + global: true + content.xss_auditing: + global: false + downloads.location.directory: + global: null + downloads.location.prompt: + global: false + downloads.location.remember: + global: true + downloads.location.suggestion: + global: both + downloads.prevent_mixed_content: + global: true + editor.command: + global: + - konsole + - --separate + - -e + - kak + - '{file}' + fileselect.folder.command: + global: + - kitty + - nnn + - -p + - '-' + fileselect.handler: + global: external + fileselect.multiple_files.command: + global: + - kitty + - nnn + - -p + - '-' + fileselect.single_file.command: + global: + - kitty + - nnn + - -p + - '-' + fonts.completion.category: + global: bold 12pt LiterationMono Nerd Font + fonts.completion.entry: + global: 12pt LiterationMono Nerd Font + fonts.contextmenu: + global: 12pt LiterationMono Nerd Font + fonts.debug_console: + global: default_size default_family + fonts.default_family: + global: 12pt LiterationMono Nerd Font + fonts.default_size: + global: 12pt + fonts.downloads: + global: 12pt LiterationMono Nerd Font + fonts.hints: + global: bold 12pt LiterationMono Nerd Font + fonts.keyhint: + global: 12pt LiterationMono Nerd Font + fonts.messages.error: + global: 12pt LiterationMono Nerd Font + fonts.messages.info: + global: 12pt LiterationMono Nerd Font + fonts.messages.warning: + global: 12pt LiterationMono Nerd Font + fonts.prompts: + global: 12pt LiterationMono Nerd Font + fonts.statusbar: + global: 12pt LiterationMono Nerd Font + fonts.tabs.selected: + global: 12pt LiterationMono Nerd Font + fonts.tabs.unselected: + global: 12pt LiterationMono Nerd Font + fonts.tooltip: + global: 12pt LiterationMono Nerd Font + fonts.web.family.cursive: + global: Noto Sans Old Italic + fonts.web.family.fantasy: + global: FantasqueSansM Nerd Font + fonts.web.family.fixed: + global: LiterationMono Nerd Font + fonts.web.family.sans_serif: + global: Noto Sans + fonts.web.family.serif: + global: Noto Serif + fonts.web.family.standard: + global: Noto Sans + fonts.web.size.default: + global: 15 + fonts.web.size.default_fixed: + global: 15 + fonts.web.size.minimum: + global: 6 + fonts.web.size.minimum_logical: + global: 7 + hints.min_chars: + global: 2 + hints.scatter: + global: true + input.insert_mode.auto_enter: + global: true + input.insert_mode.auto_load: + global: false + input.insert_mode.leave_on_load: + global: true + input.mode_override: + global: normal + qt.chromium.process_model: + global: process-per-site + qt.force_platform: + global: null + qt.force_platformtheme: + global: qt6ct + qt.force_software_rendering: + global: chromium + qt.highdpi: + global: false + scrolling.bar: + global: overlay + scrolling.smooth: + global: true + session.lazy_restore: + global: true + statusbar.show: + global: always + tabs.favicons.scale: + global: 1.0 + tabs.indicator.padding: + global: + bottom: 1 + left: 0 + right: 6 + top: 1 + tabs.indicator.width: + global: 10 + tabs.min_width: + global: -1 + tabs.padding: + global: + bottom: 4 + left: 5 + right: 5 + top: 4 + tabs.pinned.shrink: + global: true + tabs.position: + global: left + tabs.title.alignment: + global: left + tabs.title.elide: + global: right + tabs.title.format: + global: '{audio}{index}: {current_title}' + tabs.title.format_pinned: + global: '{audio}{index}: ** {current_title}' + tabs.undo_stack_size: + global: 50 + tabs.width: + global: 240 + window.hide_decoration: + global: false + zoom.default: + global: 110% + zoom.mouse_divider: + global: 1024 diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py new file mode 100644 index 00000000..22c00600 --- /dev/null +++ b/qutebrowser/.config/qutebrowser/config.py @@ -0,0 +1,1284 @@ +# Autogenerated config.py +# +# NOTE: config.py is intended for advanced users who are comfortable +# with manually migrating the config file on qutebrowser upgrades. If +# you prefer, you can also configure qutebrowser using the +# :set/:bind/:config-* commands without having to write a config.py +# file. +# +# Documentation: +# qute://help/configuring.html +# qute://help/settings.html + +# Change the argument to True to still load settings configured via autoconfig.yml +config.load_autoconfig(False) + +# Require a confirmation before quitting the application. +# Type: ConfirmQuit +# Valid values: +# - always: Always show a confirmation. +# - multiple-tabs: Show a confirmation if multiple tabs are opened. +# - downloads: Show a confirmation if downloads are running +# - never: Never show a confirmation. +c.confirm_quit = ['never'] + +# When to show a changelog after qutebrowser was upgraded. +# Type: String +# Valid values: +# - major: Show changelog for major upgrades (e.g. v2.0.0 -> v3.0.0). +# - minor: Show changelog for major and minor upgrades (e.g. v2.0.0 -> v2.1.0). +# - patch: Show changelog for major, minor and patch upgrades (e.g. v2.0.0 -> v2.0.1). +# - never: Never show changelog after upgrades. +c.changelog_after_upgrade = 'patch' + +# How to open links in an existing instance if a new one is launched. +# This happens when e.g. opening a link from a terminal. See +# `new_instance_open_target_window` to customize in which window the +# link is opened in. +# Type: String +# Valid values: +# - tab: Open a new tab in the existing window and activate the window. +# - tab-bg: Open a new background tab in the existing window and activate the window. +# - tab-silent: Open a new tab in the existing window without activating the window. +# - tab-bg-silent: Open a new background tab in the existing window without activating the window. +# - window: Open in a new window. +# - private-window: Open in a new private window. +c.new_instance_open_target = 'tab-bg' + +# Load a restored tab as soon as it takes focus. +# Type: Bool +c.session.lazy_restore = True + +# Backend to use to display websites. qutebrowser supports two different +# web rendering engines / backends, QtWebEngine and QtWebKit (not +# recommended). QtWebEngine is Qt's official successor to QtWebKit, and +# both the default/recommended backend. It's based on a stripped-down +# Chromium and regularly updated with security fixes and new features by +# the Qt project: https://wiki.qt.io/QtWebEngine QtWebKit was +# qutebrowser's original backend when the project was started. However, +# support for QtWebKit was discontinued by the Qt project with Qt 5.6 in +# 2016. The development of QtWebKit was picked up in an official fork: +# https://github.com/qtwebkit/qtwebkit - however, the project seems to +# have stalled again. The latest release (5.212.0 Alpha 4) from March +# 2020 is based on a WebKit version from 2016, with many known security +# vulnerabilities. Additionally, there is no process isolation and +# sandboxing. Due to all those issues, while support for QtWebKit is +# still available in qutebrowser for now, using it is strongly +# discouraged. +# Type: String +# Valid values: +# - webengine: Use QtWebEngine (based on Chromium - recommended). +# - webkit: Use QtWebKit (based on WebKit, similar to Safari - many known security issues!). +c.backend = 'webengine' + +# Force software rendering for QtWebEngine. This is needed for +# QtWebEngine to work with Nouveau drivers and can be useful in other +# scenarios related to graphic issues. +# Type: String +# Valid values: +# - software-opengl: Tell LibGL to use a software implementation of GL (`LIBGL_ALWAYS_SOFTWARE` / `QT_XCB_FORCE_SOFTWARE_OPENGL`) +# - qt-quick: Tell Qt Quick to use a software renderer instead of OpenGL. (`QT_QUICK_BACKEND=software`) +# - chromium: Tell Chromium to disable GPU support and use Skia software rendering instead. (`--disable-gpu`) +# - none: Don't force software rendering. +c.qt.force_software_rendering = 'chromium' + +# Force a Qt platform to use. This sets the `QT_QPA_PLATFORM` +# environment variable and is useful to force using the XCB plugin when +# running QtWebEngine on Wayland. +# Type: String +c.qt.force_platform = None + +# Force a Qt platformtheme to use. This sets the `QT_QPA_PLATFORMTHEME` +# environment variable which controls dialogs like the filepicker. By +# default, Qt determines the platform theme based on the desktop +# environment. +# Type: String +c.qt.force_platformtheme = 'qt6ct' + +# Which Chromium process model to use. Alternative process models use +# less resources, but decrease security and robustness. See the +# following pages for more details: - +# https://www.chromium.org/developers/design-documents/process-models +# - https://doc.qt.io/qt-6/qtwebengine-features.html#process-models +# Type: String +# Valid values: +# - process-per-site-instance: Pages from separate sites are put into separate processes and separate visits to the same site are also isolated. +# - process-per-site: Pages from separate sites are put into separate processes. Unlike Process per Site Instance, all visits to the same site will share an OS process. The benefit of this model is reduced memory consumption, because more web pages will share processes. The drawbacks include reduced security, robustness, and responsiveness. +# - single-process: Run all tabs in a single process. This should be used for debugging purposes only, and it disables `:open --private`. +c.qt.chromium.process_model = 'process-per-site' + +# Turn on Qt HighDPI scaling. This is equivalent to setting +# QT_ENABLE_HIGHDPI_SCALING=1 (Qt >= 5.14) in the environment. It's off +# by default as it can cause issues with some bitmap fonts. As an +# alternative to this, it's possible to set font sizes and the +# `zoom.default` setting. +# Type: Bool +c.qt.highdpi = False + +# Always restore open sites when qutebrowser is reopened. Without this +# option set, `:wq` (`:quit --save`) needs to be used to save open tabs +# (and restore them), while quitting qutebrowser in any other way will +# not save/restore the session. By default, this will save to the +# session which was last loaded. This behavior can be customized via the +# `session.default_name` setting. +# Type: Bool +c.auto_save.session = True + +# Automatically start playing `