From ab32a26f03f358843e42fd0027cf6640ba5f5dbb Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sat, 9 Dec 2023 16:38:40 +0300 Subject: [PATCH] Don't run grim multiple times --- machines/enka/hyprland/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machines/enka/hyprland/default.nix b/machines/enka/hyprland/default.nix index 4c681ab..ef84e78 100644 --- a/machines/enka/hyprland/default.nix +++ b/machines/enka/hyprland/default.nix @@ -107,8 +107,8 @@ bind = SUPER, SPACE, exec, pkill fuzzel; fuzzel bind = SUPER, V , exec, pkill fuzzel; cliphist list | fuzzel --dmenu | cliphist decode | wl-copy - bind = , PRINT, exec, grim -g "$(slurp -w 0)" - | swappy -f - -o - | wl-copy --type image/png - bind = ALT, PRINT, exec, grim - | swappy -f - -o - | wl-copy --type image/png + bind = , PRINT, exec, pkill grim; grim -g "$(slurp -w 0)" - | swappy -f - -o - | wl-copy --type image/png + bind = ALT, PRINT, exec, pkill grim; grim - | swappy -f - -o - | wl-copy --type image/png '' + ''