From fd9b0ecef4142a62b45404700ba1cff488f84a73 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 23 May 2024 13:31:11 +0200 Subject: refactor(modules/home): Setup as "normal" NixOS module --- .../conf/alacritty/toml/keyboard_bindings.toml | 297 +++++++++++++++++++++ 1 file changed, 297 insertions(+) create mode 100644 modules/home/conf/alacritty/toml/keyboard_bindings.toml (limited to 'modules/home/conf/alacritty/toml/keyboard_bindings.toml') diff --git a/modules/home/conf/alacritty/toml/keyboard_bindings.toml b/modules/home/conf/alacritty/toml/keyboard_bindings.toml new file mode 100644 index 00000000..8e0b1e13 --- /dev/null +++ b/modules/home/conf/alacritty/toml/keyboard_bindings.toml @@ -0,0 +1,297 @@ +[[keyboard.bindings]] +action = "Paste" +key = "P" +mods = "Control" + +[[keyboard.bindings]] +action = "Paste" +key = "Insert" +mods = "Shift" + +[[keyboard.bindings]] +chars = "gc" +key = "Slash" +mods = "Control" + +[[keyboard.bindings]] +action = "Copy" +key = "Y" +mods = "Control" + +[[keyboard.bindings]] +action = "ResetFontSize" +key = "Key0" +mods = "Control" + +[[keyboard.bindings]] +action = "IncreaseFontSize" +key = "Equals" +mods = "Control" + +[[keyboard.bindings]] +action = "IncreaseFontSize" +key = "Plus" +mods = "Control" + +[[keyboard.bindings]] +action = "DecreaseFontSize" +key = "Minus" +mods = "Control" + +[[keyboard.bindings]] +action = "ToggleViMode" +key = "Space" +mods = "Control" + +[[keyboard.bindings]] +action = "ScrollToBottom" +key = "Space" +mode = "Vi" +mods = "Control" + +[[keyboard.bindings]] +action = "ScrollToBottom" +key = "I" +mode = "Vi" + +[[keyboard.bindings]] +action = "ToggleViMode" +key = "I" +mode = "Vi" + +[[keyboard.bindings]] +action = "ScrollToBottom" +key = "C" +mode = "Vi" +mods = "Control" + +[[keyboard.bindings]] +action = "ToggleViMode" +key = "C" +mode = "Vi" +mods = "Control" + +[[keyboard.bindings]] +action = "ClearSelection" +key = "Escape" +mode = "Vi" + +[[keyboard.bindings]] +action = "ScrollLineUp" +key = "Y" +mode = "Vi" +mods = "Control" + +[[keyboard.bindings]] +action = "ScrollLineDown" +key = "E" +mode = "Vi" +mods = "Control" + +[[keyboard.bindings]] +action = "ScrollToTop" +key = "G" +mode = "Vi" + +[[keyboard.bindings]] +action = "ScrollToBottom" +key = "G" +mode = "Vi" +mods = "Shift" + +[[keyboard.bindings]] +action = "ScrollPageUp" +key = "B" +mode = "Vi" +mods = "Control" + +[[keyboard.bindings]] +action = "ScrollPageDown" +key = "F" +mode = "Vi" +mods = "Control" + +[[keyboard.bindings]] +action = "ScrollHalfPageUp" +key = "U" +mode = "Vi" +mods = "Control" + +[[keyboard.bindings]] +action = "ScrollHalfPageDown" +key = "D" +mode = "Vi" +mods = "Control" + +[[keyboard.bindings]] +action = "Copy" +key = "Y" +mode = "Vi" + +[[keyboard.bindings]] +action = "ClearSelection" +key = "Y" +mode = "Vi" + +[[keyboard.bindings]] +action = "ToggleNormalSelection" +key = "V" +mode = "Vi" + +[[keyboard.bindings]] +action = "ToggleLineSelection" +key = "V" +mode = "Vi" +mods = "Shift" + +[[keyboard.bindings]] +action = "ToggleBlockSelection" +key = "V" +mode = "Vi" +mods = "Control" + +[[keyboard.bindings]] +action = "ToggleSemanticSelection" +key = "V" +mode = "Vi" +mods = "Alt" + +[[keyboard.bindings]] +action = "Open" +key = "Return" +mode = "Vi" + +[[keyboard.bindings]] +action = "Up" +key = "K" +mode = "Vi" + +[[keyboard.bindings]] +action = "Down" +key = "J" +mode = "Vi" + +[[keyboard.bindings]] +action = "Left" +key = "H" +mode = "Vi" + +[[keyboard.bindings]] +action = "Right" +key = "L" +mode = "Vi" + +[[keyboard.bindings]] +action = "Up" +key = "Up" +mode = "Vi" + +[[keyboard.bindings]] +action = "Down" +key = "Down" +mode = "Vi" + +[[keyboard.bindings]] +action = "Left" +key = "Left" +mode = "Vi" + +[[keyboard.bindings]] +action = "Right" +key = "Right" +mode = "Vi" + +[[keyboard.bindings]] +action = "First" +key = "Key0" +mode = "Vi" + +[[keyboard.bindings]] +action = "Last" +key = "Key4" +mode = "Vi" + +[[keyboard.bindings]] +action = "FirstOccupied" +key = "Key6" +mode = "Vi" +mods = "Shift" + +[[keyboard.bindings]] +action = "High" +key = "H" +mode = "Vi" +mods = "Shift" + +[[keyboard.bindings]] +action = "Middle" +key = "M" +mode = "Vi" +mods = "Shift" + +[[keyboard.bindings]] +action = "Low" +key = "L" +mode = "Vi" +mods = "Shift" + +[[keyboard.bindings]] +action = "SemanticLeft" +key = "B" +mode = "Vi" + +[[keyboard.bindings]] +action = "SemanticRight" +key = "W" +mode = "Vi" + +[[keyboard.bindings]] +action = "SemanticRightEnd" +key = "E" +mode = "Vi" + +[[keyboard.bindings]] +action = "WordLeft" +key = "B" +mode = "Vi" +mods = "Shift" + +[[keyboard.bindings]] +action = "WordRight" +key = "W" +mode = "Vi" +mods = "Shift" + +[[keyboard.bindings]] +action = "WordRightEnd" +key = "E" +mode = "Vi" +mods = "Shift" + +[[keyboard.bindings]] +action = "Bracket" +key = "Key5" +mode = "Vi" +mods = "Shift" + +[[keyboard.bindings]] +action = "SearchForward" +key = "Slash" +mode = "Vi" + +[[keyboard.bindings]] +action = "SearchBackward" +key = "Slash" +mode = "Vi" +mods = "Shift" + +[[keyboard.bindings]] +action = "SearchNext" +key = "N" +mode = "Vi" + +[[keyboard.bindings]] +action = "SearchPrevious" +key = "N" +mode = "Vi" +mods = "Shift" -- cgit 1.4.1