From b4030c16b9f8e74b3130beb0911b49b7ca2ed22a Mon Sep 17 00:00:00 2001 From: ooks-io Date: Fri, 9 Feb 2024 22:04:39 +1300 Subject: [PATCH] feat: zellij keybinds --- .../console/multiplexer/zellij/default.nix | 15 ++++ theme.nix | 74 ------------------- 2 files changed, 15 insertions(+), 74 deletions(-) delete mode 100644 theme.nix diff --git a/home/modules/console/multiplexer/zellij/default.nix b/home/modules/console/multiplexer/zellij/default.nix index b44f5ec..8586c32 100644 --- a/home/modules/console/multiplexer/zellij/default.nix +++ b/home/modules/console/multiplexer/zellij/default.nix @@ -30,6 +30,21 @@ in }; }; }; + xdg.configFile."zellij/config.kdl".text = /* kdl */ '' + keybinds { + shared_except "locked" { + bind "Alt 1" { GoToTab 1; } + bind "Alt 2" { GoToTab 2; } + bind "Alt 3" { GoToTab 3; } + bind "Alt 4" { GoToTab 4; } + bind "Alt 5" { GoToTab 5; } + bind "Alt 6" { GoToTab 6; } + bind "Alt 7" { GoToTab 7; } + bind "Alt 8" { GoToTab 8; } + bind "Alt 9" { GoToTab 9; } + } + } + ''; xdg.configFile."zellij/layouts/base.kdl".text = /* kdl */ '' layout { default_tab_template { diff --git a/theme.nix b/theme.nix deleted file mode 100644 index ba737df..0000000 --- a/theme.nix +++ /dev/null @@ -1,74 +0,0 @@ - -{ colorscheme }: { - "${colorscheme.slug}" = { - palette = builtins.mapAttrs (name: value: "#${value}") colorscheme.colors; # Add leading '#' - "attributes" = "base09"; - "comment" = { fg = "base03"; modifiers = [ "italic" ]; }; - "constant" = "base09"; - "constant.character.escape" = "base0C"; - "constant.numeric" = "base09"; - "constructor" = "base0D"; - "debug" = "base03"; - "diagnostic" = { modifiers = [ "underlined" ]; }; - "diagnostic.error" = { underline = { style = "curl"; }; }; - "diagnostic.hint" = { underline = { style = "curl"; }; }; - "diagnostic.info" = { underline = { style = "curl"; }; }; - "diagnostic.warning" = { underline = { style = "curl"; }; }; - "diff.delta" = "base09"; - "diff.minus" = "base08"; - "diff.plus" = "base0B"; - "error" = "base08"; - "function" = "base0D"; - "hint" = "base03"; - "info" = "base0D"; - "keyword" = "base0E"; - "label" = "base0E"; - "markup.bold" = { fg = "base0A"; modifiers = [ "bold" ]; }; - "markup.heading" = "base0D"; - "markup.italic" = { fg = "base0E"; modifiers = [ "italic" ]; }; - "markup.link.text" = "base08"; - "markup.link.url" = { fg = "base09"; modifiers = [ "underlined" ]; }; - "markup.list" = "base08"; - "markup.quote" = "base0C"; - "markup.raw" = "base0B"; - "markup.strikethrough" = { modifiers = [ "crossed_out" ]; }; - "namespace" = "base0E"; - "operator" = "base05"; - "special" = "base0D"; - "string" = "base0B"; - "type" = "base0A"; - "ui.background" = { bg = "base00"; }; - "ui.bufferline" = { fg = "base04"; bg = "base00"; }; - "ui.bufferline.active" = { fg = "base00"; bg = "base03"; modifiers = [ "bold" ]; }; - "ui.cursor" = { fg = "base04"; modifiers = [ "reversed" ]; }; - "ui.cursor.insert" = { fg = "base0A"; modifiers = [ "underlined" ]; }; - "ui.cursor.match" = { fg = "base0A"; modifiers = [ "underlined" ]; }; - "ui.cursor.select" = { fg = "base0A"; modifiers = [ "underlined" ]; }; - "ui.cursorline.primary" = { fg = "base05"; bg = "base01"; }; - "ui.gutter" = { bg = "base00"; }; - "ui.help" = { fg = "base06"; bg = "base01"; }; - "ui.linenr" = { fg = "base03"; bg = "base00"; }; - "ui.linenr.selected" = { fg = "base04"; bg = "base01"; modifiers = [ "bold" ]; }; - "ui.menu" = { fg = "base05"; bg = "base01"; }; - "ui.menu.scroll" = { fg = "base03"; bg = "base01"; }; - "ui.menu.selected" = { fg = "base01"; bg = "base04"; }; - "ui.popup" = { bg = "base01"; }; - "ui.selection" = { bg = "base02"; }; - "ui.selection.primary" = { bg = "base02"; }; - "ui.statusline" = { fg = "base0B"; bg = "base02"; }; - "ui.statusline.inactive" = { bg = "base01"; fg = "base02"; }; - "ui.statusline.insert" = { fg = "base00"; bg = "base0B"; }; - "ui.statusline.normal" = { fg = "base00"; bg = "base04"; }; - "ui.statusline.select" = { fg = "base00"; bg = "base0E"; }; - "ui.text" = "base05"; - "ui.text.focus" = "base05"; - "ui.virtual.indent-guide" = { fg = "base03"; }; - "ui.virtual.ruler" = { bg = "base01"; }; - "ui.virtual.whitespace" = { fg = "base01"; }; - "ui.window" = { bg = "base01"; }; - "variable" = "base08"; - "variable.other.member" = "base08"; - "warning" = "base09"; - }; -} -