Compare commits
2
Commits
wip
..
a7ea3141a6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7ea3141a6 | ||
|
|
88f096e972 |
No files matched your search
@@ -1,34 +0,0 @@
|
|||||||
# gotmpl
|
|
||||||
[grammar.gotmpl.source.git]
|
|
||||||
url = "https://github.com/ngalaiko/tree-sitter-go-template"
|
|
||||||
pin = "aa71f63de226c5592dfbfc1f29949522d7c95fac"
|
|
||||||
|
|
||||||
[language.gotmpl.queries.source.git]
|
|
||||||
url = "https://github.com/helix-editor/helix"
|
|
||||||
pin = "7275b7f85014aad7e15d4987ec4f2249572eecfb"
|
|
||||||
|
|
||||||
# odin
|
|
||||||
[grammar.odin.source.git]
|
|
||||||
url = "https://github.com/tree-sitter-grammars/tree-sitter-odin"
|
|
||||||
pin = "d2ca8efb4487e156a60d5bd6db2598b872629403"
|
|
||||||
|
|
||||||
[grammar.odin]
|
|
||||||
compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."]
|
|
||||||
link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "odin.so"]
|
|
||||||
|
|
||||||
[language.odin.queries.source.git]
|
|
||||||
url = "https://github.com/helix-editor/helix"
|
|
||||||
pin = "7275b7f85014aad7e15d4987ec4f2249572eecfb"
|
|
||||||
|
|
||||||
# templ
|
|
||||||
[grammar.templ.source.git]
|
|
||||||
url = "https://github.com/vrischmann/tree-sitter-templ"
|
|
||||||
pin = "04bae7c82de2fcfec94254fef50f5f1c5924f5f5"
|
|
||||||
|
|
||||||
[grammar.templ]
|
|
||||||
compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."]
|
|
||||||
link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "templ.so"]
|
|
||||||
|
|
||||||
[language.templ.queries.source.git]
|
|
||||||
url = "https://github.com/helix-editor/helix"
|
|
||||||
pin = "7275b7f85014aad7e15d4987ec4f2249572eecfb"
|
|
||||||
@@ -1,175 +0,0 @@
|
|||||||
# Fifteen colors dark theme
|
|
||||||
|
|
||||||
evaluate-commands %sh{
|
|
||||||
bg="rgb:1b251d"
|
|
||||||
bgmenu="rgb:282e38"
|
|
||||||
fg="rgb:a29e98"
|
|
||||||
gray="rgb:767778"
|
|
||||||
|
|
||||||
red1="rgb:e8719e"
|
|
||||||
red2="rgb:f57325"
|
|
||||||
red3="rgb:f26e7c"
|
|
||||||
|
|
||||||
yellow1="rgb:d68c2c"
|
|
||||||
yellow2="rgb:c59544"
|
|
||||||
yellow3="rgb:b49c5e"
|
|
||||||
|
|
||||||
green1="rgb:44b960"
|
|
||||||
green2="rgb:91ac29"
|
|
||||||
green3="rgb:7faa91"
|
|
||||||
|
|
||||||
blue1="rgb:14abe9"
|
|
||||||
blue2="rgb:a3a456"
|
|
||||||
blue3="rgb:8199f0"
|
|
||||||
|
|
||||||
violet1="rgb:aa88ef"
|
|
||||||
violet2="rgb:cd77de"
|
|
||||||
violet3="rgb:e56ac2"
|
|
||||||
|
|
||||||
echo "
|
|
||||||
## CODE
|
|
||||||
|
|
||||||
set-face global value $violet2
|
|
||||||
set-face global type $green2
|
|
||||||
set-face global variable $yellow3
|
|
||||||
set-face global module $green1
|
|
||||||
set-face global function $blue2
|
|
||||||
set-face global string $yellow2
|
|
||||||
set-face global keyword $violet3
|
|
||||||
set-face global operator $red2
|
|
||||||
set-face global attribute $green3
|
|
||||||
set-face global comment $gray
|
|
||||||
set-face global documentation $gray
|
|
||||||
set-face global meta $blue3
|
|
||||||
set-face global builtin $violet1
|
|
||||||
|
|
||||||
## MARKUP
|
|
||||||
|
|
||||||
set-face global title $red3
|
|
||||||
set-face global header $violet3
|
|
||||||
set-face global mono $yellow2
|
|
||||||
set-face global block $blue3
|
|
||||||
set-face global link $blue2
|
|
||||||
set-face global bullet $red2
|
|
||||||
set-face global list $red2
|
|
||||||
|
|
||||||
## BUILTIN
|
|
||||||
|
|
||||||
set-face global Default $fg,$bg
|
|
||||||
set-face global PrimarySelection $bg,$green3
|
|
||||||
set-face global SecondarySelection $bg,$blue3
|
|
||||||
set-face global PrimaryCursor $bg,$green1
|
|
||||||
set-face global SecondaryCursor $bg,$blue1
|
|
||||||
set-face global PrimaryCursorEol $bg,$red1
|
|
||||||
set-face global SecondaryCursorEol $bg,$yellow1
|
|
||||||
set-face global MenuForeground $bgmenu,$yellow1
|
|
||||||
set-face global MenuBackground $fg,$bgmenu
|
|
||||||
set-face global MenuInfo $green2
|
|
||||||
set-face global Information $fg,$bgmenu
|
|
||||||
set-face global InlineInformation $blue2,$bgmenu
|
|
||||||
set-face global Error $red2
|
|
||||||
set-face global DiagnosticError default,default,$red2+c
|
|
||||||
set-face global DiagnosticWarning default,default,$yellow2+c
|
|
||||||
set-face global DiagnosticInfo default,default,$green2+c
|
|
||||||
set-face global DiagnosticHint default,default,$blue2+c
|
|
||||||
set-face global StatusLine $fg,$bgmenu
|
|
||||||
set-face global StatusLineMode $green2
|
|
||||||
set-face global StatusLineInfo $yellow2
|
|
||||||
set-face global StatusLineValue $blue2
|
|
||||||
set-face global StatusCursor $bg,$green1
|
|
||||||
set-face global Prompt $green2
|
|
||||||
set-face global BufferPadding $bg,$bg
|
|
||||||
|
|
||||||
# Built-in highlighter faces
|
|
||||||
|
|
||||||
set-face global LineNumbers $gray
|
|
||||||
set-face global LineNumberCursor $green3
|
|
||||||
set-face global LineNumbersWrapped $bg,$bg
|
|
||||||
set-face global MatchingChar $blue1
|
|
||||||
set-face global Whitespace $gray
|
|
||||||
set-face global WhitespaceIndent $gray
|
|
||||||
set-face global WrapMarker $yellow1
|
|
||||||
|
|
||||||
# PLUGINS
|
|
||||||
|
|
||||||
# kak-lsp
|
|
||||||
|
|
||||||
set-face global InfoDefault default
|
|
||||||
set-face global InfoBlock $green2
|
|
||||||
set-face global InfoBlockQuote $yellow2
|
|
||||||
set-face global InfoBullet $red2
|
|
||||||
set-face global InfoHeader $red3
|
|
||||||
set-face global InfoLink $blue2
|
|
||||||
set-face global InfoLinkMono $blue3
|
|
||||||
|
|
||||||
set-face global InfoMono $blue2
|
|
||||||
set-face global InfoRule $yellow2
|
|
||||||
set-face global InfoDiagnosticError $red2
|
|
||||||
set-face global InfoDiagnosticHint $blue2
|
|
||||||
set-face global InfoDiagnosticInformation $green2
|
|
||||||
set-face global InfoDiagnosticWarning $yellow2
|
|
||||||
|
|
||||||
set-face global LineFlagError $red2
|
|
||||||
set-face global LineFlagHint $blue2
|
|
||||||
set-face global LineFlagInfo $green2
|
|
||||||
set-face global LineFlagWarning $yellow2
|
|
||||||
|
|
||||||
set-face global InlayDiagnosticError $red2
|
|
||||||
set-face global InlayDiagnosticHint $blue2
|
|
||||||
set-face global InlayDiagnosticInfo $green2
|
|
||||||
set-face global InlayDiagnosticWarning $yellow2
|
|
||||||
|
|
||||||
set-face global SnippetsNextPlaceholders $bg,$green2
|
|
||||||
set-face global SnippetsOtherPlaceholders $bg,$yellow2
|
|
||||||
|
|
||||||
# kak-tree-sitter
|
|
||||||
|
|
||||||
set-face global ts_attribute $green3
|
|
||||||
set-face global ts_comment $gray
|
|
||||||
set-face global ts_constant $violet2
|
|
||||||
set-face global ts_conceal $red1
|
|
||||||
set-face global ts_constructor $red1
|
|
||||||
set-face global ts_diff_plus $green2
|
|
||||||
set-face global ts_diff_minus $red2
|
|
||||||
set-face global ts_diff_delta $blue2
|
|
||||||
set-face global ts_error $red2
|
|
||||||
set-face global ts_function $blue2
|
|
||||||
set-face global ts_hint $green2
|
|
||||||
set-face global ts_info $blue2
|
|
||||||
set-face global ts_keyword $violet3
|
|
||||||
set-face global ts_label $red1
|
|
||||||
set-face global ts_bold $green2+b
|
|
||||||
set-face global ts_markup_heading $red3
|
|
||||||
set-face global ts_markup_italic $green2+i
|
|
||||||
set-face global ts_markup_list_checked $red2
|
|
||||||
set-face global ts_markup_list_numbered $red2
|
|
||||||
set-face global ts_markup_list_unchecked $red2
|
|
||||||
set-face global ts_markup_list_unnumbered $red2
|
|
||||||
set-face global ts_markup_link_label $green2
|
|
||||||
set-face global ts_markup_link_url $blue2
|
|
||||||
set-face global ts_markup_link_uri $blue2
|
|
||||||
set-face global ts_markup_link_text $red1
|
|
||||||
set-face global ts_markup_quote $blue3
|
|
||||||
set-face global ts_markup_raw $yellow2
|
|
||||||
set-face global ts_markup_strikethrough $red2+s
|
|
||||||
set-face global ts_namespace $green3
|
|
||||||
set-face global ts_operator $red2
|
|
||||||
set-face global ts_property $green3
|
|
||||||
set-face global ts_punctuation $red3
|
|
||||||
set-face global ts_special $red3
|
|
||||||
set-face global ts_spell $red1+c
|
|
||||||
set-face global ts_string $yellow2
|
|
||||||
set-face global ts_string_regex $yellow1+b
|
|
||||||
set-face global ts_string_regexp $yellow1+b
|
|
||||||
set-face global ts_string_escape $yellow1+b
|
|
||||||
set-face global ts_string_special $yellow1+b
|
|
||||||
set-face global ts_string_symbol $yellow1+b
|
|
||||||
set-face global ts_tag $green2
|
|
||||||
set-face global ts_tag_error $red2+c
|
|
||||||
set-face global ts_text $red1
|
|
||||||
set-face global ts_text_title $red3
|
|
||||||
set-face global ts_type $green2
|
|
||||||
set-face global ts_variable $blue3
|
|
||||||
set-face global ts_warning $yellow2+c
|
|
||||||
"
|
|
||||||
}
|
|
||||||
@@ -1,176 +0,0 @@
|
|||||||
# Fifteen colors light theme
|
|
||||||
|
|
||||||
evaluate-commands %sh{
|
|
||||||
bg="rgb:faf8f5"
|
|
||||||
bgmenu="rgb:f6ede0"
|
|
||||||
fg="rgb:696257"
|
|
||||||
gray="rgb:c0c1c2"
|
|
||||||
|
|
||||||
red1="rgb:e8719e"
|
|
||||||
red2="rgb:f57325"
|
|
||||||
red3="rgb:f26e7c"
|
|
||||||
|
|
||||||
yellow1="rgb:d68c2c"
|
|
||||||
yellow2="rgb:c59544"
|
|
||||||
yellow3="rgb:b49c5e"
|
|
||||||
|
|
||||||
green1="rgb:44b960"
|
|
||||||
green2="rgb:91ac29"
|
|
||||||
green3="rgb:7faa91"
|
|
||||||
|
|
||||||
blue1="rgb:14abe9"
|
|
||||||
blue2="rgb:a3a456"
|
|
||||||
blue3="rgb:8199f0"
|
|
||||||
|
|
||||||
violet1="rgb:aa88ef"
|
|
||||||
violet2="rgb:cd77de"
|
|
||||||
violet3="rgb:e56ac2"
|
|
||||||
|
|
||||||
echo "
|
|
||||||
## CODE
|
|
||||||
|
|
||||||
set-face global value $violet2
|
|
||||||
set-face global type $green2
|
|
||||||
set-face global variable $yellow3
|
|
||||||
set-face global module $red3
|
|
||||||
set-face global function $blue2
|
|
||||||
set-face global string $yellow2
|
|
||||||
set-face global keyword $violet3
|
|
||||||
set-face global operator $red2
|
|
||||||
set-face global attribute $green3
|
|
||||||
set-face global comment $gray
|
|
||||||
set-face global documentation $gray
|
|
||||||
set-face global meta $blue3
|
|
||||||
set-face global builtin $violet1
|
|
||||||
|
|
||||||
## MARKUP
|
|
||||||
|
|
||||||
set-face global title $red3
|
|
||||||
set-face global header $violet3
|
|
||||||
set-face global mono $yellow2
|
|
||||||
set-face global block $blue3
|
|
||||||
set-face global link $blue2
|
|
||||||
set-face global bullet $red2
|
|
||||||
set-face global list $red2
|
|
||||||
|
|
||||||
## BUILTIN
|
|
||||||
|
|
||||||
set-face global Default $fg,$bg
|
|
||||||
set-face global PrimarySelection $bg,$green3
|
|
||||||
set-face global SecondarySelection $bg,$blue3
|
|
||||||
set-face global PrimaryCursor $bg,$green1
|
|
||||||
set-face global SecondaryCursor $bg,$blue1
|
|
||||||
set-face global PrimaryCursorEol $bg,$red1
|
|
||||||
set-face global SecondaryCursorEol $bg,$yellow1
|
|
||||||
set-face global MenuForeground $bgmenu,$green3
|
|
||||||
set-face global MenuBackground $fg,$bgmenu
|
|
||||||
set-face global MenuInfo $green2
|
|
||||||
set-face global Information $fg,$bgmenu
|
|
||||||
set-face global InlineInformation $blue2,$bgmenu
|
|
||||||
set-face global Error $red2
|
|
||||||
set-face global DiagnosticError default,default,$red2+c
|
|
||||||
set-face global DiagnosticWarning default,default,$yellow2+c
|
|
||||||
set-face global DiagnosticInfo default,default,$green2+c
|
|
||||||
set-face global DiagnosticHint default,default,$blue2+c
|
|
||||||
set-face global StatusLine $fg,$bgmenu
|
|
||||||
set-face global StatusLineMode $green2
|
|
||||||
set-face global StatusLineInfo $yellow2
|
|
||||||
set-face global StatusLineValue $blue2
|
|
||||||
set-face global StatusCursor $bg,$green1
|
|
||||||
set-face global Prompt $green2
|
|
||||||
set-face global BufferPadding $bg,$bg
|
|
||||||
|
|
||||||
# Built-in highlighter faces
|
|
||||||
|
|
||||||
set-face global LineNumbers $gray
|
|
||||||
set-face global LineNumberCursor $green3
|
|
||||||
set-face global LineNumbersWrapped $bg,$bg
|
|
||||||
set-face global MatchingChar $red1
|
|
||||||
set-face global Whitespace $gray
|
|
||||||
set-face global WhitespaceIndent $gray
|
|
||||||
set-face global WrapMarker $yellow1
|
|
||||||
|
|
||||||
# PLUGINS
|
|
||||||
|
|
||||||
# kak-lsp
|
|
||||||
|
|
||||||
set-face global InfoDefault default
|
|
||||||
set-face global InfoBlock $green2
|
|
||||||
set-face global InfoBlockQuote $yellow2
|
|
||||||
set-face global InfoBullet $red2
|
|
||||||
set-face global InfoHeader $red3
|
|
||||||
set-face global InfoLink $blue2
|
|
||||||
set-face global InfoLinkMono $blue3
|
|
||||||
|
|
||||||
set-face global InfoMono $blue2
|
|
||||||
set-face global InfoRule $yellow2
|
|
||||||
set-face global InfoDiagnosticError $red2
|
|
||||||
set-face global InfoDiagnosticHint $blue2
|
|
||||||
set-face global InfoDiagnosticInformation $green2
|
|
||||||
set-face global InfoDiagnosticWarning $yellow2
|
|
||||||
|
|
||||||
set-face global LineFlagError $red2
|
|
||||||
set-face global LineFlagHint $blue2
|
|
||||||
set-face global LineFlagInfo $green2
|
|
||||||
set-face global LineFlagWarning $yellow2
|
|
||||||
|
|
||||||
set-face global InlayDiagnosticError $red2
|
|
||||||
set-face global InlayDiagnosticHint $blue2
|
|
||||||
set-face global InlayDiagnosticInfo $green2
|
|
||||||
set-face global InlayDiagnosticWarning $yellow2
|
|
||||||
|
|
||||||
set-face global SnippetsNextPlaceholders $bg,$green2
|
|
||||||
set-face global SnippetsOtherPlaceholders $bg,$yellow2
|
|
||||||
|
|
||||||
# kak-tree-sitter
|
|
||||||
|
|
||||||
set-face global ts_attribute $green3
|
|
||||||
set-face global ts_comment $gray
|
|
||||||
set-face global ts_constant $violet2
|
|
||||||
set-face global ts_conceal $red1
|
|
||||||
set-face global ts_constructor $red1
|
|
||||||
set-face global ts_diff_plus $green2
|
|
||||||
set-face global ts_diff_minus $red2
|
|
||||||
set-face global ts_diff_delta $blue2
|
|
||||||
set-face global ts_error $red2
|
|
||||||
set-face global ts_function $blue2
|
|
||||||
set-face global ts_hint $green2
|
|
||||||
set-face global ts_info $blue2
|
|
||||||
set-face global ts_keyword $violet3
|
|
||||||
set-face global ts_label $red1
|
|
||||||
set-face global ts_bold $green2+b
|
|
||||||
set-face global ts_markup_heading $red3
|
|
||||||
set-face global ts_markup_italic $green2+i
|
|
||||||
set-face global ts_markup_list_checked $red2
|
|
||||||
set-face global ts_markup_list_numbered $red2
|
|
||||||
set-face global ts_markup_list_unchecked $red2
|
|
||||||
set-face global ts_markup_list_unnumbered $red2
|
|
||||||
set-face global ts_markup_link_label $green2
|
|
||||||
set-face global ts_markup_link_url $blue2
|
|
||||||
set-face global ts_markup_link_uri $blue2
|
|
||||||
set-face global ts_markup_link_text $red1
|
|
||||||
set-face global ts_markup_quote $blue3
|
|
||||||
set-face global ts_markup_raw $yellow2
|
|
||||||
set-face global ts_markup_strikethrough $red2+s
|
|
||||||
set-face global ts_namespace $green3
|
|
||||||
set-face global ts_operator $red2
|
|
||||||
set-face global ts_property $green3
|
|
||||||
set-face global ts_punctuation $red3
|
|
||||||
set-face global ts_special $red3
|
|
||||||
set-face global ts_spell $red1+c
|
|
||||||
set-face global ts_string $yellow2
|
|
||||||
set-face global ts_string_regex $yellow1+b
|
|
||||||
set-face global ts_string_regexp $yellow1+b
|
|
||||||
set-face global ts_string_escape $yellow1+b
|
|
||||||
set-face global ts_string_special $yellow1+b
|
|
||||||
set-face global ts_string_symbol $yellow1+b
|
|
||||||
set-face global ts_tag $green2
|
|
||||||
set-face global ts_tag_error $red2+c
|
|
||||||
set-face global ts_text $red1
|
|
||||||
set-face global ts_text_title $red3
|
|
||||||
set-face global ts_type $green2
|
|
||||||
set-face global ts_variable $blue3
|
|
||||||
set-face global ts_warning $yellow2+c
|
|
||||||
"
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,175 +0,0 @@
|
|||||||
# Five alt colors dark theme
|
|
||||||
|
|
||||||
evaluate-commands %sh{
|
|
||||||
bg="rgb:1c1120" # oklch(0.2 0.0333 317.4)
|
|
||||||
bgmenu="rgb:021921" # oklch(0.2 0.0333 222.6)
|
|
||||||
fg="rgb:7a9098" # oklch(0.6382 0.0284 222.6)
|
|
||||||
gray="rgb:938797" # oklch(0.6382 0.0284 317.4)
|
|
||||||
|
|
||||||
red1="rgb:b4745b" # oklch(0.6206 0.0886 42.6)
|
|
||||||
red2="rgb:9e5f46" # oklch(0.55 0.09 42.6)
|
|
||||||
red3="rgb:7b452e" # oklch(0.45 0.0826 42.6)
|
|
||||||
|
|
||||||
yellow1="rgb:9d8343" # oklch(0.6206 0.0886 87.6)
|
|
||||||
yellow2="rgb:886e2c" # oklch(0.55 0.09 87.6)
|
|
||||||
yellow3="rgb:695214" # oklch(0.45 0.0826 87.6)
|
|
||||||
|
|
||||||
green1="rgb:729259" # oklch(0.6206 0.0886 132.6)
|
|
||||||
green2="rgb:5d7d44" # oklch(0.55 0.09 132.6)
|
|
||||||
green3="rgb:435f2d" # oklch(0.45 0.0826 132.6)
|
|
||||||
|
|
||||||
blue1="rgb:4092ad" # oklch(0.6206 0.0886 222.6)
|
|
||||||
blue2="rgb:257d98" # oklch(0.55 0.09 222.6)
|
|
||||||
blue3="rgb:035f76" # oklch(0.45 0.0826 222.6)
|
|
||||||
|
|
||||||
violet1="rgb:9c75aa" # oklch(0.6206 0.0886 317.4)
|
|
||||||
violet2="rgb:876094" # oklch(0.55 0.09 317.4)
|
|
||||||
violet3="rgb:684673" # oklch(0.45 0.0826 317.4)
|
|
||||||
|
|
||||||
echo "
|
|
||||||
## CODE
|
|
||||||
|
|
||||||
set-face global value $violet2
|
|
||||||
set-face global type $green2
|
|
||||||
set-face global variable $yellow3
|
|
||||||
set-face global module $green1
|
|
||||||
set-face global function $blue2
|
|
||||||
set-face global string $yellow2
|
|
||||||
set-face global keyword $violet3
|
|
||||||
set-face global operator $red2
|
|
||||||
set-face global attribute $green3
|
|
||||||
set-face global comment $gray
|
|
||||||
set-face global documentation $gray
|
|
||||||
set-face global meta $blue3
|
|
||||||
set-face global builtin $violet1
|
|
||||||
|
|
||||||
## MARKUP
|
|
||||||
|
|
||||||
set-face global title $red3
|
|
||||||
set-face global header $violet3
|
|
||||||
set-face global mono $yellow2
|
|
||||||
set-face global block $blue3
|
|
||||||
set-face global link $blue2
|
|
||||||
set-face global bullet $red2
|
|
||||||
set-face global list $red2
|
|
||||||
|
|
||||||
## BUILTIN
|
|
||||||
|
|
||||||
set-face global Default $fg,$bg
|
|
||||||
set-face global PrimarySelection $bg,$green3
|
|
||||||
set-face global SecondarySelection $bg,$blue3
|
|
||||||
set-face global PrimaryCursor $bg,$green1
|
|
||||||
set-face global SecondaryCursor $bg,$blue1
|
|
||||||
set-face global PrimaryCursorEol $bg,$red1
|
|
||||||
set-face global SecondaryCursorEol $bg,$yellow1
|
|
||||||
set-face global MenuForeground $bgmenu,$yellow1
|
|
||||||
set-face global MenuBackground $fg,$bgmenu
|
|
||||||
set-face global MenuInfo $green2
|
|
||||||
set-face global Information $fg,$bgmenu
|
|
||||||
set-face global InlineInformation $blue2,$bgmenu
|
|
||||||
set-face global Error $red2
|
|
||||||
set-face global DiagnosticError default,default,$red2+c
|
|
||||||
set-face global DiagnosticWarning default,default,$yellow2+c
|
|
||||||
set-face global DiagnosticInfo default,default,$green2+c
|
|
||||||
set-face global DiagnosticHint default,default,$blue2+c
|
|
||||||
set-face global StatusLine $fg,$bgmenu
|
|
||||||
set-face global StatusLineMode $green2
|
|
||||||
set-face global StatusLineInfo $yellow2
|
|
||||||
set-face global StatusLineValue $blue2
|
|
||||||
set-face global StatusCursor $bg,$green1
|
|
||||||
set-face global Prompt $green2
|
|
||||||
set-face global BufferPadding $bg,$bg
|
|
||||||
|
|
||||||
# Built-in highlighter faces
|
|
||||||
|
|
||||||
set-face global LineNumbers $gray
|
|
||||||
set-face global LineNumberCursor $green3
|
|
||||||
set-face global LineNumbersWrapped $bg,$bg
|
|
||||||
set-face global MatchingChar $blue1
|
|
||||||
set-face global Whitespace $gray
|
|
||||||
set-face global WhitespaceIndent $gray
|
|
||||||
set-face global WrapMarker $yellow1
|
|
||||||
|
|
||||||
# PLUGINS
|
|
||||||
|
|
||||||
# kak-lsp
|
|
||||||
|
|
||||||
set-face global InfoDefault default
|
|
||||||
set-face global InfoBlock $green2
|
|
||||||
set-face global InfoBlockQuote $yellow2
|
|
||||||
set-face global InfoBullet $red2
|
|
||||||
set-face global InfoHeader $red3
|
|
||||||
set-face global InfoLink $blue2
|
|
||||||
set-face global InfoLinkMono $blue3
|
|
||||||
|
|
||||||
set-face global InfoMono $blue2
|
|
||||||
set-face global InfoRule $yellow2
|
|
||||||
set-face global InfoDiagnosticError $red2
|
|
||||||
set-face global InfoDiagnosticHint $blue2
|
|
||||||
set-face global InfoDiagnosticInformation $green2
|
|
||||||
set-face global InfoDiagnosticWarning $yellow2
|
|
||||||
|
|
||||||
set-face global LineFlagError $red2
|
|
||||||
set-face global LineFlagHint $blue2
|
|
||||||
set-face global LineFlagInfo $green2
|
|
||||||
set-face global LineFlagWarning $yellow2
|
|
||||||
|
|
||||||
set-face global InlayDiagnosticError $red2
|
|
||||||
set-face global InlayDiagnosticHint $blue2
|
|
||||||
set-face global InlayDiagnosticInfo $green2
|
|
||||||
set-face global InlayDiagnosticWarning $yellow2
|
|
||||||
|
|
||||||
set-face global SnippetsNextPlaceholders $bg,$green2
|
|
||||||
set-face global SnippetsOtherPlaceholders $bg,$yellow2
|
|
||||||
|
|
||||||
# kak-tree-sitter
|
|
||||||
|
|
||||||
set-face global ts_attribute $green3
|
|
||||||
set-face global ts_comment $gray
|
|
||||||
set-face global ts_constant $violet2
|
|
||||||
set-face global ts_conceal $red1
|
|
||||||
set-face global ts_constructor $red1
|
|
||||||
set-face global ts_diff_plus $green2
|
|
||||||
set-face global ts_diff_minus $red2
|
|
||||||
set-face global ts_diff_delta $blue2
|
|
||||||
set-face global ts_error $red2
|
|
||||||
set-face global ts_function $blue2
|
|
||||||
set-face global ts_hint $green2
|
|
||||||
set-face global ts_info $blue2
|
|
||||||
set-face global ts_keyword $violet3
|
|
||||||
set-face global ts_label $red1
|
|
||||||
set-face global ts_bold $green2+b
|
|
||||||
set-face global ts_markup_heading $red3
|
|
||||||
set-face global ts_markup_italic $green2+i
|
|
||||||
set-face global ts_markup_list_checked $red2
|
|
||||||
set-face global ts_markup_list_numbered $red2
|
|
||||||
set-face global ts_markup_list_unchecked $red2
|
|
||||||
set-face global ts_markup_list_unnumbered $red2
|
|
||||||
set-face global ts_markup_link_label $green2
|
|
||||||
set-face global ts_markup_link_url $blue2
|
|
||||||
set-face global ts_markup_link_uri $blue2
|
|
||||||
set-face global ts_markup_link_text $red1
|
|
||||||
set-face global ts_markup_quote $blue3
|
|
||||||
set-face global ts_markup_raw $yellow2
|
|
||||||
set-face global ts_markup_strikethrough $red2+s
|
|
||||||
set-face global ts_namespace $green3
|
|
||||||
set-face global ts_operator $red2
|
|
||||||
set-face global ts_property $green3
|
|
||||||
set-face global ts_punctuation $red3
|
|
||||||
set-face global ts_special $red3
|
|
||||||
set-face global ts_spell $red1+c
|
|
||||||
set-face global ts_string $yellow2
|
|
||||||
set-face global ts_string_regex $yellow1+b
|
|
||||||
set-face global ts_string_regexp $yellow1+b
|
|
||||||
set-face global ts_string_escape $yellow1+b
|
|
||||||
set-face global ts_string_special $yellow1+b
|
|
||||||
set-face global ts_string_symbol $yellow1+b
|
|
||||||
set-face global ts_tag $green2
|
|
||||||
set-face global ts_tag_error $red2+c
|
|
||||||
set-face global ts_text $red1
|
|
||||||
set-face global ts_text_title $red3
|
|
||||||
set-face global ts_type $green2
|
|
||||||
set-face global ts_variable $blue3
|
|
||||||
set-face global ts_warning $yellow2+c
|
|
||||||
"
|
|
||||||
}
|
|
||||||
@@ -1,175 +0,0 @@
|
|||||||
# Five alt colors light theme
|
|
||||||
|
|
||||||
evaluate-commands %sh{
|
|
||||||
bg="rgb:f2eee5" # oklch(0.95 0.0133 87.6)
|
|
||||||
bgmenu="rgb:f8eed6" # oklch(0.95 0.0333 87.6)
|
|
||||||
fg="rgb:7a9098" # oklch(0.6382 0.0284 222.6)
|
|
||||||
gray="rgb:938797" # oklch(0.6382 0.0284 317.4)
|
|
||||||
|
|
||||||
red1="rgb:b4745b" # oklch(0.6206 0.0886 42.6)
|
|
||||||
red2="rgb:9e5f46" # oklch(0.55 0.09 42.6)
|
|
||||||
red3="rgb:7b452e" # oklch(0.45 0.0826 42.6)
|
|
||||||
|
|
||||||
yellow1="rgb:9d8343" # oklch(0.6206 0.0886 87.6)
|
|
||||||
yellow2="rgb:886e2c" # oklch(0.55 0.09 87.6)
|
|
||||||
yellow3="rgb:695214" # oklch(0.45 0.0826 87.6)
|
|
||||||
|
|
||||||
green1="rgb:729259" # oklch(0.6206 0.0886 132.6)
|
|
||||||
green2="rgb:5d7d44" # oklch(0.55 0.09 132.6)
|
|
||||||
green3="rgb:435f2d" # oklch(0.45 0.0826 132.6)
|
|
||||||
|
|
||||||
blue1="rgb:4092ad" # oklch(0.6206 0.0886 222.6)
|
|
||||||
blue2="rgb:257d98" # oklch(0.55 0.09 222.6)
|
|
||||||
blue3="rgb:035f76" # oklch(0.45 0.0826 222.6)
|
|
||||||
|
|
||||||
violet1="rgb:9c75aa" # oklch(0.6206 0.0886 317.4)
|
|
||||||
violet2="rgb:876094" # oklch(0.55 0.09 317.4)
|
|
||||||
violet3="rgb:684673" # oklch(0.45 0.0826 317.4)
|
|
||||||
|
|
||||||
echo "
|
|
||||||
## CODE
|
|
||||||
|
|
||||||
set-face global value $violet2
|
|
||||||
set-face global type $green2
|
|
||||||
set-face global variable $yellow3
|
|
||||||
set-face global module $green1
|
|
||||||
set-face global function $blue2
|
|
||||||
set-face global string $yellow2
|
|
||||||
set-face global keyword $violet3
|
|
||||||
set-face global operator $red2
|
|
||||||
set-face global attribute $green3
|
|
||||||
set-face global comment $gray
|
|
||||||
set-face global documentation $gray
|
|
||||||
set-face global meta $blue3
|
|
||||||
set-face global builtin $violet1
|
|
||||||
|
|
||||||
## MARKUP
|
|
||||||
|
|
||||||
set-face global title $red3
|
|
||||||
set-face global header $violet3
|
|
||||||
set-face global mono $yellow2
|
|
||||||
set-face global block $blue3
|
|
||||||
set-face global link $blue2
|
|
||||||
set-face global bullet $red2
|
|
||||||
set-face global list $red2
|
|
||||||
|
|
||||||
## BUILTIN
|
|
||||||
|
|
||||||
set-face global Default $fg,$bg
|
|
||||||
set-face global PrimarySelection $bg,$green3
|
|
||||||
set-face global SecondarySelection $bg,$blue3
|
|
||||||
set-face global PrimaryCursor $bg,$green1
|
|
||||||
set-face global SecondaryCursor $bg,$blue1
|
|
||||||
set-face global PrimaryCursorEol $bg,$red1
|
|
||||||
set-face global SecondaryCursorEol $bg,$yellow1
|
|
||||||
set-face global MenuForeground $bgmenu,$yellow1
|
|
||||||
set-face global MenuBackground $fg,$bgmenu
|
|
||||||
set-face global MenuInfo $green2
|
|
||||||
set-face global Information $fg,$bgmenu
|
|
||||||
set-face global InlineInformation $blue2,$bgmenu
|
|
||||||
set-face global Error $red2
|
|
||||||
set-face global DiagnosticError default,default,$red2+c
|
|
||||||
set-face global DiagnosticWarning default,default,$yellow2+c
|
|
||||||
set-face global DiagnosticInfo default,default,$green2+c
|
|
||||||
set-face global DiagnosticHint default,default,$blue2+c
|
|
||||||
set-face global StatusLine $fg,$bgmenu
|
|
||||||
set-face global StatusLineMode $green2
|
|
||||||
set-face global StatusLineInfo $yellow2
|
|
||||||
set-face global StatusLineValue $blue2
|
|
||||||
set-face global StatusCursor $bg,$green1
|
|
||||||
set-face global Prompt $green2
|
|
||||||
set-face global BufferPadding $bg,$bg
|
|
||||||
|
|
||||||
# Built-in highlighter faces
|
|
||||||
|
|
||||||
set-face global LineNumbers $gray
|
|
||||||
set-face global LineNumberCursor $green3
|
|
||||||
set-face global LineNumbersWrapped $bg,$bg
|
|
||||||
set-face global MatchingChar $blue1
|
|
||||||
set-face global Whitespace $gray
|
|
||||||
set-face global WhitespaceIndent $gray
|
|
||||||
set-face global WrapMarker $yellow1
|
|
||||||
|
|
||||||
# PLUGINS
|
|
||||||
|
|
||||||
# kak-lsp
|
|
||||||
|
|
||||||
set-face global InfoDefault default
|
|
||||||
set-face global InfoBlock $green2
|
|
||||||
set-face global InfoBlockQuote $yellow2
|
|
||||||
set-face global InfoBullet $red2
|
|
||||||
set-face global InfoHeader $red3
|
|
||||||
set-face global InfoLink $blue2
|
|
||||||
set-face global InfoLinkMono $blue3
|
|
||||||
|
|
||||||
set-face global InfoMono $blue2
|
|
||||||
set-face global InfoRule $yellow2
|
|
||||||
set-face global InfoDiagnosticError $red2
|
|
||||||
set-face global InfoDiagnosticHint $blue2
|
|
||||||
set-face global InfoDiagnosticInformation $green2
|
|
||||||
set-face global InfoDiagnosticWarning $yellow2
|
|
||||||
|
|
||||||
set-face global LineFlagError $red2
|
|
||||||
set-face global LineFlagHint $blue2
|
|
||||||
set-face global LineFlagInfo $green2
|
|
||||||
set-face global LineFlagWarning $yellow2
|
|
||||||
|
|
||||||
set-face global InlayDiagnosticError $red2
|
|
||||||
set-face global InlayDiagnosticHint $blue2
|
|
||||||
set-face global InlayDiagnosticInfo $green2
|
|
||||||
set-face global InlayDiagnosticWarning $yellow2
|
|
||||||
|
|
||||||
set-face global SnippetsNextPlaceholders $bg,$green2
|
|
||||||
set-face global SnippetsOtherPlaceholders $bg,$yellow2
|
|
||||||
|
|
||||||
# kak-tree-sitter
|
|
||||||
|
|
||||||
set-face global ts_attribute $green3
|
|
||||||
set-face global ts_comment $gray
|
|
||||||
set-face global ts_constant $violet2
|
|
||||||
set-face global ts_conceal $red1
|
|
||||||
set-face global ts_constructor $red1
|
|
||||||
set-face global ts_diff_plus $green2
|
|
||||||
set-face global ts_diff_minus $red2
|
|
||||||
set-face global ts_diff_delta $blue2
|
|
||||||
set-face global ts_error $red2
|
|
||||||
set-face global ts_function $blue2
|
|
||||||
set-face global ts_hint $green2
|
|
||||||
set-face global ts_info $blue2
|
|
||||||
set-face global ts_keyword $violet3
|
|
||||||
set-face global ts_label $red1
|
|
||||||
set-face global ts_bold $green2+b
|
|
||||||
set-face global ts_markup_heading $red3
|
|
||||||
set-face global ts_markup_italic $green2+i
|
|
||||||
set-face global ts_markup_list_checked $red2
|
|
||||||
set-face global ts_markup_list_numbered $red2
|
|
||||||
set-face global ts_markup_list_unchecked $red2
|
|
||||||
set-face global ts_markup_list_unnumbered $red2
|
|
||||||
set-face global ts_markup_link_label $green2
|
|
||||||
set-face global ts_markup_link_url $blue2
|
|
||||||
set-face global ts_markup_link_uri $blue2
|
|
||||||
set-face global ts_markup_link_text $red1
|
|
||||||
set-face global ts_markup_quote $blue3
|
|
||||||
set-face global ts_markup_raw $yellow2
|
|
||||||
set-face global ts_markup_strikethrough $red2+s
|
|
||||||
set-face global ts_namespace $green3
|
|
||||||
set-face global ts_operator $red2
|
|
||||||
set-face global ts_property $green3
|
|
||||||
set-face global ts_punctuation $red3
|
|
||||||
set-face global ts_special $red3
|
|
||||||
set-face global ts_spell $red1+c
|
|
||||||
set-face global ts_string $yellow2
|
|
||||||
set-face global ts_string_regex $yellow1+b
|
|
||||||
set-face global ts_string_regexp $yellow1+b
|
|
||||||
set-face global ts_string_escape $yellow1+b
|
|
||||||
set-face global ts_string_special $yellow1+b
|
|
||||||
set-face global ts_string_symbol $yellow1+b
|
|
||||||
set-face global ts_tag $green2
|
|
||||||
set-face global ts_tag_error $red2+c
|
|
||||||
set-face global ts_text $red1
|
|
||||||
set-face global ts_text_title $red3
|
|
||||||
set-face global ts_type $green2
|
|
||||||
set-face global ts_variable $blue3
|
|
||||||
set-face global ts_warning $yellow2+c
|
|
||||||
"
|
|
||||||
}
|
|
||||||
@@ -121,55 +121,5 @@ evaluate-commands %sh{
|
|||||||
|
|
||||||
set-face global SnippetsNextPlaceholders $bg,$green2
|
set-face global SnippetsNextPlaceholders $bg,$green2
|
||||||
set-face global SnippetsOtherPlaceholders $bg,$yellow2
|
set-face global SnippetsOtherPlaceholders $bg,$yellow2
|
||||||
|
|
||||||
# kak-tree-sitter
|
|
||||||
|
|
||||||
set-face global ts_attribute $green3
|
|
||||||
set-face global ts_comment $gray
|
|
||||||
set-face global ts_constant $violet2
|
|
||||||
set-face global ts_conceal $red1
|
|
||||||
set-face global ts_constructor $red1
|
|
||||||
set-face global ts_diff_plus $green2
|
|
||||||
set-face global ts_diff_minus $red2
|
|
||||||
set-face global ts_diff_delta $blue2
|
|
||||||
set-face global ts_error $red2
|
|
||||||
set-face global ts_function $blue2
|
|
||||||
set-face global ts_hint $green2
|
|
||||||
set-face global ts_info $blue2
|
|
||||||
set-face global ts_keyword $violet3
|
|
||||||
set-face global ts_label $red1
|
|
||||||
set-face global ts_bold $green2+b
|
|
||||||
set-face global ts_markup_heading $red3
|
|
||||||
set-face global ts_markup_italic $green2+i
|
|
||||||
set-face global ts_markup_list_checked $red2
|
|
||||||
set-face global ts_markup_list_numbered $red2
|
|
||||||
set-face global ts_markup_list_unchecked $red2
|
|
||||||
set-face global ts_markup_list_unnumbered $red2
|
|
||||||
set-face global ts_markup_link_label $green2
|
|
||||||
set-face global ts_markup_link_url $blue2
|
|
||||||
set-face global ts_markup_link_uri $blue2
|
|
||||||
set-face global ts_markup_link_text $red1
|
|
||||||
set-face global ts_markup_quote $blue3
|
|
||||||
set-face global ts_markup_raw $yellow2
|
|
||||||
set-face global ts_markup_strikethrough $red2+s
|
|
||||||
set-face global ts_namespace $green3
|
|
||||||
set-face global ts_operator $red2
|
|
||||||
set-face global ts_property $green3
|
|
||||||
set-face global ts_punctuation $red3
|
|
||||||
set-face global ts_special $red3
|
|
||||||
set-face global ts_spell $red1+c
|
|
||||||
set-face global ts_string $yellow2
|
|
||||||
set-face global ts_string_regex $yellow1+b
|
|
||||||
set-face global ts_string_regexp $yellow1+b
|
|
||||||
set-face global ts_string_escape $yellow1+b
|
|
||||||
set-face global ts_string_special $yellow1+b
|
|
||||||
set-face global ts_string_symbol $yellow1+b
|
|
||||||
set-face global ts_tag $green2
|
|
||||||
set-face global ts_tag_error $red2+c
|
|
||||||
set-face global ts_text $red1
|
|
||||||
set-face global ts_text_title $red3
|
|
||||||
set-face global ts_type $green2
|
|
||||||
set-face global ts_variable $blue3
|
|
||||||
set-face global ts_warning $yellow2+c
|
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
@@ -121,55 +121,5 @@ evaluate-commands %sh{
|
|||||||
|
|
||||||
set-face global SnippetsNextPlaceholders $bg,$green2
|
set-face global SnippetsNextPlaceholders $bg,$green2
|
||||||
set-face global SnippetsOtherPlaceholders $bg,$yellow2
|
set-face global SnippetsOtherPlaceholders $bg,$yellow2
|
||||||
|
|
||||||
# kak-tree-sitter
|
|
||||||
|
|
||||||
set-face global ts_attribute $green3
|
|
||||||
set-face global ts_comment $gray
|
|
||||||
set-face global ts_constant $violet2
|
|
||||||
set-face global ts_conceal $red1
|
|
||||||
set-face global ts_constructor $red1
|
|
||||||
set-face global ts_diff_plus $green2
|
|
||||||
set-face global ts_diff_minus $red2
|
|
||||||
set-face global ts_diff_delta $blue2
|
|
||||||
set-face global ts_error $red2
|
|
||||||
set-face global ts_function $blue2
|
|
||||||
set-face global ts_hint $green2
|
|
||||||
set-face global ts_info $blue2
|
|
||||||
set-face global ts_keyword $violet3
|
|
||||||
set-face global ts_label $red1
|
|
||||||
set-face global ts_bold $green2+b
|
|
||||||
set-face global ts_markup_heading $red3
|
|
||||||
set-face global ts_markup_italic $green2+i
|
|
||||||
set-face global ts_markup_list_checked $red2
|
|
||||||
set-face global ts_markup_list_numbered $red2
|
|
||||||
set-face global ts_markup_list_unchecked $red2
|
|
||||||
set-face global ts_markup_list_unnumbered $red2
|
|
||||||
set-face global ts_markup_link_label $green2
|
|
||||||
set-face global ts_markup_link_url $blue2
|
|
||||||
set-face global ts_markup_link_uri $blue2
|
|
||||||
set-face global ts_markup_link_text $red1
|
|
||||||
set-face global ts_markup_quote $blue3
|
|
||||||
set-face global ts_markup_raw $yellow2
|
|
||||||
set-face global ts_markup_strikethrough $red2+s
|
|
||||||
set-face global ts_namespace $green3
|
|
||||||
set-face global ts_operator $red2
|
|
||||||
set-face global ts_property $green3
|
|
||||||
set-face global ts_punctuation $red3
|
|
||||||
set-face global ts_special $red3
|
|
||||||
set-face global ts_spell $red1+c
|
|
||||||
set-face global ts_string $yellow2
|
|
||||||
set-face global ts_string_regex $yellow1+b
|
|
||||||
set-face global ts_string_regexp $yellow1+b
|
|
||||||
set-face global ts_string_escape $yellow1+b
|
|
||||||
set-face global ts_string_special $yellow1+b
|
|
||||||
set-face global ts_string_symbol $yellow1+b
|
|
||||||
set-face global ts_tag $green2
|
|
||||||
set-face global ts_tag_error $red2+c
|
|
||||||
set-face global ts_text $red1
|
|
||||||
set-face global ts_text_title $red3
|
|
||||||
set-face global ts_type $green2
|
|
||||||
set-face global ts_variable $blue3
|
|
||||||
set-face global ts_warning $yellow2+c
|
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
+9
-110
@@ -3,18 +3,10 @@
|
|||||||
set-option global startup_info_version 20260412
|
set-option global startup_info_version 20260412
|
||||||
set-option global ui_options terminal_assistant=none
|
set-option global ui_options terminal_assistant=none
|
||||||
|
|
||||||
hook global ModuleLoaded wayland %{
|
|
||||||
set-option global termcmd 'foot sh -c'
|
|
||||||
}
|
|
||||||
|
|
||||||
hook global WinCreate .* %{
|
hook global WinCreate .* %{
|
||||||
add-highlighter window/number-lines number-lines -relative -hlcursor -min-digits 3
|
add-highlighter window/number-lines number-lines -relative -hlcursor
|
||||||
}
|
}
|
||||||
|
add-highlighter global/ show-matching
|
||||||
hook global BufCreate .*\.templ %{ set buffer filetype templ }
|
|
||||||
hook global BufCreate .*\.html.tmpl %{ set buffer filetype gotmpl }
|
|
||||||
|
|
||||||
hook global WinCreate ^[^*]+$ %{editorconfig-load}
|
|
||||||
|
|
||||||
# LOCAL
|
# LOCAL
|
||||||
|
|
||||||
@@ -42,15 +34,6 @@ map global -docstring 'Grep previous match' file-mode 'p' ': grep-prev-match<ret
|
|||||||
map global -docstring 'Grep current file' file-mode 'l' ':grep-file '
|
map global -docstring 'Grep current file' file-mode 'l' ':grep-file '
|
||||||
map global -docstring 'Grep current file' file-mode 'L' ': grep-file %val{selection}<ret>'
|
map global -docstring 'Grep current file' file-mode 'L' ': grep-file %val{selection}<ret>'
|
||||||
map global -docstring 'Delete buffer' file-mode 'x' ': delete-buffer '
|
map global -docstring 'Delete buffer' file-mode 'x' ': delete-buffer '
|
||||||
map global -docstring 'REPL send selection' file-mode 'u' ': repl-send-text<ret>'
|
|
||||||
map global -docstring 'REPL send paragraph' file-mode 'U' ': repl-send-paragraph<ret>'
|
|
||||||
|
|
||||||
declare-user-mode fossil-mode
|
|
||||||
map global -docstring 'Fossil' user 'f' ': enter-user-mode fossil-mode<ret>'
|
|
||||||
|
|
||||||
map global -docstring 'Open file' fossil-mode 'a' ': file-open-fossil<ret>'
|
|
||||||
map global -docstring 'Grep' fossil-mode 'g' ':fossil-grep '
|
|
||||||
map global -docstring 'ctags project symbols' fossil-mode 'w' ': ctags-project-fossil-symbols<ret>'
|
|
||||||
|
|
||||||
declare-user-mode git-mode
|
declare-user-mode git-mode
|
||||||
map global -docstring 'Git' user 'g' ': enter-user-mode git-mode<ret>'
|
map global -docstring 'Git' user 'g' ': enter-user-mode git-mode<ret>'
|
||||||
@@ -77,10 +60,6 @@ map global -docstring 'Options' user 'o' ': enter-user-mode options-mode<ret>'
|
|||||||
|
|
||||||
map global -docstring 'Five Dark mode' options-mode 'd' ': colorscheme five-colors-dark<ret>'
|
map global -docstring 'Five Dark mode' options-mode 'd' ': colorscheme five-colors-dark<ret>'
|
||||||
map global -docstring 'Five Light mode' options-mode 'l' ': colorscheme five-colors-light<ret>'
|
map global -docstring 'Five Light mode' options-mode 'l' ': colorscheme five-colors-light<ret>'
|
||||||
map global -docstring 'Five Alt Dark mode' options-mode 'a' ': colorscheme five-alt-colors-dark<ret>'
|
|
||||||
map global -docstring 'Five Alt Light mode' options-mode 'b' ': colorscheme five-alt-colors-light<ret>'
|
|
||||||
map global -docstring 'Fifteen Dark mode' options-mode 'D' ': colorscheme fifteen-colors-dark<ret>'
|
|
||||||
map global -docstring 'Fifteen Light mode' options-mode 'L' ': colorscheme fifteen-colors-light<ret>'
|
|
||||||
|
|
||||||
declare-user-mode make-mode
|
declare-user-mode make-mode
|
||||||
map global -docstring 'Make' user 'k' ': enter-user-mode make-mode<ret>'
|
map global -docstring 'Make' user 'k' ': enter-user-mode make-mode<ret>'
|
||||||
@@ -90,13 +69,6 @@ map global -docstring 'Next' make-mode 'n' ': make-next-error<ret>'
|
|||||||
map global -docstring 'Previous' make-mode 'p' ': make-previous-error<ret>'
|
map global -docstring 'Previous' make-mode 'p' ': make-previous-error<ret>'
|
||||||
map global -docstring 'General messages' make-mode 'g' ': set window make_error_pattern "^([^:\n]+):(\d+):(?:(\d+):)? ([^\n]+)?"<ret>'
|
map global -docstring 'General messages' make-mode 'g' ': set window make_error_pattern "^([^:\n]+):(\d+):(?:(\d+):)? ([^\n]+)?"<ret>'
|
||||||
|
|
||||||
declare-user-mode code-mode
|
|
||||||
map global -docstring 'Code' user 'c' ': enter-user-mode code-mode<ret>'
|
|
||||||
|
|
||||||
map global -docstring 'Comment block' code-mode 'b' ': comment-block<ret>'
|
|
||||||
map global -docstring 'Comment line' code-mode 'l' ': comment-line<ret>'
|
|
||||||
map global -docstring 'Format buffer' code-mode 'f' ': format-buffer<ret>'
|
|
||||||
|
|
||||||
evaluate-commands %sh{
|
evaluate-commands %sh{
|
||||||
if [ -n "$WAYLAND_DISPLAY" ]; then
|
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||||
echo "
|
echo "
|
||||||
@@ -129,16 +101,6 @@ define-command -override file-open-git %{
|
|||||||
prompt -menu -shell-script-candidates %{ git ls-files } 'File (git): ' %{ edit -- %val{text} }
|
prompt -menu -shell-script-candidates %{ git ls-files } 'File (git): ' %{ edit -- %val{text} }
|
||||||
}
|
}
|
||||||
|
|
||||||
define-command -override file-open-fossil %{
|
|
||||||
prompt -menu -shell-script-candidates %{ fossil ls } 'File (fossil): ' %{ edit -- %val{text} }
|
|
||||||
}
|
|
||||||
|
|
||||||
define-command -override fossil-grep -params 1- %{
|
|
||||||
evaluate-commands %sh{
|
|
||||||
printf '%s ' grep "$@" -- $(fossil ls)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
define-command -override file-open-recent %{
|
define-command -override file-open-recent %{
|
||||||
prompt -menu -shell-script-candidates %{ cat ~/.cache/kak-mru } 'File (recent): ' %{ edit -- %val{text} }
|
prompt -menu -shell-script-candidates %{ cat ~/.cache/kak-mru } 'File (recent): ' %{ edit -- %val{text} }
|
||||||
}
|
}
|
||||||
@@ -155,10 +117,6 @@ define-command -override open-create-in-dir %{
|
|||||||
execute-keys ': edit ' %sh{dirname "$kak_buffile"}/
|
execute-keys ': edit ' %sh{dirname "$kak_buffile"}/
|
||||||
}
|
}
|
||||||
|
|
||||||
define-command -override repl-send-paragraph %{
|
|
||||||
execute-keys -draft '<a-i>p: repl-send-text<ret>'
|
|
||||||
}
|
|
||||||
|
|
||||||
define-command git-log-show-current-commit %{
|
define-command git-log-show-current-commit %{
|
||||||
execute-keys ';<a-/>^commit\s[0-9a-f]+<ret>b'
|
execute-keys ';<a-/>^commit\s[0-9a-f]+<ret>b'
|
||||||
git show %val{selection}
|
git show %val{selection}
|
||||||
@@ -190,35 +148,18 @@ define-command -override ctags-project-symbols %{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
define-command -override ctags-project-fossil-symbols %{
|
|
||||||
prompt -menu -shell-script-candidates %{
|
|
||||||
fossil ls | xargs wc | awk '$1 > 0 && $3/$1 < 1024 { print $4 }' | xargs ctags -uo - -x | awk -f "$kak_config/scripts/projectsymbols.awk"
|
|
||||||
} 'Project symbols: ' %{
|
|
||||||
evaluate-commands %sh{ awk -f "$kak_config/scripts/projectsymbolscmd.awk" # "$kak_text" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
set-face global JumpLabel 'rgb:faf8f5,rgb:af8842+F'
|
set-face global JumpLabel 'rgb:faf8f5,rgb:af8842+F'
|
||||||
|
|
||||||
# CHANGE CURSOR IN INSERT MODE
|
# CHANGE STATUS BAR COLOR IN INSERT MODE
|
||||||
|
|
||||||
hook global ModeChange (push|pop):.*:insert %{
|
hook global ModeChange push:.*:insert %{
|
||||||
set-face window PrimarySelection rgb:000000,green+F
|
set-face window StatusLine 'default,rgb:04785d'
|
||||||
set-face window SecondarySelection rgb:000000,blue+F
|
set-option window idle_timeout 500
|
||||||
set-face window PrimaryCursor rgb:000000,bright-green+bF
|
|
||||||
set-face window SecondaryCursor rgb:000000,bright-blue+bF
|
|
||||||
set-face window PrimaryCursorEol rgb:000000,bright-red+bF
|
|
||||||
set-face window SecondaryCursorEol rgb:000000,bright-yellow+bF
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Undo colour changes when we leave insert mode.
|
hook global ModeChange pop:insert:.* %{
|
||||||
hook global ModeChange (push|pop):insert:.* %{
|
unset-face window StatusLine
|
||||||
unset-face window PrimarySelection
|
unset-option window idle_timeout
|
||||||
unset-face window SecondarySelection
|
|
||||||
unset-face window PrimaryCursor
|
|
||||||
unset-face window SecondaryCursor
|
|
||||||
unset-face window PrimaryCursorEol
|
|
||||||
unset-face window SecondaryCursorEol
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ODIN
|
# ODIN
|
||||||
@@ -287,54 +228,12 @@ bundle match 'https://github.com/kmafeni04/match.kak' %{
|
|||||||
map global match U ': match-surround-redo<ret>' -docstring "Redo"
|
map global match U ': match-surround-redo<ret>' -docstring "Redo"
|
||||||
}
|
}
|
||||||
|
|
||||||
# LIVE GREP
|
|
||||||
|
|
||||||
bundle live-grep https://codeberg.org/raiguard/kak-live-grep %{
|
|
||||||
map global -docstring 'Live grep' file-mode g ': live-grep<ret>'
|
|
||||||
map global -docstring 'Live grep (selection)' file-mode 'G' ': live-grep %val{selection}<ret>'
|
|
||||||
}
|
|
||||||
|
|
||||||
# FZF
|
|
||||||
|
|
||||||
bundle fzf https://github.com/andreyorst/fzf.kak %{
|
|
||||||
map global user u ': fzf-mode<ret>' -docstring 'Fzf'
|
|
||||||
|
|
||||||
hook global ModuleLoaded fzf %{
|
|
||||||
define-command -hidden fzf-git-grep %{
|
|
||||||
set local fzf_grep_command "git grep -n ''"
|
|
||||||
fzf-grep
|
|
||||||
}
|
|
||||||
define-command -hidden fzf-file-grep %{
|
|
||||||
set local fzf_grep_command "grep -Hn '' %val{buffile}"
|
|
||||||
set local fzf_grep_preview false
|
|
||||||
fzf-grep
|
|
||||||
}
|
|
||||||
define-command -hidden fzf-file-dir-grep %{
|
|
||||||
set local fzf_grep_command "grep -RHn '' %sh{dirname ""$kak_buffile""}"
|
|
||||||
fzf-grep
|
|
||||||
}
|
|
||||||
map -docstring 'git grep' global fzf G ': require-module fzf-grep; fzf-git-grep<ret>'
|
|
||||||
map -docstring 'file grep' global fzf l ': require-module fzf-grep; fzf-file-grep<ret>'
|
|
||||||
map -docstring 'file dir grep' global fzf d ': require-module fzf-grep; fzf-file-dir-grep<ret>'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# HARPOON
|
# HARPOON
|
||||||
|
|
||||||
bundle kak-harpoon 'https://codeberg.org/raiguard/kak-harpoon' %{
|
bundle kak-harpoon 'https://codeberg.org/raiguard/kak-harpoon' %{
|
||||||
harpoon-add-bindings
|
harpoon-add-bindings
|
||||||
}
|
}
|
||||||
|
|
||||||
# TREE SITTER
|
|
||||||
|
|
||||||
eval %sh{ kak-tree-sitter -dks --init $kak_session }
|
|
||||||
|
|
||||||
map global -docstring 'Tree-sitter' user 't' ': enter-user-mode tree-sitter<ret>'
|
|
||||||
|
|
||||||
define-command -override tree-sitter-user-after-highlighter %{
|
|
||||||
add-highlighter -override buffer/show-matching show-matching
|
|
||||||
}
|
|
||||||
|
|
||||||
# LOCAL
|
# LOCAL
|
||||||
|
|
||||||
define-command set-dark-or-light-colorscheme %{
|
define-command set-dark-or-light-colorscheme %{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
for (i = 3; i < NF; ++i) {
|
for (i = 3; i < NF; ++i) {
|
||||||
if ($i ~ /^[0-9]+$/) {
|
if ($i ~ /^[0-9]+$/) {
|
||||||
j = match($0, "[ ]+" $(i-1) "[ ]+" $i " ")
|
j = match($0, "[ ]+" $(i-1) "[ ]+" $i " ")
|
||||||
print substr($0, 0, j - 1) "·" $(i-1) "·" $i
|
print substr($0, 0, j - 1) "\u00a0" $(i-1) "\u00a0" $i
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
BEGIN {
|
BEGIN {
|
||||||
n = split(ENVIRON["kak_text"], a, "·")
|
n = split(ENVIRON["kak_text"], a, "\u00a0")
|
||||||
line = a[3]
|
line = a[3]
|
||||||
if (n == 3 && line ~ /^[0-9]+/) {
|
if (n == 3 && line ~ /^[0-9]+/) {
|
||||||
pat = a[1]
|
pat = a[1]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
for (i = 3; i < NF; ++i) {
|
for (i = 3; i < NF; ++i) {
|
||||||
if ($i ~ /^[0-9]+$/) {
|
if ($i ~ /^[0-9]+$/) {
|
||||||
j = match($0, "[ ]+" $(i-1) "[ ]+" $i " ")
|
j = match($0, "[ ]+" $(i-1) "[ ]+" $i " ")
|
||||||
print substr($0, 0, j - 1) "·" $(i-1) "·" $i "·" $(i+1)
|
print substr($0, 0, j - 1) "\u00a0" $(i-1) "\u00a0" $i "\u00a0" $(i+1)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
BEGIN {
|
BEGIN {
|
||||||
n = split(ENVIRON["kak_text"], a, "·")
|
n = split(ENVIRON["kak_text"], a, "\u00a0")
|
||||||
line = a[3]
|
line = a[3]
|
||||||
if (n == 4 && line ~ /^[0-9]+/) {
|
if (n == 4 && line ~ /^[0-9]+/) {
|
||||||
pat = a[1]
|
pat = a[1]
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
/bin/zsh
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
PATH="$PATH:$HOME/.config/lazygit/bin" exec /usr/bin/lazygit "$@"
|
|
||||||
@@ -11,6 +11,3 @@ gui:
|
|||||||
theme:
|
theme:
|
||||||
selectedLineBgColor:
|
selectedLineBgColor:
|
||||||
- reverse
|
- reverse
|
||||||
|
|
||||||
git:
|
|
||||||
autoFetch: false
|
|
||||||
@@ -1,40 +1,27 @@
|
|||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
void show(char *prefix, struct tm *tm)
|
void show(struct tm *tm)
|
||||||
{
|
{
|
||||||
char s[6];
|
char s[6];
|
||||||
strftime(s, sizeof(s), "%H:%M", tm);
|
strftime(s, sizeof(s), "%H:%M", tm);
|
||||||
printf("%s%s\n", prefix, s);
|
printf("%s\n", s);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main() {
|
||||||
int h, m, init = 60, opt;
|
int h, m, init = 60;
|
||||||
time_t t;
|
time_t t;
|
||||||
struct tm *tm;
|
struct tm *tm;
|
||||||
char *prefix = "";
|
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "p:")) != -1) {
|
|
||||||
switch (opt) {
|
|
||||||
case 'p':
|
|
||||||
prefix = optarg;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
fprintf(stderr, "Usage: %s [-p PREFIX]\n", argv[0]);
|
|
||||||
exit(EXIT_FAILURE);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
t = time(NULL);
|
t = time(NULL);
|
||||||
tm = localtime(&t);
|
tm = localtime(&t);
|
||||||
if (tm->tm_hour != h || tm->tm_min != m || init > 0) {
|
if (tm->tm_hour != h || tm->tm_min != m || init > 0) {
|
||||||
show(prefix, tm);
|
show(tm);
|
||||||
h = tm->tm_hour;
|
h = tm->tm_hour;
|
||||||
m = tm->tm_min;
|
m = tm->tm_min;
|
||||||
init = (init > 0) ? init - 1 : 0;
|
init = (init > 0) ? init - 1 : 0;
|
||||||
|
|||||||
@@ -1,312 +0,0 @@
|
|||||||
# More option see https://mangowm.github.io/docs/configuration
|
|
||||||
|
|
||||||
exec-once=waybar
|
|
||||||
exec-once=openrc -q -U gui
|
|
||||||
|
|
||||||
# Window effect
|
|
||||||
blur=0
|
|
||||||
blur_layer=0
|
|
||||||
blur_optimized=1
|
|
||||||
blur_params_num_passes = 2
|
|
||||||
blur_params_radius = 5
|
|
||||||
blur_params_noise = 0.02
|
|
||||||
blur_params_brightness = 0.9
|
|
||||||
blur_params_contrast = 0.9
|
|
||||||
blur_params_saturation = 1.2
|
|
||||||
|
|
||||||
shadows = 0
|
|
||||||
layer_shadows = 0
|
|
||||||
shadow_only_floating = 1
|
|
||||||
shadows_size = 10
|
|
||||||
shadows_blur = 15
|
|
||||||
shadows_position_x = 0
|
|
||||||
shadows_position_y = 0
|
|
||||||
shadowscolor= 0x000000ff
|
|
||||||
|
|
||||||
border_radius=6
|
|
||||||
no_radius_when_single=0
|
|
||||||
focused_opacity=1.0
|
|
||||||
unfocused_opacity=1.0
|
|
||||||
|
|
||||||
# Animation Configuration(support type:zoom,slide)
|
|
||||||
# tag_animation_direction: 1-horizontal,0-vertical
|
|
||||||
animations=0
|
|
||||||
layer_animations=1
|
|
||||||
animation_type_open=slide
|
|
||||||
animation_type_close=slide
|
|
||||||
animation_fade_in=1
|
|
||||||
animation_fade_out=1
|
|
||||||
tag_animation_direction=1
|
|
||||||
zoom_initial_ratio=0.4
|
|
||||||
zoom_end_ratio=0.8
|
|
||||||
fadein_begin_opacity=0.5
|
|
||||||
fadeout_begin_opacity=0.8
|
|
||||||
animation_duration_move=500
|
|
||||||
animation_duration_open=400
|
|
||||||
animation_duration_tag=350
|
|
||||||
animation_duration_close=800
|
|
||||||
animation_duration_focus=0
|
|
||||||
animation_curve_open=0.46,1.0,0.29,1
|
|
||||||
animation_curve_move=0.46,1.0,0.29,1
|
|
||||||
animation_curve_tag=0.46,1.0,0.29,1
|
|
||||||
animation_curve_close=0.08,0.92,0,1
|
|
||||||
animation_curve_focus=0.46,1.0,0.29,1
|
|
||||||
animation_curve_opafadeout=0.5,0.5,0.5,0.5
|
|
||||||
animation_curve_opafadein=0.46,1.0,0.29,1
|
|
||||||
|
|
||||||
# Scroller Layout Setting
|
|
||||||
scroller_structs=20
|
|
||||||
scroller_default_proportion=0.8
|
|
||||||
scroller_focus_center=0
|
|
||||||
scroller_prefer_center=0
|
|
||||||
edge_scroller_pointer_focus=1
|
|
||||||
edge_scroller_focus_allow_speed=0.0
|
|
||||||
scroller_default_proportion_single=1.0
|
|
||||||
scroller_proportion_preset=0.5,0.8,1.0
|
|
||||||
|
|
||||||
# Master-Stack Layout Setting
|
|
||||||
new_is_master=1
|
|
||||||
default_mfact=0.55
|
|
||||||
default_nmaster=1
|
|
||||||
smartgaps=0
|
|
||||||
|
|
||||||
# Dwindle Layout Setting
|
|
||||||
dwindle_smart_split=0
|
|
||||||
dwindle_drop_simple_split=1
|
|
||||||
dwindle_manual_split=0
|
|
||||||
dwindle_hsplit=1
|
|
||||||
dwindle_vsplit=1
|
|
||||||
dwindle_preserve_split=0
|
|
||||||
|
|
||||||
# Overview Setting
|
|
||||||
hotarea_size=10
|
|
||||||
enable_hotarea=0
|
|
||||||
ov_tab_mode=1
|
|
||||||
ov_no_resize=1
|
|
||||||
overviewgappi=5
|
|
||||||
overviewgappo=30
|
|
||||||
|
|
||||||
# Misc
|
|
||||||
no_border_when_single=0
|
|
||||||
axis_bind_apply_timeout=100
|
|
||||||
focus_on_activate=1
|
|
||||||
idleinhibit_ignore_visible=0
|
|
||||||
sloppyfocus=1
|
|
||||||
warpcursor=1
|
|
||||||
focus_cross_monitor=0
|
|
||||||
focus_cross_tag=0
|
|
||||||
enable_floating_snap=0
|
|
||||||
snap_distance=30
|
|
||||||
cursor_size=24
|
|
||||||
cursor_theme=breeze_cursors
|
|
||||||
drag_tile_to_tile=1
|
|
||||||
drag_tile_small=1
|
|
||||||
|
|
||||||
# keyboard
|
|
||||||
repeat_rate=25
|
|
||||||
repeat_delay=600
|
|
||||||
numlockon=0
|
|
||||||
xkb_rules_layout=pl
|
|
||||||
|
|
||||||
# Trackpad
|
|
||||||
# need relogin to make it apply
|
|
||||||
disable_trackpad=0
|
|
||||||
tap_to_click=1
|
|
||||||
tap_and_drag=1
|
|
||||||
drag_lock=1
|
|
||||||
trackpad_natural_scrolling=0
|
|
||||||
disable_while_typing=1
|
|
||||||
left_handed=0
|
|
||||||
middle_button_emulation=0
|
|
||||||
swipe_min_threshold=1
|
|
||||||
|
|
||||||
# mouse
|
|
||||||
# need relogin to make it apply
|
|
||||||
mouse_natural_scrolling=0
|
|
||||||
|
|
||||||
# Appearance
|
|
||||||
gappih=2
|
|
||||||
gappiv=2
|
|
||||||
gappoh=0
|
|
||||||
gappov=0
|
|
||||||
scratchpad_width_ratio=0.8
|
|
||||||
scratchpad_height_ratio=0.9
|
|
||||||
borderpx=4
|
|
||||||
rootcolor=0x201b14ff
|
|
||||||
bordercolor=0x444444ff
|
|
||||||
dropcolor=0x8FBA7C55
|
|
||||||
splitcolor=0xEB441EFF
|
|
||||||
focuscolor=0xc9b890ff
|
|
||||||
maximizescreencolor=0x89aa61ff
|
|
||||||
urgentcolor=0xad401fff
|
|
||||||
scratchpadcolor=0x516c93ff
|
|
||||||
globalcolor=0xb153a7ff
|
|
||||||
overlaycolor=0x14a57cff
|
|
||||||
|
|
||||||
# layout support:
|
|
||||||
# tile,scroller,grid,deck,monocle,center_tile,vertical_tile,vertical_scroller
|
|
||||||
tagrule=id:1,layout_name:tile
|
|
||||||
tagrule=id:2,layout_name:tile
|
|
||||||
tagrule=id:3,layout_name:tile
|
|
||||||
tagrule=id:4,layout_name:tile
|
|
||||||
tagrule=id:5,layout_name:tile
|
|
||||||
tagrule=id:6,layout_name:tile
|
|
||||||
tagrule=id:7,layout_name:tile
|
|
||||||
tagrule=id:8,layout_name:tile
|
|
||||||
tagrule=id:9,layout_name:tile
|
|
||||||
|
|
||||||
# Key Bindings
|
|
||||||
# key name refer to `xev` or `wev` command output,
|
|
||||||
# mod keys name: super,ctrl,alt,shift,none
|
|
||||||
|
|
||||||
# reload config
|
|
||||||
bind=SUPER,r,reload_config
|
|
||||||
|
|
||||||
# menu and terminal
|
|
||||||
bind=SUPER,p,spawn,rofi -show drun
|
|
||||||
bind=SUPER,Return,spawn,foot
|
|
||||||
|
|
||||||
# lock and toggle theme
|
|
||||||
bind=SUPER+CTRL+SHIFT,l,spawn,swaylock
|
|
||||||
bind=SUPER+CTRL+SHIFT,t,spawn,lupan-set-theme toggle
|
|
||||||
|
|
||||||
# exit
|
|
||||||
bind=SUPER+SHIFT,q,quit
|
|
||||||
bind=SUPER+SHIFT,c,killclient,
|
|
||||||
|
|
||||||
# switch window focus
|
|
||||||
bind=SUPER,Tab,focusstack,next
|
|
||||||
bind=SUPER,h,focusdir,left
|
|
||||||
bind=SUPER,l,focusdir,right
|
|
||||||
bind=SUPER,k,focusdir,up
|
|
||||||
bind=SUPER,j,focusdir,down
|
|
||||||
|
|
||||||
# swap window
|
|
||||||
bind=SUPER+SHIFT,k,exchange_client,up
|
|
||||||
bind=SUPER+SHIFT,j,exchange_client,down
|
|
||||||
bind=SUPER+SHIFT,h,exchange_client,left
|
|
||||||
bind=SUPER+SHIFT,l,exchange_client,right
|
|
||||||
|
|
||||||
# switch window status
|
|
||||||
bind=SUPER,g,toggleglobal,
|
|
||||||
bind=SUPER,Tab,toggleoverview,
|
|
||||||
bind=SUPER,backslash,togglefloating,
|
|
||||||
bind=SUPER,m,togglemaximizescreen,
|
|
||||||
bind=SUPER,f,togglefullscreen,
|
|
||||||
bind=SUPER+SHIFT,f,togglefakefullscreen,
|
|
||||||
bind=SUPER,i,minimized,
|
|
||||||
bind=SUPER,o,toggleoverlay,
|
|
||||||
bind=SUPER+SHIFT,I,restore_minimized
|
|
||||||
bind=SUPER,z,toggle_scratchpad
|
|
||||||
|
|
||||||
# scroller layout
|
|
||||||
bind=SUPER,e,set_proportion,1.0
|
|
||||||
bind=SUPER,x,switch_proportion_preset,
|
|
||||||
bind=alt+super+ctrl,Left,scroller_stack,left
|
|
||||||
bind=alt+super+ctrl,Right,scroller_stack,right
|
|
||||||
bind=alt+super+ctrl,Up,scroller_stack,up
|
|
||||||
bind=alt+super+ctrl,Down,scroller_stack,down
|
|
||||||
|
|
||||||
#dwindle layout(manual split mode)
|
|
||||||
bind=SUPER+shift,Return,dwindle_toggle_split_direction
|
|
||||||
|
|
||||||
# switch layout
|
|
||||||
bind=SUPER,n,switch_layout
|
|
||||||
bind=SUPER+CTRL,c,setlayout,center_tile
|
|
||||||
bind=SUPER+CTRL,d,setlayout,deck
|
|
||||||
bind=SUPER+CTRL,e,setlayout,vertical_deck
|
|
||||||
bind=SUPER+CTRL,f,setlayout,fair
|
|
||||||
bind=SUPER+CTRL,g,setlayout,grid
|
|
||||||
bind=SUPER+CTRL,i,setlayout,vertical_fair
|
|
||||||
bind=SUPER+CTRL,r,setlayout,right_tile
|
|
||||||
bind=SUPER+CTRL,s,setlayout,scroller
|
|
||||||
bind=SUPER+CTRL,t,setlayout,tile
|
|
||||||
bind=SUPER+CTRL,u,setlayout,vertical_scroller
|
|
||||||
bind=SUPER+CTRL,v,setlayout,vertical_tile
|
|
||||||
bind=SUPER+CTRL,w,setlayout,dwindle
|
|
||||||
|
|
||||||
# tag switch
|
|
||||||
bind=SUPER,Left,viewtoleft,0
|
|
||||||
bind=SUPER+CTRL,Left,viewtoleft_have_client,0
|
|
||||||
bind=SUPER,Right,viewtoright,0
|
|
||||||
bind=SUPER+CTRL,Right,viewtoright_have_client,0
|
|
||||||
bind=CTRL+SHIFT+SUPER,Left,tagtoleft,0
|
|
||||||
bind=CTRL+SHIFT+SUPER,Right,tagtoright,0
|
|
||||||
|
|
||||||
bind=SUPER+Alt,h,viewtoleft_have_client,0
|
|
||||||
bind=SUPER+Alt,l,viewtoright_have_client,0
|
|
||||||
|
|
||||||
bind=SUPER,1,view,1,0
|
|
||||||
bind=SUPER,2,view,2,0
|
|
||||||
bind=SUPER,3,view,3,0
|
|
||||||
bind=SUPER,4,view,4,0
|
|
||||||
bind=SUPER,5,view,5,0
|
|
||||||
bind=SUPER,6,view,6,0
|
|
||||||
bind=SUPER,7,view,7,0
|
|
||||||
bind=SUPER,8,view,8,0
|
|
||||||
bind=SUPER,9,view,9,0
|
|
||||||
|
|
||||||
# tag: move client to the tag and focus it
|
|
||||||
# tagsilent: move client to the tag and not focus it
|
|
||||||
# bind=Alt,1,tagsilent,1
|
|
||||||
bind=SUPER+shift,1,tag,1,0
|
|
||||||
bind=SUPER+shift,2,tag,2,0
|
|
||||||
bind=SUPER+shift,3,tag,3,0
|
|
||||||
bind=SUPER+shift,4,tag,4,0
|
|
||||||
bind=SUPER+shift,5,tag,5,0
|
|
||||||
bind=SUPER+shift,6,tag,6,0
|
|
||||||
bind=SUPER+shift,7,tag,7,0
|
|
||||||
bind=SUPER+shift,8,tag,8,0
|
|
||||||
bind=SUPER+shift,9,tag,9,0
|
|
||||||
|
|
||||||
# monitor switch
|
|
||||||
bind=SUPER+alt+shift,Left,focusmon,left
|
|
||||||
bind=SUPER+alt+shift,Right,focusmon,right
|
|
||||||
bind=SUPER+Alt,Left,tagmon,left
|
|
||||||
bind=SUPER+Alt,Right,tagmon,right
|
|
||||||
|
|
||||||
bind=SUPER,comma,focusmon,left
|
|
||||||
bind=SUPER,period,focusmon,right
|
|
||||||
bind=SUPER+shift,comma,tagmon,left
|
|
||||||
bind=SUPER+shift,period,tagmon,right
|
|
||||||
|
|
||||||
# gaps
|
|
||||||
bind=SUPER+SHIFT,X,incgaps,1
|
|
||||||
bind=SUPER+SHIFT,Z,incgaps,-1
|
|
||||||
bind=SUPER+SHIFT,R,togglegaps
|
|
||||||
|
|
||||||
# movewin
|
|
||||||
bind=SUPER+CTRL,k,movewin,+0,-50
|
|
||||||
bind=SUPER+CTRL,j,movewin,+0,+50
|
|
||||||
bind=SUPER+CTRL,h,movewin,-50,+0
|
|
||||||
bind=SUPER+CTRL,l,movewin,+50,+0
|
|
||||||
|
|
||||||
# resizewin
|
|
||||||
bind=SUPER+CTRL+ALT,Up,resizewin,+0,-50
|
|
||||||
bind=SUPER+CTRL+ALT,Down,resizewin,+0,+50
|
|
||||||
bind=SUPER+CTRL+ALT,Left,resizewin,-50,+0
|
|
||||||
bind=SUPER+CTRL+ALT,Right,resizewin,+50,+0
|
|
||||||
|
|
||||||
bind=SUPER+CTRL+ALT,k,resizewin,+0,-50
|
|
||||||
bind=SUPER+CTRL+ALT,j,resizewin,+0,+50
|
|
||||||
bind=SUPER+CTRL+ALT,h,resizewin,-50,+0
|
|
||||||
bind=SUPER+CTRL+ALT,l,resizewin,+50,+0
|
|
||||||
|
|
||||||
# Mouse Button Bindings
|
|
||||||
# btn_left and btn_right can't bind none mod key
|
|
||||||
mousebind=SUPER,btn_left,moveresize,curmove
|
|
||||||
mousebind=NONE,btn_middle,togglemaximizescreen,0
|
|
||||||
mousebind=SUPER,btn_right,moveresize,curresize
|
|
||||||
|
|
||||||
|
|
||||||
# Axis Bindings
|
|
||||||
axisbind=SUPER,UP,viewtoleft_have_client
|
|
||||||
axisbind=SUPER,DOWN,viewtoright_have_client
|
|
||||||
|
|
||||||
|
|
||||||
# layer rule
|
|
||||||
layerrule=animation_type_open:zoom,layer_name:rofi
|
|
||||||
layerrule=animation_type_close:zoom,layer_name:rofi
|
|
||||||
|
|
||||||
monitorrule=name:^HDMI-A-1$,scale:2,x:0
|
|
||||||
monitorrule=name:^HDMI-A-2$,scale:2,x:1920
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"modules-left": [
|
|
||||||
"ext/workspaces",
|
|
||||||
"dwl/window"
|
|
||||||
],
|
|
||||||
"modules-right": [
|
|
||||||
"tray",
|
|
||||||
"clock"
|
|
||||||
],
|
|
||||||
"ext/workspaces": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"ignore-hidden": true,
|
|
||||||
"on-click": "activate",
|
|
||||||
"on-click-right": "deactivate",
|
|
||||||
"sort-by-id": true
|
|
||||||
},
|
|
||||||
"dwl/window": {
|
|
||||||
"format": "[{layout}] {title}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
* {
|
|
||||||
background-color: #282e38;
|
|
||||||
color: #a29e98;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active {
|
|
||||||
border-bottom: 3px solid #04785d;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.urgent {
|
|
||||||
border-bottom: 3px solid #c37583;
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
* {
|
|
||||||
background-color: #f6ede0;
|
|
||||||
color: #696257;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active {
|
|
||||||
border-bottom: 3px solid #278a6e;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.urgent {
|
|
||||||
border-bottom: 3px solid #d0818f;
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
@import url("file:///home/lupan/.config/waybar/dark.css");
|
|
||||||
|
|
||||||
* {
|
|
||||||
font-family: HurmitNerdFont;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces {
|
|
||||||
padding: 0 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
padding: 0 3px;
|
|
||||||
border-radius: 0;
|
|
||||||
border-bottom: 3px solid transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#window {
|
|
||||||
border-bottom: 3px solid transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock {
|
|
||||||
padding: 0 0.5rem;
|
|
||||||
border-bottom: 3px solid transparent;
|
|
||||||
}
|
|
||||||
@@ -1,216 +0,0 @@
|
|||||||
import libqtile.resources
|
|
||||||
from libqtile import bar, layout, qtile, widget
|
|
||||||
from libqtile.config import Click, Drag, Group, Key, KeyChord, Match, Output, Screen
|
|
||||||
from libqtile.lazy import lazy
|
|
||||||
from libqtile.utils import guess_terminal
|
|
||||||
|
|
||||||
mod = "mod4"
|
|
||||||
terminal = guess_terminal()
|
|
||||||
|
|
||||||
keys = [
|
|
||||||
# A list of available commands that can be bound to keys can be found
|
|
||||||
# at https://docs.qtile.org/en/latest/manual/config/lazy.html
|
|
||||||
# Switch between windows
|
|
||||||
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"),
|
|
||||||
Key([mod], "l", lazy.layout.right(), desc="Move focus to right"),
|
|
||||||
Key([mod], "j", lazy.layout.down(), desc="Move focus down"),
|
|
||||||
Key([mod], "k", lazy.layout.up(), desc="Move focus up"),
|
|
||||||
Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"),
|
|
||||||
# Move windows between left/right columns or move up/down in current stack.
|
|
||||||
# Moving out of range in Columns layout will create new column.
|
|
||||||
Key([mod, "shift"], "h", lazy.layout.shuffle_left(), desc="Move window to the left"),
|
|
||||||
Key([mod, "shift"], "l", lazy.layout.shuffle_right(), desc="Move window to the right"),
|
|
||||||
Key([mod, "shift"], "j", lazy.layout.shuffle_down(), desc="Move window down"),
|
|
||||||
Key([mod, "shift"], "k", lazy.layout.shuffle_up(), desc="Move window up"),
|
|
||||||
# Grow windows. If current window is on the edge of screen and direction
|
|
||||||
# will be to screen edge - window would shrink.
|
|
||||||
Key([mod, "control"], "h", lazy.layout.grow_left(), desc="Grow window to the left"),
|
|
||||||
Key([mod, "control"], "l", lazy.layout.grow_right(), desc="Grow window to the right"),
|
|
||||||
Key([mod, "control"], "j", lazy.layout.grow_down(), desc="Grow window down"),
|
|
||||||
Key([mod, "control"], "k", lazy.layout.grow_up(), desc="Grow window up"),
|
|
||||||
Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),
|
|
||||||
# Toggle between split and unsplit sides of stack.
|
|
||||||
# Split = all windows displayed
|
|
||||||
# Unsplit = 1 window displayed, like Max layout, but still with
|
|
||||||
# multiple stack panes
|
|
||||||
Key(
|
|
||||||
[mod, "shift"],
|
|
||||||
"Return",
|
|
||||||
lazy.layout.toggle_split(),
|
|
||||||
desc="Toggle between split and unsplit sides of stack",
|
|
||||||
),
|
|
||||||
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
|
|
||||||
# Toggle between different layouts as defined below
|
|
||||||
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
|
|
||||||
Key([mod], "p", lazy.spawncmd(), desc="Spawn a command using a prompt widget"),
|
|
||||||
KeyChord([mod], "semicolon", [
|
|
||||||
Key(
|
|
||||||
[],
|
|
||||||
"f",
|
|
||||||
lazy.window.toggle_fullscreen(),
|
|
||||||
desc="Toggle fullscreen on the focused window",
|
|
||||||
),
|
|
||||||
Key(["control"], "w", lazy.window.kill(), desc="Kill focused window"),
|
|
||||||
Key(["control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
|
|
||||||
Key(["control"], "r", lazy.reload_config(), desc="Reload the config"),
|
|
||||||
Key([], "t", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"),
|
|
||||||
]),
|
|
||||||
]
|
|
||||||
|
|
||||||
# Add key bindings to switch VTs in Wayland.
|
|
||||||
# We can't check qtile.core.name in default config as it is loaded before qtile is started
|
|
||||||
# We therefore defer the check until the key binding is run by using .when(func=...)
|
|
||||||
for vt in range(1, 8):
|
|
||||||
keys.append(
|
|
||||||
Key(
|
|
||||||
["control", "mod1"],
|
|
||||||
f"f{vt}",
|
|
||||||
lazy.core.change_vt(vt).when(func=lambda: qtile.core.name == "wayland"),
|
|
||||||
desc=f"Switch to VT{vt}",
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
groups = [Group(i) for i in "qwertasdfgzxcvb"]
|
|
||||||
|
|
||||||
for i in groups:
|
|
||||||
keys.extend(
|
|
||||||
[
|
|
||||||
# mod + group number = switch to group
|
|
||||||
Key(
|
|
||||||
[mod],
|
|
||||||
i.name,
|
|
||||||
lazy.group[i.name].toscreen(),
|
|
||||||
desc=f"Switch to group {i.name}",
|
|
||||||
),
|
|
||||||
# mod + shift + group number = switch to & move focused window to group
|
|
||||||
Key(
|
|
||||||
[mod, "shift"],
|
|
||||||
i.name,
|
|
||||||
lazy.window.togroup(i.name, switch_group=True),
|
|
||||||
desc=f"Switch to & move focused window to group {i.name}",
|
|
||||||
),
|
|
||||||
# Or, use below if you prefer not to switch to that group.
|
|
||||||
# # mod + shift + group number = move focused window to group
|
|
||||||
# Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
|
|
||||||
# desc="move focused window to group {}".format(i.name)),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
layouts = [
|
|
||||||
layout.Columns(border_focus_stack=["#d75f5f", "#8f3d3d"], border_width=4),
|
|
||||||
layout.Max(),
|
|
||||||
# Try more layouts by unleashing below layouts.
|
|
||||||
# layout.Stack(num_stacks=2),
|
|
||||||
# layout.Bsp(),
|
|
||||||
# layout.Matrix(),
|
|
||||||
# layout.MonadTall(),
|
|
||||||
# layout.MonadWide(),
|
|
||||||
# layout.RatioTile(),
|
|
||||||
# layout.Tile(),
|
|
||||||
# layout.TreeTab(),
|
|
||||||
# layout.VerticalTile(),
|
|
||||||
# layout.Zoomy(),
|
|
||||||
]
|
|
||||||
|
|
||||||
widget_defaults = dict(
|
|
||||||
font="sans",
|
|
||||||
fontsize=24,
|
|
||||||
padding=3,
|
|
||||||
)
|
|
||||||
extension_defaults = widget_defaults.copy()
|
|
||||||
|
|
||||||
def generate_screens(outputs: list[Output]) -> list[Screen]:
|
|
||||||
return [
|
|
||||||
Screen(
|
|
||||||
top=bar.Bar(
|
|
||||||
[
|
|
||||||
widget.CurrentLayout(),
|
|
||||||
widget.GroupBox(),
|
|
||||||
widget.Prompt(),
|
|
||||||
widget.WindowName(),
|
|
||||||
widget.Chord(
|
|
||||||
chords_colors={
|
|
||||||
"launch": ("#ff0000", "#ffffff"),
|
|
||||||
},
|
|
||||||
name_transform=lambda name: name.upper(),
|
|
||||||
),
|
|
||||||
# NB Systray is incompatible with Wayland, consider using StatusNotifier instead
|
|
||||||
# widget.StatusNotifier(),
|
|
||||||
#widget.Systray(),
|
|
||||||
widget.Clock(format="%Y-%m-%d %a %H:%M"),
|
|
||||||
],
|
|
||||||
48,
|
|
||||||
# border_width=[2, 0, 2, 0], # Draw top and bottom borders
|
|
||||||
# border_color=["ff00ff", "000000", "ff00ff", "000000"] # Borders are magenta
|
|
||||||
),
|
|
||||||
background="#000000",
|
|
||||||
# You can uncomment this variable if you see that on X11 floating resize/moving is laggy
|
|
||||||
# By default we handle these events delayed to already improve performance, however your system might still be struggling
|
|
||||||
# This variable is set to None (no cap) by default, but you can set it to 60 to indicate that you limit it to 60 events per second
|
|
||||||
# x11_drag_polling_rate = 60,
|
|
||||||
)
|
|
||||||
for output in outputs
|
|
||||||
]
|
|
||||||
|
|
||||||
# Instead of screens, you can define a function here to specify which Screen
|
|
||||||
# should correspond to which Output.
|
|
||||||
fake_screens: list[Screen] | None = None
|
|
||||||
|
|
||||||
# Drag floating layouts.
|
|
||||||
mouse = [
|
|
||||||
Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
|
|
||||||
Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()),
|
|
||||||
Click([mod], "Button2", lazy.window.bring_to_front()),
|
|
||||||
]
|
|
||||||
|
|
||||||
dgroups_key_binder = None
|
|
||||||
dgroups_app_rules = [] # type: list
|
|
||||||
follow_mouse_focus = True
|
|
||||||
bring_front_click = False
|
|
||||||
floats_kept_above = True
|
|
||||||
cursor_warp = False
|
|
||||||
floating_layout = layout.Floating(
|
|
||||||
float_rules=[
|
|
||||||
# Run the utility of `xprop` to see the wm class and name of an X client.
|
|
||||||
*layout.Floating.default_float_rules,
|
|
||||||
Match(wm_class="confirmreset"), # gitk
|
|
||||||
Match(wm_class="makebranch"), # gitk
|
|
||||||
Match(wm_class="maketag"), # gitk
|
|
||||||
Match(wm_class="ssh-askpass"), # ssh-askpass
|
|
||||||
Match(title="branchdialog"), # gitk
|
|
||||||
Match(title="pinentry"), # GPG key password entry
|
|
||||||
]
|
|
||||||
)
|
|
||||||
auto_fullscreen = True
|
|
||||||
focus_on_window_activation = "smart"
|
|
||||||
focus_previous_on_window_remove = False
|
|
||||||
reconfigure_screens = True
|
|
||||||
|
|
||||||
# How long (in seconds) to wait after a screen change event before firing the
|
|
||||||
# screen_change hook, coalescing bursts of events into a single one.
|
|
||||||
screen_change_debounce_timeout = 1
|
|
||||||
|
|
||||||
# If things like steam games want to auto-minimize themselves when losing
|
|
||||||
# focus, should we respect this or not?
|
|
||||||
auto_minimize = True
|
|
||||||
|
|
||||||
# When using the Wayland backend, this can be used to configure input devices.
|
|
||||||
wl_input_rules = None
|
|
||||||
|
|
||||||
# xcursor theme (string or None) and size (integer) for Wayland backend
|
|
||||||
wl_xcursor_theme = "breeze_cursors"
|
|
||||||
wl_xcursor_size = 24
|
|
||||||
|
|
||||||
idle_timers = [] # type: list
|
|
||||||
idle_inhibitors = [] # type: list
|
|
||||||
|
|
||||||
# XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this
|
|
||||||
# string besides java UI toolkits; you can see several discussions on the
|
|
||||||
# mailing lists, GitHub issues, and other WM documentation that suggest setting
|
|
||||||
# this string if your java app doesn't work correctly. We may as well just lie
|
|
||||||
# and say that we're a working one by default.
|
|
||||||
#
|
|
||||||
# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in
|
|
||||||
# java that happens to be on java's whitelist.
|
|
||||||
wmname = "LG3D"
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
alias k=kak
|
|
||||||
alias kc='kak -c "$(kak -l | kff)"'
|
|
||||||
alias kf='fd -t f | kff | xargs kd'
|
|
||||||
alias kh='fd -H -t f | kff | xargs kd'
|
|
||||||
alias lg=lazygit
|
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias z='cd $(fd -t d --one-file-system . ~ | kff)'
|
|
||||||
+1
-18
@@ -5,29 +5,12 @@
|
|||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
shopt -s histappend
|
alias ls='ls --color=auto'
|
||||||
PROMPT_COMMAND="history -a; history -n; $PROMPT_COMMAND"
|
|
||||||
|
|
||||||
PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m \$ '
|
PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m \$ '
|
||||||
|
|
||||||
if [ -e /usr/share/git/git-prompt.sh ]; then
|
|
||||||
source /usr/share/git/git-prompt.sh
|
|
||||||
GIT_PS1_SHOWDIRTYSTATE=1
|
|
||||||
PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m$(__git_ps1) \$ '
|
|
||||||
fi
|
|
||||||
|
|
||||||
HISTTIMEFORMAT='%F %R '
|
|
||||||
|
|
||||||
function before_command() { echo -ne '\e[2 q'; }
|
function before_command() { echo -ne '\e[2 q'; }
|
||||||
trap before_command DEBUG
|
trap before_command DEBUG
|
||||||
|
|
||||||
# Aliases.
|
|
||||||
for f in ~/.config/shellconfig/*.sh; do source "$f"; done
|
|
||||||
|
|
||||||
if [[ "$TERM" = st-256color ]]; then
|
|
||||||
tput smkx
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f /usr/share/bash-completion/bash_completion ]]; then
|
if [[ -f /usr/share/bash-completion/bash_completion ]]; then
|
||||||
. /usr/share/bash-completion/bash_completion
|
. /usr/share/bash-completion/bash_completion
|
||||||
fi
|
fi
|
||||||
@@ -1,42 +1,35 @@
|
|||||||
alias v=nvim
|
alias v=nvim
|
||||||
alias k=kak
|
alias k=kak
|
||||||
alias hs='history $HISTSIZE | rg'
|
alias kd='kak -s "$(basename $PWD)"'
|
||||||
alias kc='kak -c "$(kak -l | kff)"'
|
alias ll='ls -l'
|
||||||
alias kf='fd -t f | kff | xargs kd'
|
|
||||||
alias kh='fd -H -t f | kff | xargs kd'
|
|
||||||
alias ll='ls -l --color=auto'
|
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias tl='tmux list-sessions'
|
alias tl='tmux list-sessions'
|
||||||
alias rgh='rg -.'
|
alias rgh='rg -.'
|
||||||
alias fdh='fd -H'
|
alias fdh='fd -H'
|
||||||
alias lg=lazygit
|
alias lg=lazygit
|
||||||
alias z='cd $(fd -t d --one-file-system . ~ | kff)'
|
|
||||||
|
|
||||||
|
if alias st > /dev/null; then
|
||||||
|
alias gst='_vcs status'
|
||||||
|
unalias st
|
||||||
|
fi
|
||||||
|
if alias r > /dev/null; then
|
||||||
|
unalias r
|
||||||
|
fi
|
||||||
|
|
||||||
|
if which eza > /dev/null; then
|
||||||
|
alias ls='eza --icons'
|
||||||
|
alias tree='eza --tree --icons'
|
||||||
|
elif which exa > /dev/null; then
|
||||||
|
alias ls='exa --icons'
|
||||||
|
alias tree='exa --tree --icons'
|
||||||
|
else
|
||||||
eval $(dircolors)
|
eval $(dircolors)
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
fi
|
||||||
|
|
||||||
alias nocaps='setxkbmap pl -option ctrl:nocaps'
|
alias nocaps='setxkbmap pl -option ctrl:nocaps'
|
||||||
alias fixdp='xrandr --output DP-0 --right-of DP-2'
|
alias fixdp='xrandr --output DP-0 --right-of DP-2'
|
||||||
alias a4='COLORTERM=truecolor TERM=xterm-256color a4'
|
alias a4='COLORTERM=truecolor TERM=xterm-256color a4'
|
||||||
|
|
||||||
mon() {
|
|
||||||
local mon=$(KFF_DEFAULT_COMMAND='xrandr | grep -i "^[a-z]"' kff | awk '{print $1}')
|
|
||||||
local res=$(KFF_DEFAULT_COMMAND='echo "1920x1080\n2560x1440\n3840x2160"' kff)
|
|
||||||
local where=$(KFF_DEFAULT_COMMAND='echo "left-of\nright-of\nbelow\nabove\nsame-as"' kff)
|
|
||||||
local alt=$(KFF_DEFAULT_COMMAND='xrandr | grep -i "^[a-z]"' kff | awk '{print $1}')
|
|
||||||
xrandr --output "$mon" --mode "$res" "--$where" "$alt" --auto
|
|
||||||
}
|
|
||||||
|
|
||||||
zzz() {
|
|
||||||
sudo echo
|
|
||||||
if [[ -n "$WAYLAND_DISPLAY" ]]; then
|
|
||||||
swaylock &
|
|
||||||
else
|
|
||||||
slock &
|
|
||||||
fi
|
|
||||||
sleep 1
|
|
||||||
sudo /usr/bin/zzz
|
|
||||||
}
|
|
||||||
|
|
||||||
a4i() {
|
a4i() {
|
||||||
local Q="${@:-}"
|
local Q="${@:-}"
|
||||||
local NAME=$(a4 -l | grep '^ ' | fzy -q "$Q" | tr '\t' ' ' | cut -d' ' -f6-)
|
local NAME=$(a4 -l | grep '^ ' | fzy -q "$Q" | tr '\t' ' ' | cut -d' ' -f6-)
|
||||||
@@ -45,6 +38,12 @@ a4i() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kc() {
|
||||||
|
local Q="${@:-}"
|
||||||
|
local NAME=$(kak -l | fzy -q "$Q")
|
||||||
|
[ -n "$NAME" ] && kak -c "$NAME"
|
||||||
|
}
|
||||||
|
|
||||||
tn() {
|
tn() {
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
tmux new
|
tmux new
|
||||||
|
|||||||
@@ -2,11 +2,3 @@ alias hs='history -$HISTSIZE | rg'
|
|||||||
|
|
||||||
alias -s pdf=zathura
|
alias -s pdf=zathura
|
||||||
alias -s {jpg,jpeg,png}=sxiv
|
alias -s {jpg,jpeg,png}=sxiv
|
||||||
|
|
||||||
if alias st > /dev/null; then
|
|
||||||
alias gst='_vcs status'
|
|
||||||
unalias st
|
|
||||||
fi
|
|
||||||
if alias r > /dev/null; then
|
|
||||||
unalias r
|
|
||||||
fi
|
|
||||||
+6
-6
@@ -14,8 +14,6 @@ export EDITOR=kak
|
|||||||
export VISUAL=kak
|
export VISUAL=kak
|
||||||
|
|
||||||
export BAT_THEME='Catppuccin Frappe'
|
export BAT_THEME='Catppuccin Frappe'
|
||||||
export XDG_RUNTIME_DIR="$HOME/local/run"
|
|
||||||
export KFF_DEFAULT_COMMAND='fd -t f'
|
|
||||||
|
|
||||||
# if running bash
|
# if running bash
|
||||||
if [ -n "$BASH_VERSION" ]; then
|
if [ -n "$BASH_VERSION" ]; then
|
||||||
@@ -40,14 +38,12 @@ fi
|
|||||||
export GOPATH=~/.cache/go
|
export GOPATH=~/.cache/go
|
||||||
export GOBIN=~/.local/bin
|
export GOBIN=~/.local/bin
|
||||||
|
|
||||||
export ENV=~/.ashrc
|
|
||||||
|
|
||||||
# start X or Hyprland at login
|
# start X or Hyprland at login
|
||||||
if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; then
|
if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; then
|
||||||
if which /usr/bin/sx > /dev/null; then
|
if which /usr/bin/sx > /dev/null; then
|
||||||
exec /usr/bin/sx ~/.xinitrc
|
exec /usr/bin/sx ~/.xsession
|
||||||
elif which /usr/bin/startx > /dev/null; then
|
elif which /usr/bin/startx > /dev/null; then
|
||||||
exec /usr/bin/startx
|
exec /usr/bin/startx ~/.xsession
|
||||||
elif which niri > /dev/null; then
|
elif which niri > /dev/null; then
|
||||||
exec niri
|
exec niri
|
||||||
elif which river argen > /dev/null; then
|
elif which river argen > /dev/null; then
|
||||||
@@ -59,6 +55,10 @@ if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; then
|
|||||||
elif which river rill > /dev/null; then
|
elif which river rill > /dev/null; then
|
||||||
export XKB_DEFAULT_LAYOUT=pl
|
export XKB_DEFAULT_LAYOUT=pl
|
||||||
exec river -c rill
|
exec river -c rill
|
||||||
|
if which /usr/bin/sx > /dev/null; then
|
||||||
|
exec /usr/bin/sx ~/.xsession
|
||||||
|
elif which /usr/bin/startx > /dev/null; then
|
||||||
|
exec /usr/bin/startx ~/.xsession
|
||||||
elif which Hyprland > /dev/null && [ -d ~/.config/hypr ]; then
|
elif which Hyprland > /dev/null && [ -d ~/.config/hypr ]; then
|
||||||
exec Hyprland
|
exec Hyprland
|
||||||
elif which river > /dev/null && [ -d ~/.config/river ]; then
|
elif which river > /dev/null && [ -d ~/.config/river ]; then
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
socket_name=$(basename `pwd`)
|
|
||||||
socket_file=$(kak -l | grep "^$socket_name\$")
|
|
||||||
|
|
||||||
if [ -z "$socket_file" ]; then
|
|
||||||
setsid kak -d -s "$socket_name" &
|
|
||||||
sleep 0.5
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec kak -c "$socket_name" $@
|
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
#if HEIGHT >= 2160
|
#if HEIGHT >= 2160
|
||||||
Xft.dpi: 160
|
Xft.dpi: 160
|
||||||
Xcursor.size: 48
|
Xcursor.size: 48
|
||||||
Xcursor.theme: Vanilla-DMZ
|
|
||||||
polybar.height: 40
|
polybar.height: 40
|
||||||
#else
|
#else
|
||||||
Xft.dpi: 107
|
Xft.dpi: 107
|
||||||
@@ -57,7 +56,7 @@ XTerm.vt100.color14: #8FBCBB
|
|||||||
XTerm.vt100.color7: #E5E9F0
|
XTerm.vt100.color7: #E5E9F0
|
||||||
XTerm.vt100.color15: #ECEFF4
|
XTerm.vt100.color15: #ECEFF4
|
||||||
|
|
||||||
st.font: HurmitNerdFont:size=14
|
st.font: HurmitNerdFont:size=16
|
||||||
|
|
||||||
! kanagawa wave colors from https://github.com/rebelot/kanagawa.nvim/blob/master/extras/alacritty/kanagawa_wave.toml
|
! kanagawa wave colors from https://github.com/rebelot/kanagawa.nvim/blob/master/extras/alacritty/kanagawa_wave.toml
|
||||||
! dayfox colors from https://github.com/edeneast/nightfox.nvim/raw/main/extra/dayfox/alacritty.toml
|
! dayfox colors from https://github.com/edeneast/nightfox.nvim/raw/main/extra/dayfox/alacritty.toml
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ xset b off
|
|||||||
xrandr --auto
|
xrandr --auto
|
||||||
xrandr --output DP-0 --left-of DP-2 --primary
|
xrandr --output DP-0 --left-of DP-2 --primary
|
||||||
xrandr --output HDMI-0 --left-of DP-0
|
xrandr --output HDMI-0 --left-of DP-0
|
||||||
xrandr --output HDMI-A-0 --mode 3840x2160 --right-of eDP --auto
|
|
||||||
xrdb -merge ~/.Xresources -DHOME="$HOME"
|
xrdb -merge ~/.Xresources -DHOME="$HOME"
|
||||||
setxkbmap pl -option ctrl:nocaps
|
setxkbmap pl -option ctrl:nocaps
|
||||||
|
|
||||||
@@ -23,8 +23,8 @@ fi
|
|||||||
|
|
||||||
pkill -USR1 '^dwm$'
|
pkill -USR1 '^dwm$'
|
||||||
|
|
||||||
XRES=$(readlink -f ~/.Xresources)
|
XRES=$(readlink -e ~/.Xresources)
|
||||||
if [ -f "$XRES" ]; then
|
if [ -n "$XRES" ]; then
|
||||||
if [ "$THEME" = dark ]; then
|
if [ "$THEME" = dark ]; then
|
||||||
sed -i 's/^#undef THEME_DARK/#define THEME_DARK/' "$XRES"
|
sed -i 's/^#undef THEME_DARK/#define THEME_DARK/' "$XRES"
|
||||||
elif [ "$THEME" = light ]; then
|
elif [ "$THEME" = light ]; then
|
||||||
@@ -35,11 +35,11 @@ if [ -f "$XRES" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Alacritty
|
# Alacritty
|
||||||
AYML=$(readlink -f ~/.config/alacritty/alacritty.yml)
|
AYML=$(readlink -e ~/.config/alacritty/alacritty.yml)
|
||||||
if [ -f "$AYML" ]; then
|
if [ -n "$AYML" ]; then
|
||||||
sed -i "s/^colors: [*].*/colors: *$THEME/" "$AYML"
|
sed -i "s/^colors: [*].*/colors: *$THEME/" "$AYML"
|
||||||
fi
|
fi
|
||||||
ATOML=$(readlink -f ~/.config/alacritty/alacritty.toml)
|
ATOML=$(readlink -e ~/.config/alacritty/alacritty.toml)
|
||||||
if [ -f "$ATOML" ]; then
|
if [ -f "$ATOML" ]; then
|
||||||
sed -i "s#^import =.*#import = [\"~/.config/alacritty/$THEME.toml\"]#" "$ATOML"
|
sed -i "s#^import =.*#import = [\"~/.config/alacritty/$THEME.toml\"]#" "$ATOML"
|
||||||
fi
|
fi
|
||||||
@@ -52,30 +52,29 @@ elif [ "$THEME" = light ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Foot
|
# Foot
|
||||||
FOOT=$(readlink -f ~/.config/foot/foot.ini)
|
FOOT=$(readlink -e ~/.config/foot/foot.ini)
|
||||||
if [ -f "$FOOT" ]; then
|
if [ -n "$FOOT" ]; then
|
||||||
sed -i "s/^initial-color-theme .*/initial-color-theme = $THEME/" "$FOOT"
|
sed -i "s/^initial-color-theme .*/initial-color-theme = $THEME/" "$FOOT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# GTK
|
# GTK
|
||||||
XSET=$(readlink -f ~/.config/xsettingsd/xsettingsd.conf)
|
XSET=$(readlink -e ~/.config/xsettingsd/xsettingsd.conf)
|
||||||
if [ -f "$XSET" ]; then
|
if [ -n "$XSET" ]; then
|
||||||
sed -i -E "s#(Net/ThemeName) .*#\\1 \"${GTK_THEME}\"#" "$XSET"
|
sed -i -E "s#(Net/ThemeName) .*#\\1 \"${GTK_THEME}\"#" "$XSET"
|
||||||
pkill -HUP -x xsettingsd
|
pkill -HUP -x xsettingsd
|
||||||
gsettings set org.gnome.desktop.interface gtk-theme "${GTK_THEME}"
|
gsettings set org.gnome.desktop.interface gtk-theme "${GTK_THEME}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# niri
|
# niri
|
||||||
NIRI=$(readlink -f ~/.config/niri/config.kdl)
|
NIRI=$(readlink -e ~/.config/niri/config.kdl)
|
||||||
if [ -f "$NIRI" ]; then
|
if [ -n "$NIRI" ]; then
|
||||||
sed -i -E "s%^(include) \"(dark|light).kdl\".*%\\1 \"${THEME}.kdl\"%" "$NIRI"
|
sed -i -E "s%^(include) \"(dark|light).kdl\".*%\\1 \"${THEME}.kdl\"%" "$NIRI"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# waybar
|
# waybar
|
||||||
WCSS=$(readlink -f ~/.config/waybar/style.css)
|
WCSS=$(readlink -e ~/.config/waybar/style.css)
|
||||||
if [ -f "$WCSS" ]; then
|
if [ -f "$WCSS" ]; then
|
||||||
sed -i -E "s#file:///.*/(light|dark)[.]css#file://$HOME/.config/waybar/$THEME.css#" "$WCSS"
|
sed -i -E "s#file:///.*/(light|dark)[.]css#file://$HOME/.config/waybar/$THEME.css#" "$WCSS"
|
||||||
killall -SIGUSR2 waybar
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for session in $(kak -l); do
|
for session in $(kak -l); do
|
||||||
|
|||||||
Reference in new issue
Block a user