Compare commits
11 Commits
61e964a0e0
...
3aa7246458
| Author | SHA1 | Date | |
|---|---|---|---|
| 3aa7246458 | |||
| 7656f1db67 | |||
| 219b0466db | |||
| b3b04d9efe | |||
| 7f1fea5a8c | |||
| 1d42c23f1c | |||
| fdb736c39e | |||
| 7004a10dd6 | |||
| 8337231b23 | |||
| a37ae0f8bf | |||
| de8d8cf6ef |
164
kakoune/.config/kak/autoload/local/jump-mode.kak
Normal file
164
kakoune/.config/kak/autoload/local/jump-mode.kak
Normal file
@@ -0,0 +1,164 @@
|
|||||||
|
# name: kakoune_jump_mode
|
||||||
|
# version: 0.1.0
|
||||||
|
# description: Click with your keyboard.
|
||||||
|
# authors: ["Mathieu Ablasou <alexherbo2@gmail.com>"]
|
||||||
|
# kakoune: 2023-12-12
|
||||||
|
# license: MIT
|
||||||
|
# dependencies: []
|
||||||
|
# doc: yes
|
||||||
|
# tests: no
|
||||||
|
declare-option range-specs jump_ranges
|
||||||
|
declare-option str-to-str-map jump_label_selection_map
|
||||||
|
declare-option str-list jump_selections
|
||||||
|
declare-option str-list jump_labels \
|
||||||
|
'aa' 'ab' 'ac' 'ad' 'ae' 'af' 'ag' 'ah' 'ai' 'aj' 'ak' 'al' 'am' 'an' 'ao' 'ap' 'aq' 'ar' 'as' 'at' 'au' 'av' 'aw' 'ax' 'ay' 'az' \
|
||||||
|
'ba' 'bb' 'bc' 'bd' 'be' 'bf' 'bg' 'bh' 'bi' 'bj' 'bk' 'bl' 'bm' 'bn' 'bo' 'bp' 'bq' 'br' 'bs' 'bt' 'bu' 'bv' 'bw' 'bx' 'by' 'bz' \
|
||||||
|
'ca' 'cb' 'cc' 'cd' 'ce' 'cf' 'cg' 'ch' 'ci' 'cj' 'ck' 'cl' 'cm' 'cn' 'co' 'cp' 'cq' 'cr' 'cs' 'ct' 'cu' 'cv' 'cw' 'cx' 'cy' 'cz' \
|
||||||
|
'da' 'db' 'dc' 'dd' 'de' 'df' 'dg' 'dh' 'di' 'dj' 'dk' 'dl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||
|
|
||||||
|
set-face global JumpLabel 'black,bright-yellow+F'
|
||||||
|
|
||||||
|
define-command enter_jump_mode_with_replace_select_mode %{
|
||||||
|
enter_jump_mode 'jump (replace):' %{
|
||||||
|
try %{
|
||||||
|
execute-keys -save-regs 's' '<esc><a-,>"sZz"s<a-z>a<esc>'
|
||||||
|
} catch %{
|
||||||
|
execute-keys '<esc>z<esc>'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command enter_jump_mode_with_extend_select_mode %{
|
||||||
|
enter_jump_mode 'jump (extend):' %{
|
||||||
|
execute-keys -save-regs 's' '<esc>"sZ,<a-z>u"s<a-z>a<esc>'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command enter_jump_mode_with_append_select_mode %{
|
||||||
|
enter_jump_mode 'jump (append):' %{
|
||||||
|
execute-keys -save-regs 's' '<esc>"sZz"s<a-z>a<esc>'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command enter_jump_mode -params 2 %{
|
||||||
|
create_jump_state_from_words_in_viewport
|
||||||
|
create_jump_label_selection_map_option_buffer
|
||||||
|
execute-keys 'ga'
|
||||||
|
render_jump_labels
|
||||||
|
open_jump_prompt %arg{1} %arg{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command exit_jump_mode %{
|
||||||
|
unrender_jump_labels
|
||||||
|
close_jump_label_selection_map_option_buffer
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command render_jump_labels %{
|
||||||
|
add-highlighter window/jump_ranges replace-ranges jump_ranges
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command unrender_jump_labels %{
|
||||||
|
remove-highlighter window/jump_ranges
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command open_jump_prompt -params 2 %{
|
||||||
|
prompt %arg{1} %{
|
||||||
|
exit_jump_mode
|
||||||
|
} -on-change %{
|
||||||
|
handle_jump_input %val{text} %arg{2}
|
||||||
|
} -on-abort %{
|
||||||
|
exit_jump_mode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command handle_jump_input -params 2 %{
|
||||||
|
evaluate-commands -save-regs '^/' -draft -verbatim try %{
|
||||||
|
open_jump_label_selection_map_option_buffer
|
||||||
|
set-register / "\A\Q%arg{1}\E=(\d+\.\d+,\d+\.\d+)\z"
|
||||||
|
execute-keys 's<ret>'
|
||||||
|
evaluate-commands -draft -client %val{client} %exp{
|
||||||
|
select %reg{1}
|
||||||
|
execute-keys -save-regs '' 'Z'
|
||||||
|
}
|
||||||
|
evaluate-commands -client %val{client} %arg{2}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command create_jump_state_from_words_in_viewport %{
|
||||||
|
create_jump_state_from_selections_in_viewport %{
|
||||||
|
execute-keys 's\w+<ret><a-i>w'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command create_jump_state_from_selections_in_viewport -params 1 %{
|
||||||
|
evaluate-commands -draft %{
|
||||||
|
execute-keys 'gtGbx'
|
||||||
|
evaluate-commands %arg{1}
|
||||||
|
execute-keys '<a-k>\A.{2,}\z<ret>)'
|
||||||
|
evaluate-commands -client %val{client} -verbatim create_jump_state %val{selections_desc}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command create_jump_state -params .. %{
|
||||||
|
evaluate-commands -save-regs '"ab' %{
|
||||||
|
set-register a %arg{@}
|
||||||
|
set-register b %opt{jump_labels}
|
||||||
|
evaluate-commands -draft %{
|
||||||
|
edit -scratch
|
||||||
|
execute-keys '"a<a-P>a<space><c-r>b<esc>'
|
||||||
|
evaluate-commands -itersel %{
|
||||||
|
execute-keys 's\A(\d+)\.(\d+),(\d+)\.(\d+) (.{2})\z<ret>'
|
||||||
|
set-register dquote %exp{
|
||||||
|
set-option -add window jump_ranges "%reg{1}.%reg{2}+2|{JumpLabel}%reg{5}"
|
||||||
|
set-option -add window jump_label_selection_map "%reg{5}=%reg{1}.%reg{2},%reg{3}.%reg{4}"
|
||||||
|
}
|
||||||
|
execute-keys 'R'
|
||||||
|
}
|
||||||
|
execute-keys -save-regs '' '%y'
|
||||||
|
delete-buffer
|
||||||
|
}
|
||||||
|
set-option window jump_ranges %val{timestamp}
|
||||||
|
set-option window jump_label_selection_map
|
||||||
|
evaluate-commands %reg{dquote}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command create_jump_label_selection_map_option_buffer %{
|
||||||
|
evaluate-commands -save-regs '"' %{
|
||||||
|
set-register dquote %opt{jump_label_selection_map}
|
||||||
|
edit -scratch "jump_label_selection_map@%val{client}.option"
|
||||||
|
execute-keys '<a-P>'
|
||||||
|
set-option buffer jump_selections %val{selections_desc}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command open_jump_label_selection_map_option_buffer %{
|
||||||
|
edit -scratch "jump_label_selection_map@%val{client}.option"
|
||||||
|
select %opt{jump_selections}
|
||||||
|
}
|
||||||
|
|
||||||
|
define-command close_jump_label_selection_map_option_buffer %{
|
||||||
|
delete-buffer "jump_label_selection_map@%val{client}.option"
|
||||||
|
}
|
||||||
119
kakoune/.config/kak/colors/four-colors-dark.kak
Normal file
119
kakoune/.config/kak/colors/four-colors-dark.kak
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
# Four colors dark theme
|
||||||
|
|
||||||
|
evaluate-commands %sh{
|
||||||
|
bg="rgb:272117"
|
||||||
|
bgmenu="rgb:282e38"
|
||||||
|
fg="rgb:a29e98"
|
||||||
|
gray="rgb:58666d"
|
||||||
|
|
||||||
|
yellow1="rgb:dcb46e"
|
||||||
|
yellow2="rgb:af8842"
|
||||||
|
yellow3="rgb:845f10"
|
||||||
|
|
||||||
|
green1="rgb:73d0b1"
|
||||||
|
green2="rgb:44a386"
|
||||||
|
green3="rgb:04785d"
|
||||||
|
|
||||||
|
blue1="rgb:95bcfb"
|
||||||
|
blue2="rgb:6b90cc"
|
||||||
|
blue3="rgb:43669f"
|
||||||
|
|
||||||
|
pink1="rgb:eca0c4"
|
||||||
|
pink2="rgb:bd7598"
|
||||||
|
pink3="rgb:904c6e"
|
||||||
|
|
||||||
|
echo "
|
||||||
|
## CODE
|
||||||
|
|
||||||
|
set-face global value $pink1
|
||||||
|
set-face global type $green2
|
||||||
|
set-face global variable $yellow3
|
||||||
|
set-face global module $pink3
|
||||||
|
set-face global function $blue2
|
||||||
|
set-face global string $yellow2
|
||||||
|
set-face global keyword $blue1
|
||||||
|
set-face global operator $pink2
|
||||||
|
set-face global attribute $green1
|
||||||
|
set-face global comment $green3
|
||||||
|
set-face global documentation $green3
|
||||||
|
set-face global meta $blue3
|
||||||
|
set-face global builtin $green2
|
||||||
|
|
||||||
|
## MARKUP
|
||||||
|
|
||||||
|
set-face global title $pink3
|
||||||
|
set-face global header $pink2
|
||||||
|
set-face global mono $yellow2
|
||||||
|
set-face global block $blue2
|
||||||
|
set-face global link $blue1
|
||||||
|
set-face global bullet $pink1
|
||||||
|
set-face global list $pink1
|
||||||
|
|
||||||
|
## 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,$pink1
|
||||||
|
set-face global SecondaryCursorEol $bg,$yellow1
|
||||||
|
set-face global MenuForeground $green1,$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 $pink2
|
||||||
|
set-face global DiagnosticError default,default,$pink2+c
|
||||||
|
set-face global DiagnosticWarning default,default,$yellow2+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 $blue3
|
||||||
|
set-face global BufferPadding $bg,$bg
|
||||||
|
|
||||||
|
# Built-in highlighter faces
|
||||||
|
|
||||||
|
set-face global LineNumbers $blue3
|
||||||
|
set-face global LineNumberCursor $blue3
|
||||||
|
set-face global LineNumbersWrapped $bg,$bg
|
||||||
|
set-face global MatchingChar $yellow1
|
||||||
|
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 $pink1
|
||||||
|
set-face global InfoHeader $pink3
|
||||||
|
set-face global InfoLink $blue1
|
||||||
|
set-face global InfoLinkMono $blue2
|
||||||
|
|
||||||
|
set-face global InfoMono $blue2
|
||||||
|
set-face global InfoRule $yellow2
|
||||||
|
set-face global InfoDiagnosticError $pink2
|
||||||
|
set-face global InfoDiagnosticHint $blue2
|
||||||
|
set-face global InfoDiagnosticInformation $green2
|
||||||
|
set-face global InfoDiagnosticWarning $yellow2
|
||||||
|
|
||||||
|
set-face global LineFlagError $pink2
|
||||||
|
set-face global LineFlagHint $blue2
|
||||||
|
set-face global LineFlagInfo $green2
|
||||||
|
set-face global LineFlagWarning $yellow2
|
||||||
|
|
||||||
|
set-face global InlayDiagnosticError $pink2
|
||||||
|
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
|
||||||
|
"
|
||||||
|
}
|
||||||
119
kakoune/.config/kak/colors/four-colors-light.kak
Normal file
119
kakoune/.config/kak/colors/four-colors-light.kak
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
# Four colors light theme
|
||||||
|
|
||||||
|
evaluate-commands %sh{
|
||||||
|
bg="rgb:faf8f5"
|
||||||
|
bgmenu="rgb:f6ede0"
|
||||||
|
fg="rgb:696257"
|
||||||
|
gray="rgb:58666d"
|
||||||
|
|
||||||
|
yellow1="rgb:dcb46e"
|
||||||
|
yellow2="rgb:af8842"
|
||||||
|
yellow3="rgb:845f10"
|
||||||
|
|
||||||
|
green1="rgb:73d0b1"
|
||||||
|
green2="rgb:44a386"
|
||||||
|
green3="rgb:04785d"
|
||||||
|
|
||||||
|
blue1="rgb:95bcfb"
|
||||||
|
blue2="rgb:6b90cc"
|
||||||
|
blue3="rgb:43669f"
|
||||||
|
|
||||||
|
pink1="rgb:eca0c4"
|
||||||
|
pink2="rgb:bd7598"
|
||||||
|
pink3="rgb:904c6e"
|
||||||
|
|
||||||
|
echo "
|
||||||
|
## CODE
|
||||||
|
|
||||||
|
set-face global value $pink1
|
||||||
|
set-face global type $green2
|
||||||
|
set-face global variable $yellow3
|
||||||
|
set-face global module $pink3
|
||||||
|
set-face global function $blue2
|
||||||
|
set-face global string $yellow2
|
||||||
|
set-face global keyword $blue1
|
||||||
|
set-face global operator $pink2
|
||||||
|
set-face global attribute $green1
|
||||||
|
set-face global comment $green3
|
||||||
|
set-face global documentation $green3
|
||||||
|
set-face global meta $blue3
|
||||||
|
set-face global builtin $green2
|
||||||
|
|
||||||
|
## MARKUP
|
||||||
|
|
||||||
|
set-face global title $pink3
|
||||||
|
set-face global header $pink2
|
||||||
|
set-face global mono $yellow2
|
||||||
|
set-face global block $blue2
|
||||||
|
set-face global link $blue1
|
||||||
|
set-face global bullet $pink1
|
||||||
|
set-face global list $pink1
|
||||||
|
|
||||||
|
## 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,$pink1
|
||||||
|
set-face global SecondaryCursorEol $bg,$yellow1
|
||||||
|
set-face global MenuForeground $green1,$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 $pink2
|
||||||
|
set-face global DiagnosticError default,default,$pink2+c
|
||||||
|
set-face global DiagnosticWarning default,default,$yellow2+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 $blue3
|
||||||
|
set-face global BufferPadding $bg,$bg
|
||||||
|
|
||||||
|
# Built-in highlighter faces
|
||||||
|
|
||||||
|
set-face global LineNumbers $blue3
|
||||||
|
set-face global LineNumberCursor $blue3
|
||||||
|
set-face global LineNumbersWrapped $bg,$bg
|
||||||
|
set-face global MatchingChar $yellow1
|
||||||
|
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 $pink1
|
||||||
|
set-face global InfoHeader $pink3
|
||||||
|
set-face global InfoLink $blue1
|
||||||
|
set-face global InfoLinkMono $blue2
|
||||||
|
|
||||||
|
set-face global InfoMono $blue2
|
||||||
|
set-face global InfoRule $yellow2
|
||||||
|
set-face global InfoDiagnosticError $pink2
|
||||||
|
set-face global InfoDiagnosticHint $blue2
|
||||||
|
set-face global InfoDiagnosticInformation $green2
|
||||||
|
set-face global InfoDiagnosticWarning $yellow2
|
||||||
|
|
||||||
|
set-face global LineFlagError $pink2
|
||||||
|
set-face global LineFlagHint $blue2
|
||||||
|
set-face global LineFlagInfo $green2
|
||||||
|
set-face global LineFlagWarning $yellow2
|
||||||
|
|
||||||
|
set-face global InlayDiagnosticError $pink2
|
||||||
|
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
|
||||||
|
"
|
||||||
|
}
|
||||||
@@ -3,7 +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
|
||||||
|
|
||||||
add-highlighter global/ number-lines -relative
|
hook global WinCreate .* %{
|
||||||
|
add-highlighter window/number-lines number-lines -relative
|
||||||
|
}
|
||||||
|
add-highlighter global/ show-matching
|
||||||
|
|
||||||
# LOCAL
|
# LOCAL
|
||||||
|
|
||||||
@@ -14,37 +17,53 @@ nop %sh{
|
|||||||
|
|
||||||
colorscheme %sh{
|
colorscheme %sh{
|
||||||
if [ -e ~/.lightmode ]; then
|
if [ -e ~/.lightmode ]; then
|
||||||
echo lp-light
|
echo four-colors-light
|
||||||
else
|
else
|
||||||
echo lp-dark
|
echo four-colors-dark
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
declare-user-mode file-mode
|
declare-user-mode file-mode
|
||||||
declare-user-mode options-mode
|
declare-user-mode options-mode
|
||||||
|
|
||||||
map global -docstring "File" user 'f' ': enter-user-mode file-mode<ret>'
|
map global -docstring 'File' user 'f' ': enter-user-mode file-mode<ret>'
|
||||||
map global -docstring "Buffer" user ' ' ': b '
|
map global -docstring 'Buffer' user ' ' ': b '
|
||||||
|
|
||||||
map global -docstring "Open (git)" file-mode 'a' ': file-open-git<ret>'
|
map global -docstring 'Open (git)' file-mode 'a' ': file-open-git<ret>'
|
||||||
map global -docstring "Git diff file" file-mode 'd' ': git diff %val{buffile}<ret>'
|
map global -docstring 'Git diff file' file-mode 'd' ': git diff %val{buffile}<ret>'
|
||||||
map global -docstring "Open (fd)" file-mode 'f' ': file-open<ret>'
|
map global -docstring 'Open (fd)' file-mode 'f' ': file-open<ret>'
|
||||||
map global -docstring "Open (recent)" file-mode 'r' ': file-open-recent<ret>'
|
map global -docstring 'Open (recent)' file-mode 'r' ': file-open-recent<ret>'
|
||||||
map global -docstring "Git grep" file-mode 'g' ': git grep '
|
map global -docstring 'Git grep' file-mode 'g' ': git grep '
|
||||||
map global -docstring "Open (nnn)" file-mode 'n' ': nnn-open %val{buffile}<ret>'
|
map global -docstring 'Open (nnn)' file-mode 'n' ': nnn-open %val{buffile}<ret>'
|
||||||
map global -docstring "Open (nnn)" file-mode 'N' ': nnn-open .<ret>'
|
map global -docstring 'Open (nnn)' file-mode 'N' ': nnn-open .<ret>'
|
||||||
map global -docstring "Open/create in dir" file-mode 'c' ': open-create-in-dir<ret>'
|
map global -docstring 'Open/create in dir' file-mode 'c' ': open-create-in-dir<ret>'
|
||||||
|
|
||||||
map global -docstring "Options" user 'o' ': enter-user-mode options-mode<ret>'
|
map global -docstring 'Options' user 'o' ': enter-user-mode options-mode<ret>'
|
||||||
|
|
||||||
map global -docstring "LP Dark mode" options-mode 'd' ': colorscheme lp-dark<ret>'
|
map global -docstring 'LP Dark mode' options-mode 'd' ': colorscheme four-colors-dark<ret>'
|
||||||
map global -docstring "LP Light mode" options-mode 'l' ': colorscheme lp-light<ret>'
|
map global -docstring 'LP Light mode' options-mode 'l' ': colorscheme four-colors-light<ret>'
|
||||||
map global -docstring "Light mode" options-mode 'L' ': colorscheme one-light<ret>'
|
map global -docstring 'Light mode' options-mode 'L' ': colorscheme one-light<ret>'
|
||||||
map global -docstring "Dark mode" options-mode 'D' ': colorscheme one-darker<ret>'
|
map global -docstring 'Dark mode' options-mode 'D' ': colorscheme one-darker<ret>'
|
||||||
|
|
||||||
map global -docstring "Paste clipboard (append)" user 'p' '<a-!> xsel -bo<ret>'
|
evaluate-commands %sh{
|
||||||
map global -docstring "Paste clipboard (insert)" user 'P' '! xsel -bo<ret>'
|
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||||
map global -docstring "Yank to clipboard" user 'y' '<a-|> xsel -bi<ret>'
|
echo "
|
||||||
|
map global -docstring 'Paste clipboard (append)' user 'p' '<a-!> wl-paste -n<ret>'
|
||||||
|
map global -docstring 'Paste clipboard (insert)' user 'P' '! wl-paste -n<ret>'
|
||||||
|
map global -docstring 'Yank to clipboard' user 'y' '<a-|> wl-copy<ret>'
|
||||||
|
"
|
||||||
|
elif [ -n "$DISPLAY" ]; then
|
||||||
|
echo "
|
||||||
|
map global -docstring 'Paste clipboard (append)' user 'p' '<a-!> xsel -bo<ret>'
|
||||||
|
map global -docstring 'Paste clipboard (insert)' user 'P' '! xsel -bo<ret>'
|
||||||
|
map global -docstring 'Yank to clipboard' user 'y' '<a-|> xsel -bi<ret>'
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
map global -docstring 'Replace jump mode' user 'j' ': enter_jump_mode_with_replace_select_mode<ret>'
|
||||||
|
map global -docstring 'Extend jump mode' user 'e' ': enter_jump_mode_with_extend_select_mode<ret>'
|
||||||
|
map global -docstring 'Append jump mode' user 'a' ': enter_jump_mode_with_append_select_mode<ret>'
|
||||||
|
|
||||||
define-command -override file-open %{
|
define-command -override file-open %{
|
||||||
prompt -menu -shell-script-candidates %{ fd -t f } 'File: ' %{ edit -- %val{text} }
|
prompt -menu -shell-script-candidates %{ fd -t f } 'File: ' %{ edit -- %val{text} }
|
||||||
@@ -66,10 +85,12 @@ define-command -override open-create-in-dir %{
|
|||||||
execute-keys ': edit ' %sh{dirname "$kak_buffile"}/
|
execute-keys ': edit ' %sh{dirname "$kak_buffile"}/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set-face global JumpLabel 'rgb:faf8f5,rgb:af8842+F'
|
||||||
|
|
||||||
# CHANGE STATUS BAR COLOR IN INSERT MODE
|
# CHANGE STATUS BAR COLOR IN INSERT MODE
|
||||||
|
|
||||||
hook global ModeChange push:.*:insert %{
|
hook global ModeChange push:.*:insert %{
|
||||||
set-face window StatusLine "default,rgb:1c4a21"
|
set-face window StatusLine 'default,rgb:1c4a21'
|
||||||
}
|
}
|
||||||
|
|
||||||
hook global ModeChange pop:insert:.* %{
|
hook global ModeChange pop:insert:.* %{
|
||||||
@@ -113,13 +134,13 @@ bundle-noload kak-bundle https://codeberg.org/jdugan6240/kak-bundle
|
|||||||
|
|
||||||
# COLORSCHEME
|
# COLORSCHEME
|
||||||
|
|
||||||
bundle-theme kak-one "https://codeberg.org/raiguard/kak-one"
|
bundle-theme kak-one 'https://codeberg.org/raiguard/kak-one'
|
||||||
|
|
||||||
bundle-theme kakoune-themes "https://codeberg.org/anhsirk0/kakoune-themes"
|
bundle-theme kakoune-themes 'https://codeberg.org/anhsirk0/kakoune-themes'
|
||||||
|
|
||||||
# FZF
|
# FZF
|
||||||
|
|
||||||
bundle fzf.kak "https://github.com/andreyorst/fzf.kak" %{
|
bundle fzf.kak 'https://github.com/andreyorst/fzf.kak' %{
|
||||||
map global -docstring 'FZF menu' user s ': fzf-mode<ret>'
|
map global -docstring 'FZF menu' user s ': fzf-mode<ret>'
|
||||||
require-module fzf
|
require-module fzf
|
||||||
set-option global fzf_highlight_command "bat"
|
set-option global fzf_highlight_command "bat"
|
||||||
@@ -131,29 +152,58 @@ hook global BufCreate [^*].* %{
|
|||||||
echo "$kak_buffile" | awk '!seen[$0]++' - "$mru" | sponge "$mru"
|
echo "$kak_buffile" | awk '!seen[$0]++' - "$mru" | sponge "$mru"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
# SURROUND
|
# MATCH
|
||||||
|
|
||||||
bundle kakoune-surround "https://github.com/h-youhei/kakoune-surround" %{
|
bundle match 'https://github.com/kmafeni04/match.kak' %{
|
||||||
declare-user-mode surround
|
declare-user-mode match
|
||||||
map global surround s ': surround<ret>' -docstring 'surround'
|
map global user m ': enter-user-mode match<ret>' -docstring 'Match'
|
||||||
map global surround c ': change-surround<ret>' -docstring 'change'
|
map global match m m -docstring 'Match next matching pair'
|
||||||
map global surround d ': delete-surround<ret>' -docstring 'delete'
|
map global match i ': match-inside<ret>' -docstring 'Match inside object'
|
||||||
map global surround t ': select-surrounding-tag<ret>' -docstring 'select tag'
|
map global match a ': match-around<ret>' -docstring 'Match around object'
|
||||||
map global -docstring 'Surround' user 'S' ': enter-user-mode surround<ret>'
|
map global match n ': match-next<ret>' -docstring 'Match next object'
|
||||||
|
map global match p ': match-prev<ret>' -docstring 'Match previous object'
|
||||||
|
map global match s ': match-surround-add<ret>' -docstring 'Surround selection with character'
|
||||||
|
map global match d ': match-surround-delete<ret>' -docstring "Delete selection's surrounding character"
|
||||||
|
map global match r ': match-surround-replace<ret>' -docstring "Replace selection's surrounding character"
|
||||||
|
map global match u ': match-surround-undo<ret>' -docstring "Undo"
|
||||||
|
map global match U ': match-surround-redo<ret>' -docstring "Redo"
|
||||||
}
|
}
|
||||||
|
|
||||||
# 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
|
||||||
}
|
}
|
||||||
|
|
||||||
# EASYMOTION
|
# PENEIRA
|
||||||
|
|
||||||
bundle easymotion.kak https://git.sr.ht/~voroskoi/easymotion.kak %{
|
bundle 'luar' 'https://github.com/gustavo-hms/luar' %{
|
||||||
require-module easymotion
|
require-module luar
|
||||||
map global -docstring 'easy j' user <j> ': easymotion-j<ret>'
|
}
|
||||||
map global -docstring 'easy k' user <k> ': easymotion-k<ret>'
|
|
||||||
map global -docstring 'easy w' user <w> ': easymotion-w<ret>'
|
bundle 'peneira' 'https://github.com/gustavo-hms/peneira' %{
|
||||||
map global -docstring 'easy b'user <b> ': easymotion-b<ret>'
|
require-module peneira
|
||||||
|
|
||||||
|
define-command buffers %{
|
||||||
|
peneira 'buffers: ' %{ eval "printf '%s\n' $kak_quoted_buflist" } %{
|
||||||
|
buffer %arg{1}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
define-command peneira-git-files %{
|
||||||
|
peneira 'git files: ' %{ git ls-files } %{ e %arg{1} }
|
||||||
|
}
|
||||||
|
define-command peneira-recent-files %{
|
||||||
|
peneira 'mru files: ' %{ cat ~/.cache/kak-mru } %{ e %arg{1} }
|
||||||
|
}
|
||||||
|
|
||||||
|
map global -docstring 'Buffer' user ' ' ': buffers<ret>'
|
||||||
|
|
||||||
|
declare-user-mode peneira-mode
|
||||||
|
map global -docstring 'Peneira' user 'd' ': enter-user-mode peneira-mode<ret>'
|
||||||
|
map global -docstring 'Git files' peneira-mode 'a' ': peneira-git-files<ret>'
|
||||||
|
map global -docstring 'Buffers' peneira-mode 'b' ': buffers<ret>'
|
||||||
|
map global -docstring 'Files' peneira-mode 'f' ': peneira-files<ret>'
|
||||||
|
map global -docstring 'Files' peneira-mode 'F' ': peneira-local-files<ret>'
|
||||||
|
map global -docstring 'Lines' peneira-mode 'l' ': peneira-lines<ret>'
|
||||||
|
map global -docstring 'Recent files' peneira-mode 'r' ': peneira-recent-files<ret>'
|
||||||
}
|
}
|
||||||
|
|||||||
320
niri/.config/niri/config.kdl
Normal file
320
niri/.config/niri/config.kdl
Normal file
@@ -0,0 +1,320 @@
|
|||||||
|
// This config is in the KDL format: https://kdl.dev
|
||||||
|
// https://niri-wm.github.io/niri/Configuration:-Introduction
|
||||||
|
|
||||||
|
input {
|
||||||
|
keyboard {
|
||||||
|
xkb {
|
||||||
|
layout "pl"
|
||||||
|
}
|
||||||
|
numlock
|
||||||
|
}
|
||||||
|
|
||||||
|
touchpad {
|
||||||
|
tap
|
||||||
|
natural-scroll
|
||||||
|
}
|
||||||
|
|
||||||
|
// mouse { }
|
||||||
|
|
||||||
|
// trackpoint { }
|
||||||
|
|
||||||
|
warp-mouse-to-focus
|
||||||
|
}
|
||||||
|
|
||||||
|
output "HDMI-A-1" {
|
||||||
|
scale 2
|
||||||
|
}
|
||||||
|
output "DP-1" {
|
||||||
|
scale 2
|
||||||
|
}
|
||||||
|
|
||||||
|
layout {
|
||||||
|
gaps 16
|
||||||
|
|
||||||
|
center-focused-column "never"
|
||||||
|
|
||||||
|
preset-column-widths {
|
||||||
|
proportion 0.33333
|
||||||
|
proportion 0.5
|
||||||
|
proportion 0.66667
|
||||||
|
}
|
||||||
|
|
||||||
|
// preset-window-heights { }
|
||||||
|
|
||||||
|
default-column-width { proportion 0.5; }
|
||||||
|
|
||||||
|
focus-ring {
|
||||||
|
width 4
|
||||||
|
active-color "#7fc8ff"
|
||||||
|
inactive-color "#505050"
|
||||||
|
}
|
||||||
|
|
||||||
|
border {
|
||||||
|
off
|
||||||
|
|
||||||
|
width 4
|
||||||
|
active-color "#ffc87f"
|
||||||
|
inactive-color "#505050"
|
||||||
|
urgent-color "#9b0000"
|
||||||
|
}
|
||||||
|
|
||||||
|
struts {
|
||||||
|
// left 64
|
||||||
|
// right 64
|
||||||
|
// top 64
|
||||||
|
// bottom 64
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
overview {
|
||||||
|
zoom 0.25
|
||||||
|
}
|
||||||
|
|
||||||
|
hotkey-overlay {
|
||||||
|
skip-at-startup
|
||||||
|
}
|
||||||
|
|
||||||
|
prefer-no-csd
|
||||||
|
|
||||||
|
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
||||||
|
// screenshot-path null
|
||||||
|
|
||||||
|
animations {
|
||||||
|
off
|
||||||
|
}
|
||||||
|
|
||||||
|
// Work around WezTerm's initial configure bug
|
||||||
|
// by setting an empty default-column-width.
|
||||||
|
window-rule {
|
||||||
|
match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
||||||
|
default-column-width {}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open the Firefox picture-in-picture player as floating by default.
|
||||||
|
window-rule {
|
||||||
|
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
|
||||||
|
open-floating true
|
||||||
|
}
|
||||||
|
|
||||||
|
// Example: block out two password managers from screen capture.
|
||||||
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
|
/-window-rule {
|
||||||
|
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
||||||
|
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
||||||
|
|
||||||
|
block-out-from "screen-capture"
|
||||||
|
|
||||||
|
// Use this instead if you want them visible on third-party screenshot tools.
|
||||||
|
// block-out-from "screencast"
|
||||||
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
geometry-corner-radius 4
|
||||||
|
clip-to-geometry true
|
||||||
|
}
|
||||||
|
|
||||||
|
binds {
|
||||||
|
// Mod-Shift-/, which is usually the same as Mod-?,
|
||||||
|
// shows a list of important hotkeys.
|
||||||
|
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||||
|
|
||||||
|
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||||
|
Mod+T hotkey-overlay-title="Open a Terminal: alacritty" { spawn "kitty" "--single-instance" "--instance-group" "default"; }
|
||||||
|
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
||||||
|
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
|
||||||
|
Mod+Shift+T hotkey-overlay-title="Toggle theme" { spawn "lupan-set-theme" "toggle"; }
|
||||||
|
|
||||||
|
XF86AudioRaiseVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+ -l 1.0"; }
|
||||||
|
XF86AudioLowerVolume allow-when-locked=true { spawn-sh "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; }
|
||||||
|
XF86AudioMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; }
|
||||||
|
XF86AudioMicMute allow-when-locked=true { spawn-sh "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; }
|
||||||
|
|
||||||
|
XF86AudioPlay allow-when-locked=true { spawn-sh "playerctl play-pause"; }
|
||||||
|
XF86AudioStop allow-when-locked=true { spawn-sh "playerctl stop"; }
|
||||||
|
XF86AudioPrev allow-when-locked=true { spawn-sh "playerctl previous"; }
|
||||||
|
XF86AudioNext allow-when-locked=true { spawn-sh "playerctl next"; }
|
||||||
|
|
||||||
|
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "+10%"; }
|
||||||
|
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "--class=backlight" "set" "10%-"; }
|
||||||
|
|
||||||
|
Mod+O repeat=false { toggle-overview; }
|
||||||
|
|
||||||
|
Mod+Shift+C repeat=false { close-window; }
|
||||||
|
|
||||||
|
Mod+Left { focus-column-left; }
|
||||||
|
Mod+Down { focus-window-down; }
|
||||||
|
Mod+Up { focus-window-up; }
|
||||||
|
Mod+Right { focus-column-right; }
|
||||||
|
Mod+H { focus-column-left; }
|
||||||
|
Mod+J { focus-window-down; }
|
||||||
|
Mod+K { focus-window-up; }
|
||||||
|
Mod+L { focus-column-right; }
|
||||||
|
|
||||||
|
Mod+Ctrl+Left { move-column-left; }
|
||||||
|
Mod+Ctrl+Down { move-window-down; }
|
||||||
|
Mod+Ctrl+Up { move-window-up; }
|
||||||
|
Mod+Ctrl+Right { move-column-right; }
|
||||||
|
Mod+Ctrl+H { move-column-left; }
|
||||||
|
Mod+Ctrl+J { move-window-down; }
|
||||||
|
Mod+Ctrl+K { move-window-up; }
|
||||||
|
Mod+Ctrl+L { move-column-right; }
|
||||||
|
|
||||||
|
// Alternative commands that move across workspaces when reaching
|
||||||
|
// the first or last window in a column.
|
||||||
|
// Mod+J { focus-window-or-workspace-down; }
|
||||||
|
// Mod+K { focus-window-or-workspace-up; }
|
||||||
|
// Mod+Ctrl+J { move-window-down-or-to-workspace-down; }
|
||||||
|
// Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
|
||||||
|
|
||||||
|
Mod+Home { focus-column-first; }
|
||||||
|
Mod+End { focus-column-last; }
|
||||||
|
Mod+Ctrl+Home { move-column-to-first; }
|
||||||
|
Mod+Ctrl+End { move-column-to-last; }
|
||||||
|
|
||||||
|
Mod+Shift+Left { focus-monitor-left; }
|
||||||
|
Mod+Shift+Down { focus-monitor-down; }
|
||||||
|
Mod+Shift+Up { focus-monitor-up; }
|
||||||
|
Mod+Shift+Right { focus-monitor-right; }
|
||||||
|
Mod+Shift+H { focus-monitor-left; }
|
||||||
|
Mod+Shift+J { focus-monitor-down; }
|
||||||
|
Mod+Shift+K { focus-monitor-up; }
|
||||||
|
Mod+Shift+L { focus-monitor-right; }
|
||||||
|
|
||||||
|
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
|
||||||
|
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
|
||||||
|
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
|
||||||
|
Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
|
||||||
|
Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
|
||||||
|
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
|
||||||
|
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||||
|
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||||
|
|
||||||
|
// Alternatively, there are commands to move just a single window:
|
||||||
|
// Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
|
||||||
|
// ...
|
||||||
|
|
||||||
|
// And you can also move a whole workspace to another monitor:
|
||||||
|
// Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; }
|
||||||
|
// ...
|
||||||
|
|
||||||
|
Mod+Page_Down { focus-workspace-down; }
|
||||||
|
Mod+Page_Up { focus-workspace-up; }
|
||||||
|
Mod+U { focus-workspace-down; }
|
||||||
|
Mod+I { focus-workspace-up; }
|
||||||
|
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
||||||
|
Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
|
||||||
|
Mod+Ctrl+U { move-column-to-workspace-down; }
|
||||||
|
Mod+Ctrl+I { move-column-to-workspace-up; }
|
||||||
|
|
||||||
|
Mod+Shift+Page_Down { move-workspace-down; }
|
||||||
|
Mod+Shift+Page_Up { move-workspace-up; }
|
||||||
|
Mod+Shift+U { move-workspace-down; }
|
||||||
|
Mod+Shift+I { move-workspace-up; }
|
||||||
|
|
||||||
|
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||||
|
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||||
|
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||||
|
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||||
|
|
||||||
|
Mod+WheelScrollRight { focus-column-right; }
|
||||||
|
Mod+WheelScrollLeft { focus-column-left; }
|
||||||
|
Mod+Ctrl+WheelScrollRight { move-column-right; }
|
||||||
|
Mod+Ctrl+WheelScrollLeft { move-column-left; }
|
||||||
|
|
||||||
|
Mod+Shift+WheelScrollDown { focus-column-right; }
|
||||||
|
Mod+Shift+WheelScrollUp { focus-column-left; }
|
||||||
|
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
||||||
|
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
||||||
|
|
||||||
|
Mod+1 { focus-workspace 1; }
|
||||||
|
Mod+2 { focus-workspace 2; }
|
||||||
|
Mod+3 { focus-workspace 3; }
|
||||||
|
Mod+4 { focus-workspace 4; }
|
||||||
|
Mod+5 { focus-workspace 5; }
|
||||||
|
Mod+6 { focus-workspace 6; }
|
||||||
|
Mod+7 { focus-workspace 7; }
|
||||||
|
Mod+8 { focus-workspace 8; }
|
||||||
|
Mod+9 { focus-workspace 9; }
|
||||||
|
Mod+Ctrl+1 { move-column-to-workspace 1; }
|
||||||
|
Mod+Ctrl+2 { move-column-to-workspace 2; }
|
||||||
|
Mod+Ctrl+3 { move-column-to-workspace 3; }
|
||||||
|
Mod+Ctrl+4 { move-column-to-workspace 4; }
|
||||||
|
Mod+Ctrl+5 { move-column-to-workspace 5; }
|
||||||
|
Mod+Ctrl+6 { move-column-to-workspace 6; }
|
||||||
|
Mod+Ctrl+7 { move-column-to-workspace 7; }
|
||||||
|
Mod+Ctrl+8 { move-column-to-workspace 8; }
|
||||||
|
Mod+Ctrl+9 { move-column-to-workspace 9; }
|
||||||
|
|
||||||
|
Mod+Ctrl+Shift+1 { move-window-to-workspace 1; }
|
||||||
|
Mod+Ctrl+Shift+2 { move-window-to-workspace 2; }
|
||||||
|
Mod+Ctrl+Shift+3 { move-window-to-workspace 3; }
|
||||||
|
Mod+Ctrl+Shift+4 { move-window-to-workspace 4; }
|
||||||
|
Mod+Ctrl+Shift+5 { move-window-to-workspace 5; }
|
||||||
|
Mod+Ctrl+Shift+6 { move-window-to-workspace 6; }
|
||||||
|
Mod+Ctrl+Shift+7 { move-window-to-workspace 7; }
|
||||||
|
Mod+Ctrl+Shift+8 { move-window-to-workspace 8; }
|
||||||
|
Mod+Ctrl+Shift+9 { move-window-to-workspace 9; }
|
||||||
|
|
||||||
|
// Switches focus between the current and the previous workspace.
|
||||||
|
// Mod+Tab { focus-workspace-previous; }
|
||||||
|
|
||||||
|
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||||
|
Mod+BracketRight { consume-or-expel-window-right; }
|
||||||
|
|
||||||
|
Mod+Comma { consume-window-into-column; }
|
||||||
|
Mod+Period { expel-window-from-column; }
|
||||||
|
|
||||||
|
Mod+R { switch-preset-column-width; }
|
||||||
|
Mod+Shift+R { switch-preset-column-width-back; }
|
||||||
|
|
||||||
|
Mod+Ctrl+Shift+R { switch-preset-window-height; }
|
||||||
|
Mod+Ctrl+R { reset-window-height; }
|
||||||
|
|
||||||
|
Mod+F { maximize-column; }
|
||||||
|
Mod+Shift+F { fullscreen-window; }
|
||||||
|
|
||||||
|
Mod+M { maximize-window-to-edges; }
|
||||||
|
|
||||||
|
Mod+Ctrl+F { expand-column-to-available-width; }
|
||||||
|
|
||||||
|
Mod+C { center-column; }
|
||||||
|
Mod+Ctrl+C { center-visible-columns; }
|
||||||
|
|
||||||
|
Mod+Minus { set-column-width "-10%"; }
|
||||||
|
Mod+Equal { set-column-width "+10%"; }
|
||||||
|
|
||||||
|
Mod+Shift+Minus { set-window-height "-10%"; }
|
||||||
|
Mod+Shift+Equal { set-window-height "+10%"; }
|
||||||
|
|
||||||
|
Mod+V { toggle-window-floating; }
|
||||||
|
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
|
||||||
|
|
||||||
|
Mod+W { toggle-column-tabbed-display; }
|
||||||
|
|
||||||
|
// Actions to switch layouts.
|
||||||
|
// Note: if you uncomment these, make sure you do NOT have
|
||||||
|
// a matching layout switch hotkey configured in xkb options above.
|
||||||
|
// Having both at once on the same hotkey will break the switching,
|
||||||
|
// since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
|
||||||
|
// Mod+Space { switch-layout "next"; }
|
||||||
|
// Mod+Shift+Space { switch-layout "prev"; }
|
||||||
|
|
||||||
|
Print { screenshot; }
|
||||||
|
Ctrl+Print { screenshot-screen; }
|
||||||
|
Alt+Print { screenshot-window; }
|
||||||
|
|
||||||
|
// Applications such as remote-desktop clients and software KVM switches may
|
||||||
|
// request that niri stops processing the keyboard shortcuts defined here
|
||||||
|
// so they may, for example, forward the key presses as-is to a remote machine.
|
||||||
|
// It's a good idea to bind an escape hatch to toggle the inhibitor,
|
||||||
|
// so a buggy application can't hold your session hostage.
|
||||||
|
//
|
||||||
|
// The allow-inhibiting=false property can be applied to other binds as well,
|
||||||
|
// which ensures niri always processes them, even when an inhibitor is active.
|
||||||
|
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
||||||
|
|
||||||
|
Mod+Shift+E { quit; }
|
||||||
|
Ctrl+Alt+Delete { quit; }
|
||||||
|
|
||||||
|
Mod+Shift+P { power-off-monitors; }
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user