diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-26 22:01:03 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-26 22:01:03 +0530 |
| commit | d1ec6eec44e2f7787ec670676933bbcc3d07d361 (patch) | |
| tree | 7434bfc7fdd4f870dc9ea7940b767ac9400c9630 /modules/desktop/niri/default.nix | |
| parent | 0afd73753d72b7ac2de83f80f457a85a5a33a29c (diff) | |
| download | home-manager-config-d1ec6eec44e2f7787ec670676933bbcc3d07d361.tar.gz home-manager-config-d1ec6eec44e2f7787ec670676933bbcc3d07d361.zip | |
feat: added actions for different modules
Diffstat (limited to 'modules/desktop/niri/default.nix')
| -rw-r--r-- | modules/desktop/niri/default.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/modules/desktop/niri/default.nix b/modules/desktop/niri/default.nix index b17ea12..3368766 100644 --- a/modules/desktop/niri/default.nix +++ b/modules/desktop/niri/default.nix @@ -80,8 +80,9 @@ in wayland.windowManager.niri = { enable = true; systemd.enable = true; - # Let Niri register its recommended GNOME portal implementation. - portalPackage = pkgs.xdg-desktop-portal-gnome; + # Don't let Niri register its own portal. We will use xdg.portal for the + # configuration of portal + portalPackage = null; }; # For setting the desktop wallpaper @@ -147,5 +148,13 @@ in "fill" ]; }; + + desktop.rofi.action.actions = [ + { + name = "Poweroff Monitors"; + command = "${lib.getExe cfg.niri.package} msg action power-off-monitors"; + icon = "network-vpn-symbolic"; + } + ]; }; } |
