fix hyprrun

This commit is contained in:
2026-01-10 10:09:29 -06:00
parent 137e3753da
commit 082f0bdcc5
2 changed files with 20 additions and 7 deletions

View File

@@ -7,7 +7,24 @@
};
};
config = lib.mkIf config.homeconfig.scripts.enable {
config = lib.mkMerge [
(lib.mkIf (config.homeconfig.hyprland.enable && config.homeconfig.scripts.enable) {
home.packages = [
(pkgs.writeShellScriptBin "hyprrun" ''
uwsm app -- ''$@
'')
];
})
(lib.mkIf (!config.homeconfig.hyprland.enable && config.homeconfig.scripts.enable) {
home.packages = [
(pkgs.writeShellScriptBin "hyprrun" ''
eval "''$@"
'')
];
})
(lib.mkIf config.homeconfig.scripts.enable {
home.packages = [
#scripts
@@ -102,6 +119,7 @@
'')
];
};
})
];
}

View File

@@ -21,11 +21,6 @@
python = "python3.13";
python3 = "python3.13";
hyprrun = with lib; mkMerge [
(mkIf config.homeconfig.hyprland.enable "uwsm app --")
(mkIf (!config.homeconfig.hyprland.enable) ";")
];
};
history = {