zellij: added zj-quit
This commit is contained in:
parent
7742585d6e
commit
b32197996d
|
@ -1,6 +1,16 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.profile.home.programs.zellij;
|
||||
plugins = {
|
||||
zj-quit = pkgs.fetchurl {
|
||||
url = "https://github.com/cristiand391/zj-quit/releases/download/0.3.0/zj-quit.wasm";
|
||||
hash = "sha256-f1D3cDuLRZ5IqY3IGq6UYSEu1VK54TwmkmwWaxVQD2A=";
|
||||
};
|
||||
zstatus = pkgs.fetchurl {
|
||||
url = "https://github.com/dj95/zjstatus/releases/download/v0.17.0/zjstatus.wasm";
|
||||
hash = "sha256-IgTfSl24Eap+0zhfiwTvmdVy/dryPxfEF7LhVNVXe+U";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
@ -41,7 +51,19 @@ in
|
|||
home.file.".config/zellij/config.kdl".text = /*kdl*/ ''
|
||||
theme "catppuccin-mocha";
|
||||
|
||||
plugins {
|
||||
zj-quit location="file:${plugins.zj-quit}";
|
||||
}
|
||||
|
||||
keybinds clear-defaults=true {
|
||||
shared_except "locked" {
|
||||
bind "Ctrl q" {
|
||||
LaunchOrFocusPlugin "zj-quit" {
|
||||
floating true
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
normal {
|
||||
bind "Ctrl a" { SwitchToMode "tmux"; }
|
||||
}
|
||||
|
@ -187,20 +209,12 @@ in
|
|||
}
|
||||
'';
|
||||
|
||||
home.file.".config/zellij/layouts/default.kdl".text =
|
||||
let
|
||||
version = "0.17.0";
|
||||
zstatus = pkgs.fetchurl {
|
||||
url = "https://github.com/dj95/zjstatus/releases/download/v${version}/zjstatus.wasm";
|
||||
hash = "sha256-IgTfSl24Eap+0zhfiwTvmdVy/dryPxfEF7LhVNVXe+U";
|
||||
};
|
||||
in
|
||||
/*kdl*/ ''
|
||||
home.file.".config/zellij/layouts/default.kdl".text = /*kdl*/ ''
|
||||
layout {
|
||||
default_tab_template {
|
||||
children
|
||||
pane size=1 borderless=true {
|
||||
plugin location="file:${zstatus}" {
|
||||
plugin location="file:${plugins.zstatus}" {
|
||||
format_left "{mode} #[fg=#89B4FA,bold]{session}"
|
||||
format_center "{tabs}"
|
||||
format_right "{command_git_branch} {datetime}"
|
||||
|
|
Loading…
Reference in a new issue