Skip to content

Commit

Permalink
Merge pull request #36 from SteavenGamerYT/patch-3
Browse files Browse the repository at this point in the history
i tried to convert most keybindings from kitty to this new terminal
  • Loading branch information
ChrisTitusTech authored Jul 30, 2024
2 parents 041eae9 + e08006c commit 358f25b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 35 deletions.
10 changes: 2 additions & 8 deletions config/alacritty/alacritty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,8 @@ working_directory = "None"

# Themes --
import = [
# -- Themes --
#"~/.config/alacritty/catppuccin-macchiato.toml",
"~/.config/alacritty/nordic.toml",
# "~/.config/alacritty/xcad.toml",
# "~/.config/alacritty/dracula.toml",
# "~/.config/alacritty/catppuccin-mocha.toml",
# "~/.config/alacritty/solarized_dark.toml",
# "~/.config/alacritty/solarized-osaka.toml",
"~/.config/alacritty/nordic.toml",
"~/.config/alacritty/keybinds.toml"
]

[window]
Expand Down
77 changes: 50 additions & 27 deletions config/alacritty/keybinds.toml
Original file line number Diff line number Diff line change
@@ -1,33 +1,56 @@
[keyboard]
bindings = [
# switch tabs
{ key = "1", mods = "Control", chars = "\u00021" },
{ key = "2", mods = "Control", chars = "\u00022" },
{ key = "3", mods = "Control", chars = "\u00023" },
{ key = "4", mods = "Control", chars = "\u00024" },
{ key = "5", mods = "Control", chars = "\u00025" },
{ key = "6", mods = "Control", chars = "\u00026" },
{ key = "7", mods = "Control", chars = "\u00027" },
{ key = "8", mods = "Control", chars = "\u00028" },
{ key = "9", mods = "Control", chars = "\u00029" },
bindings = [
# Clipboard
{ key = "V", mods = "Super", action = "Paste" },
{ key = "S", mods = "Control|Shift", action = "Paste" },
{ key = "C", mods = "Super", action = "Copy" },
{ key = "Insert", mods = "Shift", action = "PasteSelection" },
# { key = "C", mods = "Control", action = "Copy" }, # commented out
{ key = "V", mods = "Control", action = "Paste" },
{ key = "Insert", mods = "Shift", action = "Paste" },

{ key = "T", mods = "Control", chars = "\u0002c" }, # create new window(aka tab)
{ key = "T", mods = "Control|Shift", chars = "\u0002!" }, # break pane into new window
# Scrolling
{ key = "Up", mods = "Control|Shift", action = "ScrollLineUp" },
{ key = "Down", mods = "Control|Shift", action = "ScrollLineDown" },
{ key = "K", mods = "Control|Shift", action = "ScrollLineUp" },
{ key = "J", mods = "Control|Shift", action = "ScrollLineDown" },
{ key = "PageUp", mods = "Control|Shift", action = "ScrollPageUp" },
{ key = "PageDown", mods = "Control|Shift", action = "ScrollPageDown" },
{ key = "Home", mods = "Control|Shift", action = "ScrollToTop" },
{ key = "End", mods = "Control|Shift", action = "ScrollToBottom" },
# { key = "H", mods = "Control|Shift", action = "ShowScrollback" },

{ key = "Z", mods = "Control", chars = "\u0002z" }, # detach tmux session
{ key = "W", mods = "Control", chars = "\u0002x" }, # close window/pane
{ key = "N", mods = "Control|Shift", chars = "\u0002N" }, # open Floax
{ key = "W", mods = "Control|Shift", chars = "\u0002w" }, # list windows
{ key = "Q", mods = "Control|Shift", chars = "\u0002Q" }, # Quit Session
# Window management
# { key = "N", mods = "Super", action = "SpawnNewInstance" },
# { key = "W", mods = "Super", action = "Close" },
# { key = "Enter", mods = "Control|Shift", action = "SpawnNewInstance" },
# { key = "RightBracket", mods = "Control|Shift", action = "NextWindow" },
# { key = "LeftBracket", mods = "Control|Shift", action = "PreviousWindow" },
# { key = "F", mods = "Control|Shift", action = "MoveForward" },
# { key = "B", mods = "Control|Shift", action = "MoveBackward" },
# { key = "Grave", mods = "Control|Shift", action = "MoveToTop" },
# { key = "Key1", mods = "Control|Shift", action = "MoveToFirst" },
# { key = "Key2", mods = "Control|Shift", action = "MoveToSecond" },
# { key = "Key3", mods = "Control|Shift", action = "MoveToThird" },
# { key = "Key4", mods = "Control|Shift", action = "MoveToFourth" },
# { key = "Key5", mods = "Control|Shift", action = "MoveToFifth" },
# { key = "Key6", mods = "Control|Shift", action = "MoveToSixth" },
# { key = "Key7", mods = "Control|Shift", action = "MoveToSeventh" },
# { key = "Key8", mods = "Control|Shift", action = "MoveToEighth" },
# { key = "Key9", mods = "Control|Shift", action = "MoveToNinth" },
# { key = "Key0", mods = "Control|Shift", action = "MoveToTenth" },

{ key = "S", mods = "Control", chars = "\u0002%" }, # split window/pane vertically
{ key = "S", mods = "Control|Shift", chars = "\u0002\"" }, # split window/pane horizontally
# Tab management
# { key = "Right", mods = "Control|Shift", action = "NextTab" },
# { key = "Left", mods = "Control|Shift", action = "PreviousTab" },
# { key = "T", mods = "Control|Shift", action = "SpawnNewTab" },
# { key = "Q", mods = "Control|Shift", action = "CloseTab" },
# { key = "L", mods = "Control|Shift", action = "NextLayout" },
# { key = "Period", mods = "Control|Shift", action = "MoveTabForward" },
# { key = "Comma", mods = "Control|Shift", action = "MoveTabBackward" },

{ key = "R", mods = "Control|Shift", chars = "\u0002r" }, # source config file
{ key = "D", mods = "Control|Shift", chars = "\u0002d" }, # detach tmux session

{ key = ";", mods = "Control|Shift", chars = "\u0002;" }, # navigate over to last pane
{ key = ",", mods = "Control", chars = "\u0002," }, # rename the window
{ key = "]", mods = "Control", chars = "\u0002]" }, # open sesh
{ key = "f", mods = "Control", chars = "zi\n" }, # open zi
# Miscellaneous
{ key = "Up", mods = "Control|Shift", action = "IncreaseFontSize" },
{ key = "Down", mods = "Control|Shift", action = "DecreaseFontSize" },
{ key = "Backspace", mods = "Control|Shift", action = "ResetFontSize" },
]

0 comments on commit 358f25b

Please sign in to comment.