diff options
author | Minijackson <minijackson@riseup.net> | 2024-08-04 18:45:24 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2024-08-04 18:45:24 +0200 |
commit | 950adc924d80c3f843b28a65091f02d101a4b4b5 (patch) | |
tree | d36ba9c26a608b8a708f66ee3e659918ff23b64f /usecases/desktop/graphical/sway.nix | |
parent | 5435979bc9c75bf158bc53f8fb67cdfee0eb2601 (diff) | |
download | nixos-config-reborn-950adc924d80c3f843b28a65091f02d101a4b4b5.tar.gz nixos-config-reborn-950adc924d80c3f843b28a65091f02d101a4b4b5.zip |
usecases/sway: inhibit notifications on screencast
Diffstat (limited to 'usecases/desktop/graphical/sway.nix')
-rw-r--r-- | usecases/desktop/graphical/sway.nix | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/usecases/desktop/graphical/sway.nix b/usecases/desktop/graphical/sway.nix index e4e3764..ca7a286 100644 --- a/usecases/desktop/graphical/sway.nix +++ b/usecases/desktop/graphical/sway.nix | |||
@@ -1,5 +1,10 @@ | |||
1 | _inputs: | 1 | _inputs: |
2 | { lib, pkgs, ... }: | 2 | { |
3 | config, | ||
4 | lib, | ||
5 | pkgs, | ||
6 | ... | ||
7 | }: | ||
3 | { | 8 | { |
4 | services.greetd = { | 9 | services.greetd = { |
5 | enable = true; | 10 | enable = true; |
@@ -351,7 +356,17 @@ _inputs: | |||
351 | security.pam.services.swaylock = { }; | 356 | security.pam.services.swaylock = { }; |
352 | 357 | ||
353 | xdg.portal = { | 358 | xdg.portal = { |
354 | wlr.enable = true; | 359 | wlr = { |
360 | enable = true; | ||
361 | settings.screencast = | ||
362 | let | ||
363 | swaync-client = "${lib.getBin config.home-manager.users.minijackson.services.swaync.package}/bin/swaync-client"; | ||
364 | in | ||
365 | { | ||
366 | exec_before = "${swaync-client} --inhibitor-add xdg-desktop-portal-wlr"; | ||
367 | exec_after = "${swaync-client} --inhibitor-remove xdg-desktop-portal-wlr"; | ||
368 | }; | ||
369 | }; | ||
355 | config.sway.default = [ | 370 | config.sway.default = [ |
356 | "wlr" | 371 | "wlr" |
357 | "gtk" | 372 | "gtk" |