zellij shit

This commit is contained in:
cnst
2024-06-30 13:58:18 +02:00
parent e5f8601de0
commit b54fb027df
5 changed files with 331 additions and 83 deletions

View File

@@ -1,4 +1,8 @@
{pkgs, ...}: {
{
pkgs,
inputs,
...
}: {
imports = [
./zellij
./firefox
@@ -18,6 +22,7 @@
# UTILITY
wl-clipboard
inputs.zjstatus.packages.${system}.default
xfce.thunar-volman
xfce.thunar-archive-plugin
gnome.file-roller

View File

@@ -1,86 +1,103 @@
{
home.shellAliases = {
zj = "zellij";
};
programs.zellij = {
enable = true;
enableZshIntegration = true;
settings = {
# Make zellij UI more compact
ui = {
pane_frames = {
hide_session_name = true;
};
};
default_layout = "compact";
copy_command = "wl-copy";
on_force_close = "detach";
default_shell = "zsh";
default_mode = "normal";
theme = "gruvbox-dark";
themes = {
gruvbox-dark = {
fg = [
213
196
161
];
bg = [
40
40
40
];
black = [
60
56
54
];
red = [
204
36
29
];
green = [
152
151
26
];
yellow = [
215
153
33
];
blue = [
69
133
136
];
magenta = [
177
98
134
];
cyan = [
104
157
106
];
white = [
251
241
199
];
orange = [
214
93
14
];
};
};
};
};
home.shellAliases = {
zr = "zellij run --";
zrf = "zellij run --floating --";
ze = "zellij edit";
zef = "zellij edit --floating";
};
xdg.configFile."zellij/config.kdl".text = ''
default_layout "compact"
mouse_mode true
copy_on_select true
copy_command "wl-copy"
simplified_ui false
scrollback_editor "/home/cnst/.nix-profile/bin/nvim"
pane_frames true
on_force_close "detach"
ui {
pane_frames {
rounded_corners false
}
}
keybinds {
normal {
bind "Alt m" {
LaunchPlugin "file:~/.config/zellij/plugins/monocle.wasm" {
in_place true
kiosk true
};
SwitchToMode "Normal"
}
bind "Ctrl f" {
LaunchOrFocusPlugin "file:~/.config/zellij/plugins/monocle.wasm" {
floating true
}
SwitchToMode "Normal"
}
bind "Alt 1" { GoToTab 1;}
bind "Alt 2" { GoToTab 2;}
bind "Alt 3" { GoToTab 3;}
bind "Alt 4" { GoToTab 4;}
}
shared_except "locked" {
bind "Ctrl y" {
LaunchOrFocusPlugin "file:~/.config/zellij/plugins/room.wasm" {
floating true
ignore_case true
}
}
}
unbind "Ctrl b" "Ctrl h" "Ctrl g" "Alt j"
}
themes {
gruvbox-dark {
bg "#282828"
fg "#D5C4A1"
black "#3C3836"
red "#CC241D"
green "#98971A"
yellow "#D79921"
blue "#458588"
magenta "#B16286"
cyan "#689D6A"
white "#FBF1C7"
orange "#D65D0E"
}
}
'';
xdg.configFile."zellij/layouts/gruvbox.kdl".text = ''
layout {
pane split_direction="vertical" {
pane
}
pane size=1 borderless=true {
plugin location="file:/home/cnst/.nix-profile/bin/zjstatus.wasm" {
format_left "#[fg=#FBF1C7,bold] {session} {mode} {tabs}"
format_right "#[bg=#8A8A8A,fg=#3C3836] #[bg=#8A8A8A,fg=#3C3836,bold]{swap_layout} #[bg=#3C3836,fg=#8A8A8A]"
mode_locked "#[fg=#B16286,bold] {name} "
mode_normal "#[fg=#98971A,bold] {name} "
mode_resize "#[fg=#D75F00,bold] {name} "
mode_default_to_mode "resize"
tab_normal "#[bg=#8A8A8A,fg=#3C3836] #[bg=#8A8A8A,fg=#3C3836,bold]{name} {sync_indicator}{fullscreen_indicator}{floating_indicator} #[bg=#3C3836,fg=#8A8A8A]"
tab_active "#[bg=#98971A,fg=#3C3836] #[bg=#98971A,fg=#3C3836,bold]{name} {sync_indicator}{fullscreen_indicator}{floating_indicator} #[bg=#3C3836,fg=#98971A]"
tab_sync_indicator " "
tab_fullscreen_indicator " "
tab_floating_indicator "󰉈 "
}
}
}
'';
}

View File

@@ -0,0 +1,86 @@
{
home.shellAliases = {
zj = "zellij";
};
programs.zellij = {
enable = true;
enableZshIntegration = true;
settings = {
# Make zellij UI more compact
ui = {
pane_frames = {
hide_session_name = true;
};
};
default_layout = "compact";
copy_command = "wl-copy";
on_force_close = "detach";
default_shell = "zsh";
default_mode = "normal";
theme = "gruvbox-dark";
themes = {
gruvbox-dark = {
fg = [
213
196
161
];
bg = [
40
40
40
];
black = [
60
56
54
];
red = [
204
36
29
];
green = [
152
151
26
];
yellow = [
215
153
33
];
blue = [
69
133
136
];
magenta = [
177
98
134
];
cyan = [
104
157
106
];
white = [
251
241
199
];
orange = [
214
93
14
];
};
};
};
};
}