From 3e02870d76d27efed3e58c46be2d4bfc0826b7b3 Mon Sep 17 00:00:00 2001 From: PiyushXCoder Date: Mon, 15 Dec 2025 01:21:04 +0530 Subject: [PATCH] feat: zellij and foot --- foot/foot.ini | 41 ++ foot/themes/bamboo-vulgaris.ini | 40 ++ zellij/config.kdl | 807 ++++++++++++++++++++------------ zellij/config.kdl.bak | 557 ++++++++++++++++++++++ zellij/layouts/compact.kdl | 10 + zellij/themes/blade-runner.kdl | 120 +++++ zellij/themes/kanso-ink.kdl | 15 + zellij/themes/kanso.kdl | 17 + zellij/themes/molokai-dark.kdl | 120 +++++ zellij/themes/onedark.kdl | 120 +++++ zellij/themes/vscode.kdl | 16 + zellij/themes/white.kdl | 16 + 12 files changed, 1587 insertions(+), 292 deletions(-) create mode 100644 foot/foot.ini create mode 100644 foot/themes/bamboo-vulgaris.ini create mode 100644 zellij/config.kdl.bak create mode 100644 zellij/layouts/compact.kdl create mode 100644 zellij/themes/blade-runner.kdl create mode 100644 zellij/themes/kanso-ink.kdl create mode 100644 zellij/themes/kanso.kdl create mode 100644 zellij/themes/molokai-dark.kdl create mode 100644 zellij/themes/onedark.kdl create mode 100644 zellij/themes/vscode.kdl create mode 100644 zellij/themes/white.kdl diff --git a/foot/foot.ini b/foot/foot.ini new file mode 100644 index 0000000..269f605 --- /dev/null +++ b/foot/foot.ini @@ -0,0 +1,41 @@ +include=/usr/share/foot/themes/srcery + +# ========================= +# General +# ========================= +[main] +shell=/bin/zellij +font=JetBrainsMono Nerd Font:size=9.5 +dpi-aware=yes +term=xterm-256color + +# ========================= +# Scrollback +# ========================= +[scrollback] +lines=50 + +# ========================= +# Colors & Transparency +# ========================= +[colors] +alpha=0.85 +background=1c1b19 + +# ========================= +# Cursor +# ========================= +[cursor] +style=block +blink=no + +# ========================= +# Window +# ========================= +# [window] + +# ========================= +# Performance tuning +# ========================= +[mouse] +hide-when-typing=yes diff --git a/foot/themes/bamboo-vulgaris.ini b/foot/themes/bamboo-vulgaris.ini new file mode 100644 index 0000000..be325e5 --- /dev/null +++ b/foot/themes/bamboo-vulgaris.ini @@ -0,0 +1,40 @@ +# ========================= +# Bamboo Vulgaris (foot) +# Calm green + warm bamboo +# ========================= + +[colors] +# Transparency +alpha=0.85 + +# Core +background=1b2219 # deep moss +foreground=e6f0dc # bamboo fiber + +# Cursor +cursor=9bcf53 +cursor-text=1b2219 + +# Selection +selection-background=2e3b2a +selection-foreground=f1f7ea + +# Normal colors +regular0=1f261d # black (earth) +regular1=8f3b2f # red (bark) +regular2=6fa34d # green (bamboo) +regular3=c6b24a # yellow (stalk) +regular4=4f7f6a # blue-green +regular5=7b6d8d # muted violet +regular6=5e9c8f # teal +regular7=dfead3 # light fiber + +# Bright colors +bright0=2a3327 +bright1=b4543f +bright2=9bcf53 +bright3=e2cf6b +bright4=6aa68a +bright5=9a8fb3 +bright6=7fc2b4 +bright7=f3f8ee diff --git a/zellij/config.kdl b/zellij/config.kdl index 273b9b0..500f0c4 100644 --- a/zellij/config.kdl +++ b/zellij/config.kdl @@ -1,295 +1,386 @@ -// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true" +// +// THIS FILE WAS AUTOGENERATED BY ZELLIJ, THE PREVIOUS FILE AT THIS LOCATION WAS COPIED TO: /home/piyush/.config/zellij/config.kdl.bak +// + keybinds clear-defaults=true { - normal { - unbind "Ctrl p" - unbind "Ctrl o" - unbind "Ctrl q" - unbind "Ctrl s" - unbind "Ctrl h" - // uncomment this and adjust key if using copy_on_select=false - // bind "Alt c" { Copy; } - } - locked { - bind "Ctrl g" { SwitchToMode "Normal"; } - } - resize { - bind "Ctrl n" { SwitchToMode "Normal"; } - bind "h" "Left" { Resize "Increase Left"; } - bind "j" "Down" { Resize "Increase Down"; } - bind "k" "Up" { Resize "Increase Up"; } - bind "l" "Right" { Resize "Increase Right"; } - bind "H" { Resize "Decrease Left"; } - bind "J" { Resize "Decrease Down"; } - bind "K" { Resize "Decrease Up"; } - bind "L" { Resize "Decrease Right"; } - bind "=" "+" { Resize "Increase"; } - bind "-" { Resize "Decrease"; } - } - pane { - bind "Ctrl a" { SwitchToMode "Normal"; } - bind "h" "Left" { MoveFocus "Left"; SwitchToMode "Normal"; } - bind "l" "Right" { MoveFocus "Right"; SwitchToMode "Normal"; } - bind "j" "Down" { MoveFocus "Down"; SwitchToMode "Normal"; } - bind "k" "Up" { MoveFocus "Up"; SwitchToMode "Normal"; } - bind "p" { SwitchFocus; SwitchToMode "Normal"; } - bind "n" { NewPane; SwitchToMode "Normal"; } - bind "d" { NewPane "Down"; SwitchToMode "Normal"; } - //bind "r" { NewPane "Right"; SwitchToMode "Normal"; } - bind "x" { CloseFocus; SwitchToMode "Normal"; } - bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; } - bind "f" { TogglePaneFrames; SwitchToMode "Normal"; } - bind "w" { ToggleFloatingPanes; SwitchToMode "Normal"; } - bind "Ctrl a" { ToggleFloatingPanes; SwitchToMode "Normal"; } - bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "Normal"; } - bind "r" { SwitchToMode "RenamePane"; PaneNameInput 0;} - } - tab { - bind "Ctrl t" { SwitchToMode "Normal"; } - bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; } - bind "h" "Left" "Up" "k" { GoToPreviousTab; SwitchToMode "Normal"; } - bind "l" "Right" "Down" "j" { GoToNextTab; SwitchToMode "Normal"; } - bind "n" { NewTab; SwitchToMode "Normal"; SwitchToMode "Normal"; } - bind "x" { CloseTab; SwitchToMode "Normal"; SwitchToMode "Normal"; } - bind "s" { ToggleActiveSyncTab; SwitchToMode "Normal"; } - bind "1" { GoToTab 1; SwitchToMode "Normal"; } - bind "2" { GoToTab 2; SwitchToMode "Normal"; } - bind "3" { GoToTab 3; SwitchToMode "Normal"; } - bind "4" { GoToTab 4; SwitchToMode "Normal"; } - bind "5" { GoToTab 5; SwitchToMode "Normal"; } - bind "6" { GoToTab 6; SwitchToMode "Normal"; } - bind "7" { GoToTab 7; SwitchToMode "Normal"; } - bind "8" { GoToTab 8; SwitchToMode "Normal"; } - bind "9" { GoToTab 9; SwitchToMode "Normal"; } - bind "a" { ToggleTab; SwitchToMode "Normal"; } - } - scroll { - bind "Ctrl s" { SwitchToMode "Normal"; } - bind "e" { EditScrollback; SwitchToMode "Normal"; } - bind "s" { SwitchToMode "EnterSearch"; SearchInput 0; } - bind "G" { ScrollToBottom; SwitchToMode "Normal"; } - bind "j" "Down" { ScrollDown; } - bind "k" "Up" { ScrollUp; } - bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; } - bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; } - bind "d" { HalfPageScrollDown; } - bind "u" { HalfPageScrollUp; } - // uncomment this and adjust key if using copy_on_select=false - // bind "Alt c" { Copy; } - } - search { - bind "Ctrl /" { SwitchToMode "Normal"; } - bind "j" "Down" { ScrollDown; } - bind "k" "Up" { ScrollUp; } - bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; } - bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; } - bind "d" { HalfPageScrollDown; } - bind "u" { HalfPageScrollUp; } - bind "n" { Search "down"; } - bind "p" { Search "up"; } - bind "c" { SearchToggleOption "CaseSensitivity"; } - bind "w" { SearchToggleOption "Wrap"; } - bind "o" { SearchToggleOption "WholeWord"; } - } - entersearch { - bind "Ctrl s" "Esc" { SwitchToMode "Scroll"; } - bind "Enter" { SwitchToMode "Search"; } - } - renametab { - bind "Ctrl c" { SwitchToMode "Normal"; } - bind "Esc" { UndoRenameTab; SwitchToMode "Tab"; } - } - renamepane { - bind "Ctrl c" { SwitchToMode "Normal"; } - bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; } - } - session { - bind "Ctrl x" { SwitchToMode "Normal"; } - bind "Ctrl x" { SwitchToMode "Scroll"; } - bind "d" { Detach; } - } - tmux { - bind "[" { SwitchToMode "Scroll"; } - bind "Ctrl b" { Write 2; SwitchToMode "Normal"; } - bind "\"" { NewPane "Down"; SwitchToMode "Normal"; } - bind "%" { NewPane "Right"; SwitchToMode "Normal"; } - bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; } - bind "c" { NewTab; SwitchToMode "Normal"; } - bind "," { SwitchToMode "RenameTab"; } - bind "p" { GoToPreviousTab; SwitchToMode "Normal"; } - bind "n" { GoToNextTab; SwitchToMode "Normal"; } - bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; } - bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; } - bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; } - bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; } - bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; } - bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; } - bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; } - bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; } - bind "o" { FocusNextPane; } - bind "d" { Detach; } - bind "Space" { NextSwapLayout; } - bind "x" { CloseFocus; SwitchToMode "Normal"; } - } - shared_except "locked" { - bind "Ctrl g" { SwitchToMode "Locked"; } - bind "Alt n" { NewPane; } - bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; } - bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; } - bind "Alt j" "Alt Down" { MoveFocus "Down"; } - bind "Alt k" "Alt Up" { MoveFocus "Up"; } - bind "Alt =" "Alt +" { Resize "Increase"; } - bind "Alt -" { Resize "Decrease"; } - bind "Alt [" { PreviousSwapLayout; } - bind "Alt ]" { NextSwapLayout; } - - bind "Ctrl k" { GoToPreviousTab; SwitchToMode "Normal"; } - bind "Ctrl j" { GoToNextTab; SwitchToMode "Normal"; } - } - shared_except "normal" "locked" { - bind "Enter" "Esc" { SwitchToMode "Normal"; } - } - shared_except "pane" "locked" { - bind "Ctrl a" { SwitchToMode "Pane"; } - } - shared_except "resize" "locked" { - bind "Ctrl n" { SwitchToMode "Resize"; } - } - shared_except "scroll" "locked" { - bind "Ctrl f" { SwitchToMode "Scroll"; } - } - shared_except "session" "locked" { - bind "Ctrl x" { SwitchToMode "Session"; } - } - shared_except "tab" "locked" { - bind "Ctrl t" { SwitchToMode "Tab"; } - } - shared_except "renametab" "locked" { - bind "Alt r" { SwitchToMode "RenameTab"; } - } - shared_except "tmux" "locked" { - bind "Ctrl b" { SwitchToMode "Tmux"; } - } -} - -plugins { - tab-bar { path "tab-bar"; } - status-bar { path "status-bar"; } - strider { path "strider"; } - compact-bar { path "compact-bar"; } -} - -// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP -// eg. when terminal window with an active zellij session is closed -// Options: -// - detach (Default) -// - quit -// -on_force_close "quit" - -// Send a request for a simplified ui (without arrow fonts) to plugins -// Options: -// - true -// - false (Default) -// -simplified_ui true - -// Choose the path to the default shell that zellij will use for opening new panes -// Default: $SHELL -// -default_shell "fish" - -// Toggle between having pane frames around the panes -// Options: -// - true (default) -// - false -// -pane_frames false - -// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible -// Options: -// - true (default) -// - false -// -// auto_layout true - -// Define color themes for Zellij -// For more examples, see: https://github.com/zellij-org/zellij/tree/main/example/themes -// Once these themes are defined, one of them should to be selected in the "theme" section of this file -// -themes { - rose-pine { - bg "#403d52" - fg "#e0def4" - red "#eb6f92" - green "#31748f" - blue "#9ccfd8" - yellow "#f6c177" - magenta "#c4a7e7" - orange "#fe640b" - cyan "#ebbcba" - black "#26233a" - white "#e0def4" - } - gruvbox-dark { - fg "#D5C4A1" - bg "#282828" - black "#3C3836" - red "#CC241D" - green "#98971A" - yellow "#D79921" - blue "#3C8588" - magenta "#B16286" - cyan "#689D6A" - white "#FBF1C7" - orange "#D65D0E" - } - tokyo-night { - fg 169 177 214 - bg 26 27 38 - black 56 62 90 - red 249 51 87 - green 158 206 106 - yellow 224 175 104 - blue 122 162 247 - magenta 187 154 247 - cyan 42 195 222 - white 192 202 245 - orange 255 158 100 + normal { + bind "esc" { SwitchToMode "locked"; } + } + locked { + bind "Ctrl g" { SwitchToMode "normal"; } + bind "Ctrl t" { NewTab; SwitchToMode "locked"; } + bind "Ctrl w" { CloseTab; SwitchToMode "locked"; } + bind "Ctrl f" { SwitchToMode "entersearch"; } + bind "Alt n" { NewPane; } + bind "Alt Shift j" { PageScrollDown; } + bind "Alt Shift k" { PageScrollUp; } + bind "Alt left" { MoveFocusOrTab "left"; } + bind "Alt down" { MoveFocus "down"; } + bind "Alt up" { MoveFocus "up"; } + bind "Alt right" { MoveFocusOrTab "right"; } + bind "PageDown" { PageScrollDown; } + bind "PageUp" { PageScrollUp; } + } + pane { + bind "left" { MoveFocus "left"; } + bind "down" { MoveFocus "down"; } + bind "up" { MoveFocus "up"; } + bind "right" { MoveFocus "right"; } + bind "c" { SwitchToMode "renamepane"; PaneNameInput 0; } + bind "d" { NewPane "down"; SwitchToMode "normal"; } + bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "normal"; } + bind "f" { ToggleFocusFullscreen; SwitchToMode "normal"; } + bind "h" { MoveFocus "left"; } + bind "i" { TogglePanePinned; SwitchToMode "normal"; } + bind "j" { MoveFocus "down"; } + bind "k" { MoveFocus "up"; } + bind "l" { MoveFocus "right"; } + bind "n" { NewPane; SwitchToMode "normal"; } + bind "p" { SwitchFocus; } + bind "Ctrl p" { SwitchToMode "normal"; } + bind "r" { NewPane "right"; SwitchToMode "normal"; } + bind "s" { NewPane "stacked"; SwitchToMode "normal"; } + bind "w" { ToggleFloatingPanes; SwitchToMode "normal"; } + bind "z" { TogglePaneFrames; SwitchToMode "normal"; } + } + tab { + bind "left" { GoToPreviousTab; } + bind "down" { GoToNextTab; } + bind "up" { GoToPreviousTab; } + bind "right" { GoToNextTab; } + bind "1" { GoToTab 1; SwitchToMode "normal"; } + bind "2" { GoToTab 2; SwitchToMode "normal"; } + bind "3" { GoToTab 3; SwitchToMode "normal"; } + bind "4" { GoToTab 4; SwitchToMode "normal"; } + bind "5" { GoToTab 5; SwitchToMode "normal"; } + bind "6" { GoToTab 6; SwitchToMode "normal"; } + bind "7" { GoToTab 7; SwitchToMode "normal"; } + bind "8" { GoToTab 8; SwitchToMode "normal"; } + bind "9" { GoToTab 9; SwitchToMode "normal"; } + bind "[" { BreakPaneLeft; SwitchToMode "normal"; } + bind "]" { BreakPaneRight; SwitchToMode "normal"; } + bind "b" { BreakPane; SwitchToMode "normal"; } + bind "h" { GoToPreviousTab; } + bind "j" { GoToNextTab; } + bind "k" { GoToPreviousTab; } + bind "l" { GoToNextTab; } + bind "n" { NewTab; SwitchToMode "normal"; } + bind "r" { SwitchToMode "renametab"; TabNameInput 0; } + bind "s" { ToggleActiveSyncTab; SwitchToMode "normal"; } + bind "Ctrl t" { SwitchToMode "normal"; } + bind "x" { CloseTab; SwitchToMode "normal"; } + bind "tab" { ToggleTab; } + } + resize { + bind "left" { Resize "Increase left"; } + bind "down" { Resize "Increase down"; } + bind "up" { Resize "Increase up"; } + bind "right" { Resize "Increase right"; } + bind "+" { Resize "Increase"; } + bind "-" { Resize "Decrease"; } + bind "=" { Resize "Increase"; } + bind "H" { Resize "Decrease left"; } + bind "J" { Resize "Decrease down"; } + bind "K" { Resize "Decrease up"; } + bind "L" { Resize "Decrease right"; } + bind "h" { Resize "Increase left"; } + bind "j" { Resize "Increase down"; } + bind "k" { Resize "Increase up"; } + bind "l" { Resize "Increase right"; } + bind "Ctrl n" { SwitchToMode "normal"; } + } + move { + bind "left" { MovePane "left"; } + bind "down" { MovePane "down"; } + bind "up" { MovePane "up"; } + bind "right" { MovePane "right"; } + bind "h" { MovePane "left"; } + bind "Ctrl h" { SwitchToMode "normal"; } + bind "j" { MovePane "down"; } + bind "k" { MovePane "up"; } + bind "l" { MovePane "right"; } + bind "n" { MovePane; } + bind "p" { MovePaneBackwards; } + bind "tab" { MovePane; } + } + scroll { + bind "e" { EditScrollback; SwitchToMode "normal"; } + bind "s" { SwitchToMode "entersearch"; SearchInput 0; } + } + search { + bind "c" { SearchToggleOption "CaseSensitivity"; } + bind "n" { Search "down"; } + bind "o" { SearchToggleOption "WholeWord"; } + bind "p" { Search "up"; } + bind "w" { SearchToggleOption "Wrap"; } + } + session { + bind "a" { + LaunchOrFocusPlugin "zellij:about" { + floating true + move_to_focused_tab true + } + SwitchToMode "normal" + } + bind "c" { + LaunchOrFocusPlugin "configuration" { + floating true + move_to_focused_tab true + } + SwitchToMode "normal" + } + bind "Ctrl o" { SwitchToMode "normal"; } + bind "p" { + LaunchOrFocusPlugin "plugin-manager" { + floating true + move_to_focused_tab true + } + SwitchToMode "normal" + } + bind "s" { + LaunchOrFocusPlugin "zellij:share" { + floating true + move_to_focused_tab true + } + SwitchToMode "normal" + } + bind "w" { + LaunchOrFocusPlugin "session-manager" { + floating true + move_to_focused_tab true + } + SwitchToMode "normal" + } + } + shared_except "locked" { + bind "Alt left" { MoveFocusOrTab "left"; } + bind "Alt down" { MoveFocus "down"; } + bind "Alt up" { MoveFocus "up"; } + bind "Alt right" { MoveFocusOrTab "right"; } + bind "Alt +" { Resize "Increase"; } + bind "Alt -" { Resize "Decrease"; } + bind "Alt =" { Resize "Increase"; } + bind "Alt [" { PreviousSwapLayout; } + bind "Alt ]" { NextSwapLayout; } + bind "Alt f" { ToggleFloatingPanes; } + bind "Ctrl g" { SwitchToMode "locked"; } + bind "Alt h" { MoveFocusOrTab "left"; } + bind "Alt i" { MoveTab "left"; } + bind "Alt j" { MoveFocus "down"; } + bind "Alt k" { MoveFocus "up"; } + // bind "Alt l" { MoveFocusOrTab "right"; } + bind "Alt n" { NewPane; } + bind "Alt o" { MoveTab "right"; } + bind "Alt p" { TogglePaneInGroup; } + bind "Alt Shift p" { ToggleGroupMarking; } + bind "Ctrl Shift w" { Quit; } + } + shared { + bind "Ctrl k" { GoToPreviousTab; } + bind "Ctrl j" { GoToNextTab; } + } + shared_except "locked" "move" { + bind "Ctrl h" { SwitchToMode "move"; } + } + shared_except "locked" "session" { + bind "Ctrl Alt o" { SwitchToMode "session"; } + } + shared_except "locked" "scroll" "search" "tmux" { + bind "Ctrl b" { SwitchToMode "tmux"; } + } + shared_except "locked" "scroll" "search" { + bind "Ctrl f" { SwitchToMode "scroll"; } + } + shared_except "locked" "tab" { + bind "Ctrl t" { SwitchToMode "tab"; } + } + shared_except "locked" "pane" { + bind "Ctrl p" { SwitchToMode "pane"; } + } + shared_except "locked" "resize" { + bind "Ctrl n" { SwitchToMode "resize"; } + } + shared_except "normal" "locked" "entersearch" { + bind "enter" { SwitchToMode "normal"; } + } + shared_except "normal" "locked" "entersearch" "renametab" "renamepane" { + bind "esc" { SwitchToMode "normal"; } + } + shared_among "pane" "tmux" { + bind "x" { CloseFocus; SwitchToMode "normal"; } + } + shared_among "scroll" "search" { + bind "PageDown" { PageScrollDown; } + bind "PageUp" { PageScrollUp; } + bind "left" { PageScrollUp; } + bind "down" { ScrollDown; } + bind "up" { ScrollUp; } + bind "right" { PageScrollDown; } + bind "Ctrl b" { PageScrollUp; } + bind "Ctrl c" { ScrollToBottom; SwitchToMode "normal"; } + bind "d" { HalfPageScrollDown; } + bind "Ctrl f" { PageScrollDown; } + bind "h" { PageScrollUp; } + bind "j" { ScrollDown; } + bind "k" { ScrollUp; } + bind "l" { PageScrollDown; } + bind "Ctrl s" { SwitchToMode "normal"; } + bind "u" { HalfPageScrollUp; } + } + entersearch { + bind "Ctrl c" { SwitchToMode "scroll"; } + bind "esc" { SwitchToMode "scroll"; } + bind "enter" { SwitchToMode "search"; } + } + renametab { + bind "esc" { UndoRenameTab; SwitchToMode "tab"; } + } + shared_among "renametab" "renamepane" { + bind "Ctrl c" { SwitchToMode "normal"; } + } + renamepane { + bind "esc" { UndoRenamePane; SwitchToMode "pane"; } + } + shared_among "session" "tmux" { + bind "d" { Detach; } + } + tmux { + bind "left" { MoveFocus "left"; SwitchToMode "normal"; } + bind "down" { MoveFocus "down"; SwitchToMode "normal"; } + bind "up" { MoveFocus "up"; SwitchToMode "normal"; } + bind "right" { MoveFocus "right"; SwitchToMode "normal"; } + bind "space" { NextSwapLayout; } + bind "\"" { NewPane "down"; SwitchToMode "normal"; } + bind "%" { NewPane "right"; SwitchToMode "normal"; } + bind "," { SwitchToMode "renametab"; } + bind "[" { SwitchToMode "scroll"; } + bind "Ctrl b" { Write 2; SwitchToMode "normal"; } + bind "c" { NewTab; SwitchToMode "normal"; } + bind "h" { MoveFocus "left"; SwitchToMode "normal"; } + bind "j" { MoveFocus "down"; SwitchToMode "normal"; } + bind "k" { MoveFocus "up"; SwitchToMode "normal"; } + bind "l" { MoveFocus "right"; SwitchToMode "normal"; } + bind "n" { GoToNextTab; SwitchToMode "normal"; } + bind "o" { FocusNextPane; } + bind "p" { GoToPreviousTab; SwitchToMode "normal"; } + bind "z" { ToggleFocusFullscreen; SwitchToMode "normal"; } } } +// Plugin aliases - can be used to change the implementation of Zellij +// changing these requires a restart to take effect +plugins { + about location="zellij:about" + // compact-bar location="zellij:compact-bar" + compact-bar location="zellij:compact-bar" { // replace it with these lines + tooltip "F1" // choose a keybinding to toggle the hints + } + configuration location="zellij:configuration" + filepicker location="zellij:strider" { + cwd "/" + } + plugin-manager location="zellij:plugin-manager" + session-manager location="zellij:session-manager" + status-bar location="zellij:status-bar" + strider location="zellij:strider" + tab-bar location="zellij:tab-bar" + welcome-screen location="zellij:session-manager" { + welcome_screen true + } +} + +// Plugins to load in the background when a new session starts +// eg. "file:/path/to/my-plugin.wasm" +// eg. "https://example.com/my-plugin.wasm" +load_plugins { +} +web_client { + font "monospace" +} + +// Use a simplified UI without special fonts (arrow glyphs) +// Options: +// - true +// - false (Default) +// +// simplified_ui true + // Choose the theme that is specified in the themes section. // Default: default -// -theme "rose-pine" - +// +theme "kanso" + +// Choose the base input mode of zellij. +// Default: normal +// +default_mode "locked" + +// Choose the path to the default shell that zellij will use for opening new panes +// Default: $SHELL +// +default_shell "/usr/bin/fish" + +// Choose the path to override cwd that zellij will use for opening new panes +// +// default_cwd "/tmp" + // The name of the default layout to load on startup // Default: "default" -// -// default_layout "compact" - -// Choose the mode that zellij uses when starting up. -// Default: normal -// -// default_mode "locked" +// +default_layout "compact" +// The folder in which Zellij will look for layouts +// (Requires restart) +// +// layout_dir "/tmp" + +// The folder in which Zellij will look for themes +// (Requires restart) +// +// theme_dir "/tmp" + // Toggle enabling the mouse mode. // On certain configurations, or terminals this could // potentially interfere with copying text. // Options: // - true (default) // - false -// +// // mouse_mode false - + +// Toggle having pane frames around the panes +// Options: +// - true (default, enabled) +// - false +// +pane_frames false + +// When attaching to an existing session with other users, +// should the session be mirrored (true) +// or should each user have their own cursor (false) +// (Requires restart) +// Default: false +// +// mirror_session true + +// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP +// eg. when terminal window with an active zellij session is closed +// (Requires restart) +// Options: +// - detach (Default) +// - quit +// +on_force_close "quit" + // Configure the scroll back buffer size // This is the number of lines zellij stores for each pane in the scroll back // buffer. Excess number of lines are discarded in a FIFO fashion. +// (Requires restart) // Valid values: positive integers // Default value: 10000 -// +// // scroll_buffer_size 10000 - + // Provide a command to execute when copying text. The text will be piped to // the stdin of the program to perform the copy. This can be used with // terminal emulators which do not support the OSC 52 ANSI control sequence @@ -299,37 +390,169 @@ theme "rose-pine" // copy_command "xclip -selection clipboard" // x11 // copy_command "wl-copy" // wayland // copy_command "pbcopy" // osx - +// +// copy_command "pbcopy" + // Choose the destination for copied text // Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard. // Does not apply when using copy_command. // Options: // - system (default) // - primary -// +// // copy_clipboard "primary" - -// Enable or disable automatic copy (and clear) of selection when releasing mouse + +// Enable automatic copying (and clearing) of selection when releasing mouse // Default: true -// -// copy_on_select false - +// +// copy_on_select true + // Path to the default editor to use to edit pane scrollbuffer // Default: $EDITOR or $VISUAL -// // scrollback_editor "/usr/bin/vim" - -// When attaching to an existing session with other users, -// should the session be mirrored (true) -// or should each user have their own cursor (false) + +// A fixed name to always give the Zellij session. +// Consider also setting `attach_to_session true,` +// otherwise this will error if such a session exists. +// Default: +// +// session_name "My singleton session" + +// When `session_name` is provided, attaches to that session +// if it is already running or creates it otherwise. // Default: false -// -// mirror_session true - -// The folder in which Zellij will look for layouts -// -// layout_dir "/path/to/my/layout_dir" - -// The folder in which Zellij will look for themes -// -// theme_dir "/path/to/my/theme_dir" +// +// attach_to_session true + +// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible +// Options: +// - true (default) +// - false +// +// auto_layout false + +// Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected +// Options: +// - true (default) +// - false +// +// session_serialization false + +// Whether pane viewports are serialized along with the session, default is false +// Options: +// - true +// - false (default) +// +// serialize_pane_viewport false + +// Scrollback lines to serialize along with the pane viewport when serializing sessions, 0 +// defaults to the scrollback size. If this number is higher than the scrollback size, it will +// also default to the scrollback size. This does nothing if `serialize_pane_viewport` is not true. +// +// scrollback_lines_to_serialize 10000 + +// Enable or disable the rendering of styled and colored underlines (undercurl). +// May need to be disabled for certain unsupported terminals +// (Requires restart) +// Default: true +// +// styled_underlines false + +// How often in seconds sessions are serialized +// +// serialization_interval 10000 + +// Enable or disable writing of session metadata to disk (if disabled, other sessions might not know +// metadata info on this session) +// (Requires restart) +// Default: false +// +// disable_session_metadata false + +// Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it) +// (Requires restart) +// Default: true (if the host terminal supports it) +// +// support_kitty_keyboard_protocol false +// Whether to make sure a local web server is running when a new Zellij session starts. +// This web server will allow creating new sessions and attaching to existing ones that have +// opted in to being shared in the browser. +// When enabled, navigate to http://127.0.0.1:8082 +// (Requires restart) +// +// Note: a local web server can still be manually started from within a Zellij session or from the CLI. +// If this is not desired, one can use a version of Zellij compiled without +// `web_server_capability` +// +// Possible values: +// - true +// - false +// Default: false +// +// web_server false +// Whether to allow sessions started in the terminal to be shared through a local web server, assuming one is +// running (see the `web_server` option for more details). +// (Requires restart) +// +// Note: This is an administrative separation and not intended as a security measure. +// +// Possible values: +// - "on" (allow web sharing through the local web server if it +// is online) +// - "off" (do not allow web sharing unless sessions explicitly opt-in to it) +// - "disabled" (do not allow web sharing and do not permit sessions started in the terminal to opt-in to it) +// Default: "off" +// +// web_sharing "off" +// A path to a certificate file to be used when setting up the web client to serve the +// connection over HTTPs +// +// web_server_cert "/path/to/cert.pem" +// A path to a key file to be used when setting up the web client to serve the +// connection over HTTPs +// +// web_server_key "/path/to/key.pem" +/// Whether to enforce https connections to the web server when it is bound to localhost +/// (127.0.0.0/8) +/// +/// Note: https is ALWAYS enforced when bound to non-local interfaces +/// +/// Default: false +// +// enforce_https_for_localhost false + +// Whether to stack panes when resizing beyond a certain size +// Default: true +// +// stacked_resize false + +// Whether to show tips on startup +// Default: true +// +show_startup_tips false + +// Whether to show release notes on first version run +// Default: true +// +// show_release_notes false + +// Whether to enable mouse hover effects and pane grouping functionality +// default is true +// advanced_mouse_actions false + +// The ip address the web server should listen on when it starts +// Default: "127.0.0.1" +// (Requires restart) +// web_server_ip "127.0.0.1" + +// The port the web server should listen on when it starts +// Default: 8082 +// (Requires restart) +// web_server_port 8082 + +// A command to run (will be wrapped with sh -c and provided the RESURRECT_COMMAND env variable) +// after Zellij attempts to discover a command inside a pane when resurrecting sessions, the STDOUT +// of this command will be used instead of the discovered RESURRECT_COMMAND +// can be useful for removing wrappers around commands +// Note: be sure to escape backslashes and similar characters properly +// post_command_discovery_hook "echo $RESURRECT_COMMAND | sed " diff --git a/zellij/config.kdl.bak b/zellij/config.kdl.bak new file mode 100644 index 0000000..9b8a1a9 --- /dev/null +++ b/zellij/config.kdl.bak @@ -0,0 +1,557 @@ +// +// THIS FILE WAS AUTOGENERATED BY ZELLIJ, THE PREVIOUS FILE AT THIS LOCATION WAS COPIED TO: /home/piyush/.config/zellij/config.kdl.bak +// + +keybinds clear-defaults=true { + normal { + bind "esc" { SwitchToMode "locked"; } + } + locked { + bind "Ctrl g" { SwitchToMode "normal"; } + bind "Ctrl t" { NewTab; SwitchToMode "locked"; } + bind "Ctrl w" { CloseTab; SwitchToMode "locked"; } + bind "Ctrl f" { SwitchToMode "entersearch"; } + bind "PageDown" { PageScrollDown; } + bind "PageUp" { PageScrollUp; } + } + pane { + bind "left" { MoveFocus "left"; } + bind "down" { MoveFocus "down"; } + bind "up" { MoveFocus "up"; } + bind "right" { MoveFocus "right"; } + bind "c" { SwitchToMode "renamepane"; PaneNameInput 0; } + bind "d" { NewPane "down"; SwitchToMode "normal"; } + bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "normal"; } + bind "f" { ToggleFocusFullscreen; SwitchToMode "normal"; } + bind "h" { MoveFocus "left"; } + bind "i" { TogglePanePinned; SwitchToMode "normal"; } + bind "j" { MoveFocus "down"; } + bind "k" { MoveFocus "up"; } + bind "l" { MoveFocus "right"; } + bind "n" { NewPane; SwitchToMode "normal"; } + bind "p" { SwitchFocus; } + bind "Ctrl p" { SwitchToMode "normal"; } + bind "r" { NewPane "right"; SwitchToMode "normal"; } + bind "s" { NewPane "stacked"; SwitchToMode "normal"; } + bind "w" { ToggleFloatingPanes; SwitchToMode "normal"; } + bind "z" { TogglePaneFrames; SwitchToMode "normal"; } + } + tab { + bind "left" { GoToPreviousTab; } + bind "down" { GoToNextTab; } + bind "up" { GoToPreviousTab; } + bind "right" { GoToNextTab; } + bind "1" { GoToTab 1; SwitchToMode "normal"; } + bind "2" { GoToTab 2; SwitchToMode "normal"; } + bind "3" { GoToTab 3; SwitchToMode "normal"; } + bind "4" { GoToTab 4; SwitchToMode "normal"; } + bind "5" { GoToTab 5; SwitchToMode "normal"; } + bind "6" { GoToTab 6; SwitchToMode "normal"; } + bind "7" { GoToTab 7; SwitchToMode "normal"; } + bind "8" { GoToTab 8; SwitchToMode "normal"; } + bind "9" { GoToTab 9; SwitchToMode "normal"; } + bind "[" { BreakPaneLeft; SwitchToMode "normal"; } + bind "]" { BreakPaneRight; SwitchToMode "normal"; } + bind "b" { BreakPane; SwitchToMode "normal"; } + bind "h" { GoToPreviousTab; } + bind "j" { GoToNextTab; } + bind "k" { GoToPreviousTab; } + bind "l" { GoToNextTab; } + bind "n" { NewTab; SwitchToMode "normal"; } + bind "r" { SwitchToMode "renametab"; TabNameInput 0; } + bind "s" { ToggleActiveSyncTab; SwitchToMode "normal"; } + bind "Ctrl t" { SwitchToMode "normal"; } + bind "x" { CloseTab; SwitchToMode "normal"; } + bind "tab" { ToggleTab; } + } + resize { + bind "left" { Resize "Increase left"; } + bind "down" { Resize "Increase down"; } + bind "up" { Resize "Increase up"; } + bind "right" { Resize "Increase right"; } + bind "+" { Resize "Increase"; } + bind "-" { Resize "Decrease"; } + bind "=" { Resize "Increase"; } + bind "H" { Resize "Decrease left"; } + bind "J" { Resize "Decrease down"; } + bind "K" { Resize "Decrease up"; } + bind "L" { Resize "Decrease right"; } + bind "h" { Resize "Increase left"; } + bind "j" { Resize "Increase down"; } + bind "k" { Resize "Increase up"; } + bind "l" { Resize "Increase right"; } + bind "Ctrl n" { SwitchToMode "normal"; } + } + move { + bind "left" { MovePane "left"; } + bind "down" { MovePane "down"; } + bind "up" { MovePane "up"; } + bind "right" { MovePane "right"; } + bind "h" { MovePane "left"; } + bind "Ctrl h" { SwitchToMode "normal"; } + bind "j" { MovePane "down"; } + bind "k" { MovePane "up"; } + bind "l" { MovePane "right"; } + bind "n" { MovePane; } + bind "p" { MovePaneBackwards; } + bind "tab" { MovePane; } + } + scroll { + bind "e" { EditScrollback; SwitchToMode "normal"; } + bind "s" { SwitchToMode "entersearch"; SearchInput 0; } + } + search { + bind "c" { SearchToggleOption "CaseSensitivity"; } + bind "n" { Search "down"; } + bind "o" { SearchToggleOption "WholeWord"; } + bind "p" { Search "up"; } + bind "w" { SearchToggleOption "Wrap"; } + } + session { + bind "a" { + LaunchOrFocusPlugin "zellij:about" { + floating true + move_to_focused_tab true + } + SwitchToMode "normal" + } + bind "c" { + LaunchOrFocusPlugin "configuration" { + floating true + move_to_focused_tab true + } + SwitchToMode "normal" + } + bind "Ctrl o" { SwitchToMode "normal"; } + bind "p" { + LaunchOrFocusPlugin "plugin-manager" { + floating true + move_to_focused_tab true + } + SwitchToMode "normal" + } + bind "s" { + LaunchOrFocusPlugin "zellij:share" { + floating true + move_to_focused_tab true + } + SwitchToMode "normal" + } + bind "w" { + LaunchOrFocusPlugin "session-manager" { + floating true + move_to_focused_tab true + } + SwitchToMode "normal" + } + } + shared_except "locked" { + bind "Alt left" { MoveFocusOrTab "left"; } + bind "Alt down" { MoveFocus "down"; } + bind "Alt up" { MoveFocus "up"; } + bind "Alt right" { MoveFocusOrTab "right"; } + bind "Alt +" { Resize "Increase"; } + bind "Alt -" { Resize "Decrease"; } + bind "Alt =" { Resize "Increase"; } + bind "Alt [" { PreviousSwapLayout; } + bind "Alt ]" { NextSwapLayout; } + bind "Alt f" { ToggleFloatingPanes; } + bind "Ctrl g" { SwitchToMode "locked"; } + bind "Alt h" { MoveFocusOrTab "left"; } + bind "Alt i" { MoveTab "left"; } + bind "Alt j" { MoveFocus "down"; } + bind "Alt k" { MoveFocus "up"; } + // bind "Alt l" { MoveFocusOrTab "right"; } + bind "Alt n" { NewPane; } + bind "Alt o" { MoveTab "right"; } + bind "Alt p" { TogglePaneInGroup; } + bind "Alt Shift p" { ToggleGroupMarking; } + bind "Ctrl Shift w" { Quit; } + } + shared { + bind "Ctrl k" { GoToPreviousTab; } + bind "Ctrl j" { GoToNextTab; } + } + shared_except "locked" "move" { + bind "Ctrl h" { SwitchToMode "move"; } + } + shared_except "locked" "session" { + bind "Ctrl Alt o" { SwitchToMode "session"; } + } + shared_except "locked" "scroll" "search" "tmux" { + bind "Ctrl b" { SwitchToMode "tmux"; } + } + shared_except "locked" "scroll" "search" { + bind "Ctrl f" { SwitchToMode "scroll"; } + } + shared_except "locked" "tab" { + bind "Ctrl t" { SwitchToMode "tab"; } + } + shared_except "locked" "pane" { + bind "Ctrl p" { SwitchToMode "pane"; } + } + shared_except "locked" "resize" { + bind "Ctrl n" { SwitchToMode "resize"; } + } + shared_except "normal" "locked" "entersearch" { + bind "enter" { SwitchToMode "normal"; } + } + shared_except "normal" "locked" "entersearch" "renametab" "renamepane" { + bind "esc" { SwitchToMode "normal"; } + } + shared_among "pane" "tmux" { + bind "x" { CloseFocus; SwitchToMode "normal"; } + } + shared_among "scroll" "search" { + bind "PageDown" { PageScrollDown; } + bind "PageUp" { PageScrollUp; } + bind "left" { PageScrollUp; } + bind "down" { ScrollDown; } + bind "up" { ScrollUp; } + bind "right" { PageScrollDown; } + bind "Ctrl b" { PageScrollUp; } + bind "Ctrl c" { ScrollToBottom; SwitchToMode "normal"; } + bind "d" { HalfPageScrollDown; } + bind "Ctrl f" { PageScrollDown; } + bind "h" { PageScrollUp; } + bind "j" { ScrollDown; } + bind "k" { ScrollUp; } + bind "l" { PageScrollDown; } + bind "Ctrl s" { SwitchToMode "normal"; } + bind "u" { HalfPageScrollUp; } + } + entersearch { + bind "Ctrl c" { SwitchToMode "scroll"; } + bind "esc" { SwitchToMode "scroll"; } + bind "enter" { SwitchToMode "search"; } + } + renametab { + bind "esc" { UndoRenameTab; SwitchToMode "tab"; } + } + shared_among "renametab" "renamepane" { + bind "Ctrl c" { SwitchToMode "normal"; } + } + renamepane { + bind "esc" { UndoRenamePane; SwitchToMode "pane"; } + } + shared_among "session" "tmux" { + bind "d" { Detach; } + } + tmux { + bind "left" { MoveFocus "left"; SwitchToMode "normal"; } + bind "down" { MoveFocus "down"; SwitchToMode "normal"; } + bind "up" { MoveFocus "up"; SwitchToMode "normal"; } + bind "right" { MoveFocus "right"; SwitchToMode "normal"; } + bind "space" { NextSwapLayout; } + bind "\"" { NewPane "down"; SwitchToMode "normal"; } + bind "%" { NewPane "right"; SwitchToMode "normal"; } + bind "," { SwitchToMode "renametab"; } + bind "[" { SwitchToMode "scroll"; } + bind "Ctrl b" { Write 2; SwitchToMode "normal"; } + bind "c" { NewTab; SwitchToMode "normal"; } + bind "h" { MoveFocus "left"; SwitchToMode "normal"; } + bind "j" { MoveFocus "down"; SwitchToMode "normal"; } + bind "k" { MoveFocus "up"; SwitchToMode "normal"; } + bind "l" { MoveFocus "right"; SwitchToMode "normal"; } + bind "n" { GoToNextTab; SwitchToMode "normal"; } + bind "o" { FocusNextPane; } + bind "p" { GoToPreviousTab; SwitchToMode "normal"; } + bind "z" { ToggleFocusFullscreen; SwitchToMode "normal"; } + } +} + +// Plugin aliases - can be used to change the implementation of Zellij +// changing these requires a restart to take effect +plugins { + about location="zellij:about" + // compact-bar location="zellij:compact-bar" + compact-bar location="zellij:compact-bar" { // replace it with these lines + tooltip "F1" // choose a keybinding to toggle the hints + } + configuration location="zellij:configuration" + filepicker location="zellij:strider" { + cwd "/" + } + plugin-manager location="zellij:plugin-manager" + session-manager location="zellij:session-manager" + status-bar location="zellij:status-bar" + strider location="zellij:strider" + tab-bar location="zellij:tab-bar" + welcome-screen location="zellij:session-manager" { + welcome_screen true + } +} + +// Plugins to load in the background when a new session starts +// eg. "file:/path/to/my-plugin.wasm" +// eg. "https://example.com/my-plugin.wasm" +load_plugins { +} +web_client { + font "monospace" +} + +// Use a simplified UI without special fonts (arrow glyphs) +// Options: +// - true +// - false (Default) +// +// simplified_ui true + +// Choose the theme that is specified in the themes section. +// Default: default +// +theme "kanso" + +// Choose the base input mode of zellij. +// Default: normal +// +default_mode "locked" + +// Choose the path to the default shell that zellij will use for opening new panes +// Default: $SHELL +// +default_shell "/usr/bin/fish" + +// Choose the path to override cwd that zellij will use for opening new panes +// +// default_cwd "/tmp" + +// The name of the default layout to load on startup +// Default: "default" +// +default_layout "compact" +layout { + pane size=1 borderless=true { + plugin location="compact-bar" + } + pane +} + +// The folder in which Zellij will look for layouts +// (Requires restart) +// +// layout_dir "/tmp" + +// The folder in which Zellij will look for themes +// (Requires restart) +// +// theme_dir "/tmp" + +// Toggle enabling the mouse mode. +// On certain configurations, or terminals this could +// potentially interfere with copying text. +// Options: +// - true (default) +// - false +// +// mouse_mode false + +// Toggle having pane frames around the panes +// Options: +// - true (default, enabled) +// - false +// +pane_frames false + +// When attaching to an existing session with other users, +// should the session be mirrored (true) +// or should each user have their own cursor (false) +// (Requires restart) +// Default: false +// +// mirror_session true + +// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP +// eg. when terminal window with an active zellij session is closed +// (Requires restart) +// Options: +// - detach (Default) +// - quit +// +on_force_close "quit" + +// Configure the scroll back buffer size +// This is the number of lines zellij stores for each pane in the scroll back +// buffer. Excess number of lines are discarded in a FIFO fashion. +// (Requires restart) +// Valid values: positive integers +// Default value: 10000 +// +// scroll_buffer_size 10000 + +// Provide a command to execute when copying text. The text will be piped to +// the stdin of the program to perform the copy. This can be used with +// terminal emulators which do not support the OSC 52 ANSI control sequence +// that will be used by default if this option is not set. +// Examples: +// +// copy_command "xclip -selection clipboard" // x11 +// copy_command "wl-copy" // wayland +// copy_command "pbcopy" // osx +// +// copy_command "pbcopy" + +// Choose the destination for copied text +// Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard. +// Does not apply when using copy_command. +// Options: +// - system (default) +// - primary +// +// copy_clipboard "primary" + +// Enable automatic copying (and clearing) of selection when releasing mouse +// Default: true +// +// copy_on_select true + +// Path to the default editor to use to edit pane scrollbuffer +// Default: $EDITOR or $VISUAL +// scrollback_editor "/usr/bin/vim" + +// A fixed name to always give the Zellij session. +// Consider also setting `attach_to_session true,` +// otherwise this will error if such a session exists. +// Default: +// +// session_name "My singleton session" + +// When `session_name` is provided, attaches to that session +// if it is already running or creates it otherwise. +// Default: false +// +// attach_to_session true + +// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible +// Options: +// - true (default) +// - false +// +// auto_layout false + +// Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected +// Options: +// - true (default) +// - false +// +// session_serialization false + +// Whether pane viewports are serialized along with the session, default is false +// Options: +// - true +// - false (default) +// +// serialize_pane_viewport false + +// Scrollback lines to serialize along with the pane viewport when serializing sessions, 0 +// defaults to the scrollback size. If this number is higher than the scrollback size, it will +// also default to the scrollback size. This does nothing if `serialize_pane_viewport` is not true. +// +// scrollback_lines_to_serialize 10000 + +// Enable or disable the rendering of styled and colored underlines (undercurl). +// May need to be disabled for certain unsupported terminals +// (Requires restart) +// Default: true +// +// styled_underlines false + +// How often in seconds sessions are serialized +// +// serialization_interval 10000 + +// Enable or disable writing of session metadata to disk (if disabled, other sessions might not know +// metadata info on this session) +// (Requires restart) +// Default: false +// +// disable_session_metadata false + +// Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it) +// (Requires restart) +// Default: true (if the host terminal supports it) +// +// support_kitty_keyboard_protocol false +// Whether to make sure a local web server is running when a new Zellij session starts. +// This web server will allow creating new sessions and attaching to existing ones that have +// opted in to being shared in the browser. +// When enabled, navigate to http://127.0.0.1:8082 +// (Requires restart) +// +// Note: a local web server can still be manually started from within a Zellij session or from the CLI. +// If this is not desired, one can use a version of Zellij compiled without +// `web_server_capability` +// +// Possible values: +// - true +// - false +// Default: false +// +// web_server false +// Whether to allow sessions started in the terminal to be shared through a local web server, assuming one is +// running (see the `web_server` option for more details). +// (Requires restart) +// +// Note: This is an administrative separation and not intended as a security measure. +// +// Possible values: +// - "on" (allow web sharing through the local web server if it +// is online) +// - "off" (do not allow web sharing unless sessions explicitly opt-in to it) +// - "disabled" (do not allow web sharing and do not permit sessions started in the terminal to opt-in to it) +// Default: "off" +// +// web_sharing "off" +// A path to a certificate file to be used when setting up the web client to serve the +// connection over HTTPs +// +// web_server_cert "/path/to/cert.pem" +// A path to a key file to be used when setting up the web client to serve the +// connection over HTTPs +// +// web_server_key "/path/to/key.pem" +/// Whether to enforce https connections to the web server when it is bound to localhost +/// (127.0.0.0/8) +/// +/// Note: https is ALWAYS enforced when bound to non-local interfaces +/// +/// Default: false +// +// enforce_https_for_localhost false + +// Whether to stack panes when resizing beyond a certain size +// Default: true +// +// stacked_resize false + +// Whether to show tips on startup +// Default: true +// +show_startup_tips false + +// Whether to show release notes on first version run +// Default: true +// +// show_release_notes false + +// Whether to enable mouse hover effects and pane grouping functionality +// default is true +// advanced_mouse_actions false + +// The ip address the web server should listen on when it starts +// Default: "127.0.0.1" +// (Requires restart) +// web_server_ip "127.0.0.1" + +// The port the web server should listen on when it starts +// Default: 8082 +// (Requires restart) +// web_server_port 8082 + +// A command to run (will be wrapped with sh -c and provided the RESURRECT_COMMAND env variable) +// after Zellij attempts to discover a command inside a pane when resurrecting sessions, the STDOUT +// of this command will be used instead of the discovered RESURRECT_COMMAND +// can be useful for removing wrappers around commands +// Note: be sure to escape backslashes and similar characters properly +// post_command_discovery_hook "echo $RESURRECT_COMMAND | sed " diff --git a/zellij/layouts/compact.kdl b/zellij/layouts/compact.kdl new file mode 100644 index 0000000..a1c850b --- /dev/null +++ b/zellij/layouts/compact.kdl @@ -0,0 +1,10 @@ +layout { + default_tab_template { + pane size=1 borderless=true { + plugin location="zellij:compact-bar" { + tooltip "F1" + } + } + children + } +} diff --git a/zellij/themes/blade-runner.kdl b/zellij/themes/blade-runner.kdl new file mode 100644 index 0000000..8c0d5ee --- /dev/null +++ b/zellij/themes/blade-runner.kdl @@ -0,0 +1,120 @@ +themes { + blade-runner { + text_unselected { + base 255 255 255 + background 0 0 0 + emphasis_0 255 140 13 + emphasis_1 0 229 229 + emphasis_2 0 255 0 + emphasis_3 255 0 255 + } + text_selected { + base 255 255 255 + background 26 26 26 + emphasis_0 255 140 13 + emphasis_1 0 229 229 + emphasis_2 0 255 0 + emphasis_3 255 0 255 + } + ribbon_selected { + base 0 0 0 + background 0 255 0 + emphasis_0 255 53 94 + emphasis_1 255 140 13 + emphasis_2 255 0 255 + emphasis_3 0 217 227 + } + ribbon_unselected { + base 0 0 0 + background 43 191 244 + emphasis_0 255 53 94 + emphasis_1 255 255 255 + emphasis_2 0 217 227 + emphasis_3 255 0 255 + } + table_title { + base 0 255 0 + background 0 + emphasis_0 255 140 13 + emphasis_1 0 229 229 + emphasis_2 0 255 0 + emphasis_3 255 0 255 + } + table_cell_selected { + base 255 255 255 + background 26 26 26 + emphasis_0 255 140 13 + emphasis_1 0 229 229 + emphasis_2 0 255 0 + emphasis_3 255 0 255 + } + table_cell_unselected { + base 255 255 255 + background 0 0 0 + emphasis_0 255 140 13 + emphasis_1 0 229 229 + emphasis_2 0 255 0 + emphasis_3 255 0 255 + } + list_selected { + base 255 255 255 + background 26 26 26 + emphasis_0 255 140 13 + emphasis_1 0 229 229 + emphasis_2 0 255 0 + emphasis_3 255 0 255 + } + list_unselected { + base 255 255 255 + background 0 0 0 + emphasis_0 255 140 13 + emphasis_1 0 229 229 + emphasis_2 0 255 0 + emphasis_3 255 0 255 + } + frame_selected { + base 0 255 0 + background 0 + emphasis_0 255 140 13 + emphasis_1 0 229 229 + emphasis_2 255 0 255 + emphasis_3 0 + } + frame_highlight { + base 255 140 13 + background 0 + emphasis_0 255 140 13 + emphasis_1 255 140 13 + emphasis_2 255 140 13 + emphasis_3 255 140 13 + } + exit_code_success { + base 0 255 0 + background 0 + emphasis_0 0 229 229 + emphasis_1 0 0 0 + emphasis_2 255 0 255 + emphasis_3 0 217 227 + } + exit_code_error { + base 255 53 94 + background 0 + emphasis_0 255 230 0 + emphasis_1 0 + emphasis_2 0 + emphasis_3 0 + } + multiplayer_user_colors { + player_1 255 0 255 + player_2 0 217 227 + player_3 0 + player_4 255 230 0 + player_5 0 229 229 + player_6 0 + player_7 255 53 94 + player_8 0 + player_9 0 + player_10 0 + } + } +} diff --git a/zellij/themes/kanso-ink.kdl b/zellij/themes/kanso-ink.kdl new file mode 100644 index 0000000..41b8cb9 --- /dev/null +++ b/zellij/themes/kanso-ink.kdl @@ -0,0 +1,15 @@ +themes { + kanso-ink { + bg "#14171D" + fg "#C5C9C7" + red "#C4746E" + green "#8A9A7B" + blue "#8BA4B0" + yellow "#C4B28A" + magenta "#A292A3" + orange "#B98D7B" + cyan "#8EA4A2" + black "#14171D" + white "#C5C9C7" + } +} diff --git a/zellij/themes/kanso.kdl b/zellij/themes/kanso.kdl new file mode 100644 index 0000000..7fd2e1a --- /dev/null +++ b/zellij/themes/kanso.kdl @@ -0,0 +1,17 @@ +themes { + kanso { + fg 112 112 112 + bg 36 62 93 + black 24 24 24 + red 250 44 58 + green 114 137 182 // yellow (main border) + green 151 89 174 // purple + yellow 220 220 170 + blue 55 148 255 + magenta 131 167 101 // 167 132 171 (the magenta from before) + cyan 78 201 176 + white 255 255 255 + orange 203 127 79 + + } +} diff --git a/zellij/themes/molokai-dark.kdl b/zellij/themes/molokai-dark.kdl new file mode 100644 index 0000000..edce9b2 --- /dev/null +++ b/zellij/themes/molokai-dark.kdl @@ -0,0 +1,120 @@ +themes { + molokai-dark { + text_unselected { + base 255 255 255 + background 0 0 0 + emphasis_0 253 151 31 + emphasis_1 0 255 255 + emphasis_2 0 140 0 + emphasis_3 174 129 255 + } + text_selected { + base 255 255 255 + background 27 29 30 + emphasis_0 253 151 31 + emphasis_1 0 255 255 + emphasis_2 0 140 0 + emphasis_3 174 129 255 + } + ribbon_selected { + base 0 0 0 + background 0 140 0 + emphasis_0 255 0 0 + emphasis_1 253 151 31 + emphasis_2 174 129 255 + emphasis_3 102 217 239 + } + ribbon_unselected { + base 0 0 0 + background 248 248 240 + emphasis_0 255 0 0 + emphasis_1 255 255 255 + emphasis_2 102 217 239 + emphasis_3 174 129 255 + } + table_title { + base 0 140 0 + background 0 + emphasis_0 253 151 31 + emphasis_1 0 255 255 + emphasis_2 0 140 0 + emphasis_3 174 129 255 + } + table_cell_selected { + base 255 255 255 + background 27 29 30 + emphasis_0 253 151 31 + emphasis_1 0 255 255 + emphasis_2 0 140 0 + emphasis_3 174 129 255 + } + table_cell_unselected { + base 255 255 255 + background 0 0 0 + emphasis_0 253 151 31 + emphasis_1 0 255 255 + emphasis_2 0 140 0 + emphasis_3 174 129 255 + } + list_selected { + base 255 255 255 + background 27 29 30 + emphasis_0 253 151 31 + emphasis_1 0 255 255 + emphasis_2 0 140 0 + emphasis_3 174 129 255 + } + list_unselected { + base 255 255 255 + background 0 0 0 + emphasis_0 253 151 31 + emphasis_1 0 255 255 + emphasis_2 0 140 0 + emphasis_3 174 129 255 + } + frame_selected { + base 0 140 0 + background 0 + emphasis_0 253 151 31 + emphasis_1 0 255 255 + emphasis_2 174 129 255 + emphasis_3 0 + } + frame_highlight { + base 253 151 31 + background 0 + emphasis_0 253 151 31 + emphasis_1 253 151 31 + emphasis_2 253 151 31 + emphasis_3 253 151 31 + } + exit_code_success { + base 0 140 0 + background 0 + emphasis_0 0 255 255 + emphasis_1 0 0 0 + emphasis_2 174 129 255 + emphasis_3 102 217 239 + } + exit_code_error { + base 255 0 0 + background 0 + emphasis_0 255 255 0 + emphasis_1 0 + emphasis_2 0 + emphasis_3 0 + } + multiplayer_user_colors { + player_1 174 129 255 + player_2 102 217 239 + player_3 0 + player_4 255 255 0 + player_5 0 255 255 + player_6 0 + player_7 255 0 0 + player_8 0 + player_9 0 + player_10 0 + } + } +} diff --git a/zellij/themes/onedark.kdl b/zellij/themes/onedark.kdl new file mode 100644 index 0000000..7b508de --- /dev/null +++ b/zellij/themes/onedark.kdl @@ -0,0 +1,120 @@ +themes { + onedark { + text_unselected { + base 204 204 204 + background 29 32 37 + emphasis_0 209 154 102 + emphasis_1 86 182 194 + emphasis_2 152 195 121 + emphasis_3 198 120 221 + } + text_selected { + base 204 204 204 + background 29 32 37 + emphasis_0 209 154 102 + emphasis_1 86 182 194 + emphasis_2 152 195 121 + emphasis_3 198 120 221 + } + ribbon_selected { + base 29 32 37 + background 152 195 121 + emphasis_0 190 80 70 + emphasis_1 209 154 102 + emphasis_2 198 120 221 + emphasis_3 97 175 239 + } + ribbon_unselected { + base 29 32 37 + background 171 178 191 + emphasis_0 190 80 70 + emphasis_1 204 204 204 + emphasis_2 97 175 239 + emphasis_3 198 120 221 + } + table_title { + base 152 195 121 + background 0 + emphasis_0 209 154 102 + emphasis_1 86 182 194 + emphasis_2 152 195 121 + emphasis_3 198 120 221 + } + table_cell_selected { + base 204 204 204 + background 40 44 52 + emphasis_0 209 154 102 + emphasis_1 86 182 194 + emphasis_2 152 195 121 + emphasis_3 198 120 221 + } + table_cell_unselected { + base 204 204 204 + background 29 32 37 + emphasis_0 209 154 102 + emphasis_1 86 182 194 + emphasis_2 152 195 121 + emphasis_3 198 120 221 + } + list_selected { + base 204 204 204 + background 40 44 52 + emphasis_0 209 154 102 + emphasis_1 86 182 194 + emphasis_2 152 195 121 + emphasis_3 198 120 221 + } + list_unselected { + base 204 204 204 + background 29 32 37 + emphasis_0 209 154 102 + emphasis_1 86 182 194 + emphasis_2 152 195 121 + emphasis_3 198 120 221 + } + frame_selected { + base 152 195 121 + background 0 + emphasis_0 209 154 102 + emphasis_1 86 182 194 + emphasis_2 198 120 221 + emphasis_3 0 + } + frame_highlight { + base 209 154 102 + background 0 + emphasis_0 209 154 102 + emphasis_1 209 154 102 + emphasis_2 209 154 102 + emphasis_3 209 154 102 + } + exit_code_success { + base 152 195 121 + background 0 + emphasis_0 86 182 194 + emphasis_1 29 32 37 + emphasis_2 198 120 221 + emphasis_3 97 175 239 + } + exit_code_error { + base 190 80 70 + background 0 + emphasis_0 229 192 123 + emphasis_1 0 + emphasis_2 0 + emphasis_3 0 + } + multiplayer_user_colors { + player_1 198 120 221 + player_2 97 175 239 + player_3 0 + player_4 229 192 123 + player_5 86 182 194 + player_6 0 + player_7 190 80 70 + player_8 0 + player_9 0 + player_10 0 + } + } +} diff --git a/zellij/themes/vscode.kdl b/zellij/themes/vscode.kdl new file mode 100644 index 0000000..86de4a0 --- /dev/null +++ b/zellij/themes/vscode.kdl @@ -0,0 +1,16 @@ +themes { + vscode { + fg 112 112 112 + bg 40 40 40 + black 24 24 24 + red 250 44 58 + green 247 165 30 // yellow + // green 151 89 174 // purple + yellow 220 220 170 + blue 55 148 255 + magenta 197 134 192 + cyan 78 201 176 + white 255 255 255 + orange 202 143 118 + } +} diff --git a/zellij/themes/white.kdl b/zellij/themes/white.kdl new file mode 100644 index 0000000..573676f --- /dev/null +++ b/zellij/themes/white.kdl @@ -0,0 +1,16 @@ + +themes { + white { + fg 100 100 100 + bg 40 40 40 + black 24 24 24 + red 240 240 240 + green 156 156 156 + yellow 220 220 170 + blue 55 148 255 + magenta 240 240 240 + cyan 78 201 176 + white 255 255 255 + orange 240 240 240 + } +}