keybindings

This commit is contained in:
Hadi 2024-03-20 18:58:16 +01:00
parent 5ad31e7602
commit bb47c6a943

View File

@ -162,78 +162,68 @@
zoom.default = "100%"; zoom.default = "100%";
}; };
keyMappings = {
"<Super-l>" = "o";
"<Super-t>" = "O";
};
keyBindings = { keyBindings = {
normal = { normal = {
"gh" = "open ${config.home.homeDirectory}/.config/startpage/index.html"; "gh" = "open ${config.home.homeDirectory}/.config/startpage/index.html";
",p" = "tab-move -"; " p" = "tab-move -";
",n" = "tab-move +"; " n" = "tab-move +";
" w" = "tab-close";
"<Super-r>" = "config-source"; " 1" = "tab-focus 1";
" 2" = "tab-focus 2";
" 3" = "tab-focus 3";
" 4" = "tab-focus 4";
" 5" = "tab-focus 5";
" 6" = "tab-focus 6";
" 7" = "tab-focus 7";
" 8" = "tab-focus 8";
" 9" = "tab-focus 9";
" 0" = "tab-focus 10";
"<Super-c>" = "fake-key <Ctrl-c>"; "<Ctrl-w>" = "tab-close";
"<Ctrl-n>" = "open -w";
"<Super-Up>" = "scroll-to-perc 0"; "<Ctrl-1>" = "tab-focus 1";
"<Super-Down>" = "scroll-to-perc"; "<Ctrl-2>" = "tab-focus 2";
"<Super-Left>" = "back"; "<Ctrl-3>" = "tab-focus 3";
"<Super-Right>" = "forward"; "<Ctrl-4>" = "tab-focus 4";
"<Ctrl-5>" = "tab-focus 5";
"<Super-n>" = "open -w"; "<Ctrl-6>" = "tab-focus 6";
"<Super-Shift-p>" = "open -p"; "<Ctrl-7>" = "tab-focus 7";
"<Ctrl-8>" = "tab-focus 8";
"<Super-w>" = "tab-close"; "<Ctrl-9>" = "tab-focus 9";
"<Super-1>" = "tab-focus 1"; "<Ctrl-0>" = "tab-focus 10";
"<Super-2>" = "tab-focus 2";
"<Super-3>" = "tab-focus 3";
"<Super-4>" = "tab-focus 4";
"<Super-5>" = "tab-focus 5";
"<Super-6>" = "tab-focus 6";
"<Super-7>" = "tab-focus 7";
"<Super-8>" = "tab-focus 8";
"<Super-9>" = "tab-focus 9";
"<Super-0>" = "tab-focus 10";
}; };
command = { command = {
"<Super-w>" = "tab-close"; "<Ctrl-w>" = "tab-close";
"<Ctrl-n>" = "open -w";
"<Super-c>" = "completion-item-yank"; "<Ctrl-1>" = "tab-focus 1";
"<Super-v>" = "fake-key --global <Ctrl-v>"; "<Ctrl-2>" = "tab-focus 2";
"<Ctrl-3>" = "tab-focus 3";
"<Super-Left>" = "rl-beginning-of-line"; "<Ctrl-4>" = "tab-focus 4";
"<Super-Right>" = "rl-end-of-line"; "<Ctrl-5>" = "tab-focus 5";
"<Alt-Backspace>" = "rl-backward-kill-word"; "<Ctrl-6>" = "tab-focus 6";
"<Super-Backspace>" = "rl-unix-line-discard"; "<Ctrl-7>" = "tab-focus 7";
"<Ctrl-8>" = "tab-focus 8";
"<Ctrl-9>" = "tab-focus 9";
"<Ctrl-0>" = "tab-focus 10";
}; };
insert = { insert = {
"<Super-w>" = "tab-close"; "<Ctrl-w>" = "tab-close";
"<Ctrl-n>" = "open -w";
"<Super-c>" = "fake-key <Ctrl-c>"; "<Ctrl-1>" = "tab-focus 1";
"<Super-v>" = "fake-key <Ctrl-v>"; "<Ctrl-2>" = "tab-focus 2";
"<Super-x>" = "fake-key <Ctrl-x>"; "<Ctrl-3>" = "tab-focus 3";
"<Super-z>" = "fake-key <Ctrl-z>"; "<Ctrl-4>" = "tab-focus 4";
"<Ctrl-5>" = "tab-focus 5";
"<Super-Left>" = "fake-key <Home>"; "<Ctrl-6>" = "tab-focus 6";
"<Super-Right>" = "fake-key <End>"; "<Ctrl-7>" = "tab-focus 7";
"<Alt-Backspace>" = "fake-key <Ctrl-Backspace>"; "<Ctrl-8>" = "tab-focus 8";
"<Super-Backspace>" = "fake-key <Shift-Home><Delete>"; "<Ctrl-9>" = "tab-focus 9";
"<Ctrl-0>" = "tab-focus 10";
"<Super-1>" = "tab-focus 1";
"<Super-2>" = "tab-focus 2";
"<Super-3>" = "tab-focus 3";
"<Super-4>" = "tab-focus 4";
"<Super-5>" = "tab-focus 5";
"<Super-6>" = "tab-focus 6";
"<Super-7>" = "tab-focus 7";
"<Super-8>" = "tab-focus 8";
"<Super-9>" = "tab-focus 9";
"<Super-0>" = "tab-focus 10";
}; };
}; };