From 86d0432b840685a3e0c464f3d116fbc30a761759 Mon Sep 17 00:00:00 2001 From: Goldstein Date: Tue, 6 Aug 2024 17:53:32 +0300 Subject: [PATCH] prevent double print screen --- home/desktop/wayland.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/desktop/wayland.nix b/home/desktop/wayland.nix index 166d34d..6e4403f 100644 --- a/home/desktop/wayland.nix +++ b/home/desktop/wayland.nix @@ -62,7 +62,8 @@ | wl-copy --type image/png ''; in - "exec ${printScreen}"; + # Prevent double-start. + "exec systemd-run --user --scope --unit printscr ${printScreen}"; "shift+Print" = "exec grim - | wl-copy --type image/png"; "XF86AudioMicMute" = "exec pamixer --default-source --toggle-mute"; # notification control