This commit is contained in:
kiri committed 2026-09-22 21:44:35 +02:00
1 parent f164d8b76e
commit 5748b3409b
60 files changed
+1346 -590

No files matched your search

+21 -7
View File
@@ -13,10 +13,6 @@ in
programs.niri.enable = true;
services = {
gvfs.enable = true;
udisks2.enable = true;
};
};
flake.modules.homeManager.niri =
@@ -27,7 +23,22 @@ in
...
}:
let
swapMonitorWorkspaces = import ./_shortcuts.nix { inherit pkgs; };
swapMonitorWorkspaces = import ./_support/shortcuts.nix { inherit pkgs; };
renameWorkspace = pkgs.writeShellApplication {
name = "rename-workspace";
runtimeInputs = [
pkgs.niri
pkgs.zenity
];
text = ''
name=$(zenity --entry --title="Workspace name" --text="Name this workspace (empty clears its name):") || exit 0
if [[ -n "$name" ]]; then
niri msg action set-workspace-name "$name"
else
niri msg action unset-workspace-name
fi
'';
};
machine = config.facts.machine;
in
{
@@ -41,7 +52,10 @@ in
wireplumber
wtype
]
++ [ swapMonitorWorkspaces ];
++ [
swapMonitorWorkspaces
renameWorkspace
];
};
wayland.windowManager.niri = {
@@ -121,7 +135,7 @@ in
};
};
binds = import ./_bindings.nix {
binds = import ./_support/bindings.nix {
inherit (config.desktop.commands)
browser
launcher