feat(sh): niri spawning script for stacking two windows of same app vertically

This commit is contained in:
2025-09-19 20:03:11 +02:00
parent 3b7e566545
commit 1c8ccb6405
7 changed files with 170 additions and 141 deletions

View File

@@ -12,8 +12,17 @@ in
{
home = {
sessionPath = [ "${config.home.homeDirectory}/.local/bin" ];
file = {
".local/bin/spawn.sh" = {
source = getExe (
pkgs.writeShellApplication {
name = "spawn";
runtimeInputs = with pkgs; [ niri ];
text = readFile ./bin/spawn.sh;
}
);
};
".local/bin/spawn-or-focus.sh" = {
source = getExe (
pkgs.writeShellApplication {
@@ -34,34 +43,6 @@ in
);
};
".local/bin/tuirun-toggle.sh" = {
source = getExe (
pkgs.writeShellApplication {
name = "tuirun-toggle";
runtimeInputs = with pkgs; [
hyprland
uwsm
];
text = readFile ./bin/tuirun-toggle.sh;
}
);
};
".local/bin/tuirun-debugger.sh" = {
source = getExe (
pkgs.writeShellApplication {
name = "tuirun-debugger";
runtimeInputs = with pkgs; [ hyprland ];
text = ''
# Save environment to file
env > /tmp/tuirun-env.txt
# Run tuirun
/etc/profiles/per-user/cnst/bin/tuirun
'';
}
);
};
".local/bin/calcurse-toggle.sh" = {
source = getExe (
pkgs.writeShellApplication {