mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Compare commits
No commits in common. "94f74efd85faea69c76b7184f64cc3801b2ddfd3" and "4137db65c61490389d6f8c062fcd1551f41a9d72" have entirely different histories.
94f74efd85
...
4137db65c6
6 changed files with 18 additions and 57 deletions
18
flake.lock
generated
18
flake.lock
generated
|
|
@ -230,11 +230,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758810399,
|
"lastModified": 1758719930,
|
||||||
"narHash": "sha256-bpWoE1tiFX5T1tr5EudkpW9Kk02XR+6olkoSkf3nHZU=",
|
"narHash": "sha256-DgHe1026Ob49CPegPMiWj1HNtlMTGQzfSZQQVlHC950=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "39d26c16866260eee6d0487fe9c102ba1c1bf7b2",
|
"rev": "142acd7a7d9eb7f0bb647f053b4ddfd01fdfbf1d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -368,11 +368,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758690382,
|
"lastModified": 1758427187,
|
||||||
"narHash": "sha256-NY3kSorgqE5LMm1LqNwGne3ZLMF2/ILgLpFr1fS4X3o=",
|
"narHash": "sha256-pHpxZ/IyCwoTQPtFIAG2QaxuSm8jWzrzBGjwQZIttJc=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e643668fd71b949c53f8626614b21ff71a07379d",
|
"rev": "554be6495561ff07b6c724047bdd7e0716aa7b46",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -520,11 +520,11 @@
|
||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758757969,
|
"lastModified": 1758716250,
|
||||||
"narHash": "sha256-2zC4aHoDsR12Jyd6WvSxmQbAKT4V93frnHHDjA8o3r8=",
|
"narHash": "sha256-PvOo4vSk7WAOhSifgL+rzExihquU9DOIOQPrUVuFHpE=",
|
||||||
"owner": "danth",
|
"owner": "danth",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "484819a16fdc1c76cdd62d8e94018db44e5e1a8b",
|
"rev": "526c882800837cce7676f3e11bb3e13e975c6032",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
name = "zmenu";
|
name = "zmenu";
|
||||||
runtimeInputs = [zellij zoxide wmctrl i3 rofi alacritty zsh];
|
runtimeInputs = [zellij zoxide wmctrl i3 rofi alacritty zsh];
|
||||||
text = ''
|
text = ''
|
||||||
ZPATH=$(zoxide query -l | sed -e "s|$HOME/||g" | rofi -dmenu)
|
ZPATH=$(zoxide query -l | sed -e "s|$HOME||g" | cut -b 2- | rofi -dmenu)
|
||||||
[[ -z "$ZPATH" ]] && exit
|
[[ -z "$ZPATH" ]] && exit
|
||||||
ZSESH=$(echo "$ZPATH" | tr / -)
|
ZSESH=$(echo "$ZPATH" | tr / -)
|
||||||
ZWIND=$(wmctrl -l | grep "$ZSESH" || echo "")
|
ZWIND=$(wmctrl -l | grep "$ZSESH" || echo "")
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,7 @@
|
||||||
config,
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
zellij-muon = pkgs.zellij.overrideAttrs (previousAttrs: {
|
|
||||||
patches = previousAttrs.patches ++ [./zellij/floating_fix.patch];
|
|
||||||
});
|
|
||||||
in {
|
|
||||||
options.mods.terminal.development.enable =
|
options.mods.terminal.development.enable =
|
||||||
lib.mkEnableOption "enables cli editor";
|
lib.mkEnableOption "enables cli editor";
|
||||||
|
|
||||||
|
|
@ -44,7 +40,7 @@ in {
|
||||||
show_release_notes._args = [false];
|
show_release_notes._args = [false];
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = builtins.readFile ./zellij/config.kdl;
|
extraConfig = builtins.readFile ./zellij.kdl;
|
||||||
|
|
||||||
layouts = {
|
layouts = {
|
||||||
dev = {
|
dev = {
|
||||||
|
|
@ -65,7 +61,7 @@ in {
|
||||||
{"children" = {};}
|
{"children" = {};}
|
||||||
{
|
{
|
||||||
pane = {
|
pane = {
|
||||||
size = 1;
|
size = 2;
|
||||||
borderless = true;
|
borderless = true;
|
||||||
plugin = {
|
plugin = {
|
||||||
location = "zellij:status-bar";
|
location = "zellij:status-bar";
|
||||||
|
|
@ -78,14 +74,13 @@ in {
|
||||||
{
|
{
|
||||||
tab = {
|
tab = {
|
||||||
_props = {
|
_props = {
|
||||||
name = "project";
|
name = "Project";
|
||||||
focus = true;
|
focus = true;
|
||||||
};
|
};
|
||||||
_children = [
|
_children = [
|
||||||
{
|
{
|
||||||
pane = {
|
pane = {
|
||||||
command = "zsh";
|
command = "nvim";
|
||||||
args = ["-c" "nvim"];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
@ -94,7 +89,7 @@ in {
|
||||||
{
|
{
|
||||||
tab = {
|
tab = {
|
||||||
_props = {
|
_props = {
|
||||||
name = "test";
|
name = "Run";
|
||||||
};
|
};
|
||||||
_children = [
|
_children = [
|
||||||
{
|
{
|
||||||
|
|
@ -108,12 +103,12 @@ in {
|
||||||
{
|
{
|
||||||
tab = {
|
tab = {
|
||||||
_props = {
|
_props = {
|
||||||
name = "git";
|
name = "Test";
|
||||||
};
|
};
|
||||||
_children = [
|
_children = [
|
||||||
{
|
{
|
||||||
pane = {
|
pane = {
|
||||||
command = "lazygit";
|
command = "zsh";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
diff --git a/zellij-utils/src/kdl/kdl_layout_parser.rs b/zellij-utils/src/kdl/kdl_layout_parser.rs
|
|
||||||
index c38c0146..d44440a7 100644
|
|
||||||
--- a/zellij-utils/src/kdl/kdl_layout_parser.rs
|
|
||||||
+++ b/zellij-utils/src/kdl/kdl_layout_parser.rs
|
|
||||||
@@ -1607,6 +1607,10 @@ impl<'a> KdlLayoutParser<'a> {
|
|
||||||
floating_pane.add_cwd_to_layout(&cwd_prefix);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+ // hide_floating_panes on the tab_layout takes precedence over the hide_floating_panes on the tab_template
|
|
||||||
+ tab_layout.hide_floating_panes =
|
|
||||||
+ kdl_get_bool_property_or_child_value!(kdl_node, "hide_floating_panes")
|
|
||||||
+ .unwrap_or(tab_layout.hide_floating_panes);
|
|
||||||
tab_layout.external_children_index = None;
|
|
||||||
Ok((
|
|
||||||
is_focused,
|
|
||||||
@@ -1671,6 +1675,8 @@ impl<'a> KdlLayoutParser<'a> {
|
|
||||||
let mut tab_floating_children = vec![];
|
|
||||||
let mut external_children_index = None;
|
|
||||||
let mut children_index_offset = 0;
|
|
||||||
+ let hide_floating_panes =
|
|
||||||
+ kdl_get_bool_property_or_child_value!(kdl_node, "hide_floating_panes").unwrap_or(false);
|
|
||||||
let is_part_of_stack = false;
|
|
||||||
if let Some(children) = kdl_children_nodes!(kdl_node) {
|
|
||||||
for (i, child) in children.iter().enumerate() {
|
|
||||||
@@ -1721,6 +1727,7 @@ impl<'a> KdlLayoutParser<'a> {
|
|
||||||
children_split_direction,
|
|
||||||
children: tab_children,
|
|
||||||
external_children_index,
|
|
||||||
+ hide_floating_panes,
|
|
||||||
..Default::default()
|
|
||||||
},
|
|
||||||
tab_floating_children,
|
|
||||||
|
|
@ -37,7 +37,6 @@
|
||||||
"https://nixpkgs-unfree.cachix.org"
|
"https://nixpkgs-unfree.cachix.org"
|
||||||
"https://hyprland.cachix.org"
|
"https://hyprland.cachix.org"
|
||||||
"https://devenv.cachix.org"
|
"https://devenv.cachix.org"
|
||||||
"https://muon.cachix.org"
|
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
|
|
@ -45,7 +44,6 @@
|
||||||
"nixpkgs-unfree.cachix.org-1:hqvoInulhbV4nJ9yJOEr+4wxhDV4xq2d1DK7S6Nj6rs="
|
"nixpkgs-unfree.cachix.org-1:hqvoInulhbV4nJ9yJOEr+4wxhDV4xq2d1DK7S6Nj6rs="
|
||||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||||
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
||||||
"muon.cachix.org-1:tHFazVc8JsSeeLa2WLi50DHpJZKYy4V+oKlbhnbecXE="
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue