changeset 794:02fbf26b9f16

feat: template zellij config
author zegervdv <zegervdv@me.com>
date Tue, 23 May 2023 08:08:42 +0200
parents 257ecaf271ee
children bae3c2671374
files dot_config/zellij/config.kdl dot_config/zellij/config.kdl.tmpl
diffstat 2 files changed, 42 insertions(+), 38 deletions(-) [+]
line wrap: on
line diff
--- a/dot_config/zellij/config.kdl	Wed May 17 07:54:27 2023 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-// No fancy symbols
-simplified_ui true
-
-// No frames around panes
-pane_frames false
-
-default_mode "locked"
-
-keybinds {
-  locked {
-    bind "Alt h" "Alt Left" { MoveFocus "Left"; }
-    bind "Alt j" "Alt Down" { MoveFocus "Down"; }
-    bind "Alt k" "Alt Up" { MoveFocus "Up"; }
-    bind "Alt l" "Alt Right" { MoveFocus "Right"; }
-  }
-
-  shared_except "locked" {
-    bind "Esc" { SwitchToMode "locked"; }
-  }
-}
-
-themes {
-    catppuccin-macchiato {
-        fg 202 211 245
-        bg 91 96 120
-        black 30 32 48
-        red 237 135 150
-        green 166 218 149
-        yellow 238 212 159
-        blue 138 173 244
-        magenta 245 189 230
-        cyan 145 215 227
-        white 202 211 245
-        orange 245 169 127
-    }
-}
-
-theme "catppuccin-macchiato"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dot_config/zellij/config.kdl.tmpl	Tue May 23 08:08:42 2023 +0200
@@ -0,0 +1,42 @@
+// No fancy symbols
+simplified_ui true
+
+// No frames around panes
+pane_frames false
+
+default_mode "locked"
+
+keybinds {
+  locked {
+    bind "Alt h" "Alt Left" { MoveFocus "Left"; }
+    bind "Alt j" "Alt Down" { MoveFocus "Down"; }
+    bind "Alt k" "Alt Up" { MoveFocus "Up"; }
+    bind "Alt l" "Alt Right" { MoveFocus "Right"; }
+  }
+
+  shared_except "locked" {
+    bind "Esc" { SwitchToMode "locked"; }
+  }
+}
+
+themes {
+    catppuccin-macchiato {
+        fg 202 211 245
+        bg 91 96 120
+        black 30 32 48
+        red 237 135 150
+        green 166 218 149
+        yellow 238 212 159
+        blue 138 173 244
+        magenta 245 189 230
+        cyan 145 215 227
+        white 202 211 245
+        orange 245 169 127
+    }
+}
+
+{{ if .dark -}}
+theme "catppuccin-macchiato"
+{{ else -}}
+theme "espresso-tutti-colori"
+{{ end -}}