Fix zellij keybinds

This commit is contained in:
Erwin Boskma 2022-10-30 21:06:40 +01:00
parent a41c19ccc1
commit 457d2b78ef
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU

View file

@ -15,20 +15,30 @@ in
scrollback_editor = "${config.eboskma.programs.emacs.package}/bin/emacsclient"; scrollback_editor = "${config.eboskma.programs.emacs.package}/bin/emacsclient";
pane_frames = false; pane_frames = false;
themes = {
dracula = {
fg = [ 248 248 242 ];
bg = [ 40 42 54 ];
black = [ 0 0 0 ];
red = [ 255 85 85 ];
green = [ 80 250 123 ];
yellow = [ 241 250 140 ];
blue = [ 98 114 164 ];
magenta = [ 255 121 198 ];
cyan = [ 139 233 253 ];
white = [ 255 255 255 ];
orange = [ 255 184 108 ];
};
};
keybinds = { keybinds = {
normal = [ normal = [
{ {
unbind = [ unbind = [
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; } { Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; } { Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; } { Alt = "k"; }
{ Alt = "Up"; }
{ Ctrl = "n"; } { Ctrl = "n"; }
{ Alt = "n"; }
{ Ctrl = "b"; } { Ctrl = "b"; }
]; ];
} }
@ -36,10 +46,6 @@ in
action = [{ SwitchToMode = "Resize"; }]; action = [{ SwitchToMode = "Resize"; }];
key = [{ Ctrl = "m"; }]; key = [{ Ctrl = "m"; }];
} }
{
action = [{ SwitchToMode = "Tmux"; }];
key = [{ Ctrl = "a"; }];
}
{ {
action = [{ MoveFocusOrTab = "Left"; }]; action = [{ MoveFocusOrTab = "Left"; }];
key = [{ Alt = "h"; } { Alt = "Left"; }]; key = [{ Alt = "h"; } { Alt = "Left"; }];
@ -64,22 +70,13 @@ in
resize = [ resize = [
{ {
unbind = [ unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; } { Char = "l"; }
"Right"
{ Char = "j"; } { Char = "j"; }
"Down"
{ Char = "k"; } { Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; } { Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; } { Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; } { Alt = "k"; }
{ Alt = "Up"; } { Ctrl = "b"; }
]; ];
} }
{ {
@ -118,27 +115,16 @@ in
pane = [ pane = [
{ {
unbind = [ unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; } { Char = "l"; }
"Right"
{ Char = "j"; } { Char = "j"; }
"Down"
{ Char = "k"; } { Char = "k"; }
"Up"
{ Char = "n"; } { Char = "n"; }
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; } { Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; } { Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; } { Alt = "k"; }
{ Alt = "Up"; }
{ Char = "f"; } { Char = "f"; }
{ Alt = "n"; }
{ Char = "c"; }
{ Ctrl = "n"; } { Ctrl = "n"; }
{ Ctrl = "b"; }
]; ];
} }
{ {
@ -206,23 +192,12 @@ in
move = [ move = [
{ {
unbind = [ unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; } { Char = "l"; }
"Right"
{ Char = "j"; } { Char = "j"; }
"Down"
{ Char = "k"; } { Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; } { Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; } { Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; } { Alt = "k"; }
{ Alt = "Up"; }
{ Alt = "n"; }
{ Char = "n"; } { Char = "n"; }
{ Ctrl = "n"; } { Ctrl = "n"; }
]; ];
@ -276,25 +251,15 @@ in
tab = [ tab = [
{ {
unbind = [ unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; } { Char = "l"; }
"Right"
{ Char = "j"; } { Char = "j"; }
"Down"
{ Char = "k"; } { Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; } { Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; } { Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; } { Alt = "k"; }
{ Alt = "Up"; }
{ Char = "n"; } { Char = "n"; }
{ Alt = "n"; }
{ Ctrl = "n"; } { Ctrl = "n"; }
{ Ctrl = "b"; }
]; ];
} }
{ {
@ -338,24 +303,14 @@ in
scroll = [ scroll = [
{ {
unbind = [ unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; } { Char = "l"; }
"Right"
{ Char = "j"; } { Char = "j"; }
"Down"
{ Char = "k"; } { Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; } { Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; } { Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; } { Alt = "k"; }
{ Alt = "Up"; }
{ Char = "e"; }
{ Ctrl = "n"; } { Ctrl = "n"; }
{ Ctrl = "b"; }
]; ];
} }
{ {
@ -411,25 +366,14 @@ in
entersearch = [ entersearch = [
{ {
unbind = [ unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; } { Char = "l"; }
"Right"
{ Char = "j"; } { Char = "j"; }
"Down"
{ Char = "k"; } { Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; } { Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; } { Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; } { Alt = "k"; }
{ Alt = "Up"; }
{ Char = "e"; } { Char = "e"; }
{ Ctrl = "c"; } { Ctrl = "c"; }
{ Alt = "n"; }
]; ];
} }
{ {
@ -461,28 +405,16 @@ in
search = [ search = [
{ {
unbind = [ unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; } { Char = "l"; }
"Right"
{ Char = "j"; } { Char = "j"; }
"Down"
{ Char = "k"; } { Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; } { Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; } { Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; } { Alt = "k"; }
{ Alt = "Up"; }
{ Char = "e"; }
{ Ctrl = "c"; } { Ctrl = "c"; }
{ Alt = "n"; }
{ Ctrl = "n"; } { Ctrl = "n"; }
{ Char = "n"; }
{ Char = "p"; } { Char = "p"; }
{ Ctrl = "b"; }
]; ];
} }
{ {
@ -538,15 +470,9 @@ in
renametab = [ renametab = [
{ {
unbind = [ unbind = [
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; } { Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; } { Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; } { Alt = "k"; }
{ Alt = "Up"; }
{ Alt = "n"; }
]; ];
} }
{ {
@ -574,15 +500,9 @@ in
renamepane = [ renamepane = [
{ {
unbind = [ unbind = [
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; } { Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; } { Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; } { Alt = "k"; }
{ Alt = "Up"; }
{ Alt = "n"; }
]; ];
} }
{ {
@ -610,16 +530,11 @@ in
session = [ session = [
{ {
unbind = [ unbind = [
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; } { Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; } { Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; } { Alt = "k"; }
{ Alt = "Up"; }
{ Alt = "n"; }
{ Ctrl = "n"; } { Ctrl = "n"; }
{ Ctrl = "b"; }
]; ];
} }
{ {
@ -650,66 +565,7 @@ in
tmux = [ tmux = [
{ {
unbind = [ unbind = true;
{ Char = "h"; }
"Left"
{ Char = "l"; }
"Right"
{ Char = "j"; }
"Down"
{ Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Alt = "n"; }
{ Ctrl = "n"; }
];
}
{
action = [{ SwitchToMode = "Resize"; }];
key = [{ Ctrl = "m"; }];
}
{
action = [{ MoveFocus = "Left"; } { SwitchToMode = "Normal"; }];
key = [{ Char = "h"; }];
}
{
action = [{ MoveFocus = "Right"; } { SwitchToMode = "Normal"; }];
key = [{ Char = "i"; }];
}
{
action = [{ MoveFocus = "Down"; } { SwitchToMode = "Normal"; }];
key = [{ Char = "n"; }];
}
{
action = [{ MoveFocus = "Up"; } { SwitchToMode = "Normal"; }];
key = [{ Char = "e"; }];
}
{
action = [{ NewPane = null; }];
key = [{ Alt = "n"; }];
}
{
action = [{ MoveFocusOrTab = "Left"; }];
key = [{ Alt = "h"; } { Alt = "Left"; }];
}
{
action = [{ MoveFocusOrTab = "Right"; }];
key = [{ Alt = "i"; } { Alt = "Right"; }];
}
{
action = [{ MoveFocus = "Down"; }];
key = [{ Alt = "n"; } { Alt = "Down"; }];
}
{
action = [{ MoveFocus = "Up"; }];
key = [{ Alt = "e"; } { Alt = "Up"; }];
} }
]; ];
}; };