Add zellij configuration
Signed-off-by: George Kaklamanos <gkaklas@gkaklas.gr>
This commit is contained in:
parent
47c394101f
commit
c3c9fecb18
2 changed files with 55 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
imports = [./zellij.nix];
|
||||||
|
|
||||||
home.file.".config/ripgrep/ignore".text = ''
|
home.file.".config/ripgrep/ignore".text = ''
|
||||||
-.
|
-.
|
||||||
'';
|
'';
|
||||||
|
|
53
home-manager/zellij.nix
Normal file
53
home-manager/zellij.nix
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.file.".config/zellij/config.kdl".text = ''
|
||||||
|
default_layout "main"
|
||||||
|
session_serialization false
|
||||||
|
keybinds {
|
||||||
|
unbind "Ctrl p"
|
||||||
|
unbind "Ctrl o"
|
||||||
|
normal {
|
||||||
|
bind "Ctrl w" { SwitchToMode "pane"; }
|
||||||
|
bind "Ctrl '" { SwitchToMode "session"; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
|
home.file.".config/zellij/layouts/main.kdl".text = ''
|
||||||
|
layout {
|
||||||
|
default_tab_template {
|
||||||
|
pane size=1 borderless=true{
|
||||||
|
plugin location="zellij:tab-bar"
|
||||||
|
}
|
||||||
|
pane split_direction="vertical"{
|
||||||
|
children
|
||||||
|
}
|
||||||
|
pane size=1 borderless=true{
|
||||||
|
plugin location="zellij:status-bar"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tab name="main" focus=true{
|
||||||
|
pane split_direction="vertical" {
|
||||||
|
pane focus=true
|
||||||
|
pane {
|
||||||
|
pane command="htop"
|
||||||
|
pane command="watch" {
|
||||||
|
args "df" "-h"
|
||||||
|
}
|
||||||
|
pane
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tab name="HM" cwd="~/nix" {
|
||||||
|
pane split_direction="vertical" {
|
||||||
|
pane
|
||||||
|
pane
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue