From 230a7f661bce7bdf4707f7bf835aeea1e0d247d1 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Tue, 19 Nov 2024 10:44:14 +0700 Subject: [PATCH] grimblast: removed copy action from grimblast script. Instead image is always saved to disk and copied to clipboard at the same time. --- home/modules/hyprland/grimblast.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/home/modules/hyprland/grimblast.nix b/home/modules/hyprland/grimblast.nix index 7f7d049..1fc0f6a 100644 --- a/home/modules/hyprland/grimblast.nix +++ b/home/modules/hyprland/grimblast.nix @@ -18,19 +18,14 @@ let file=$(date +%Y-%m-%d_%H%M%S).png filename=${saveDir}/original/$file - ${grimblast}/bin/grimblast save ${mode} "$filename" - action=$(notify-send --icon="$filename" --app-name="grimblast" --action="copy=Copy" --action="edit=Edit" --action="delete=Delete" "Grimblast" "Screenshot saved to $filename") + ${grimblast}/bin/grimblast copysave ${mode} "$filename" + action=$(notify-send --icon="$filename" --app-name="grimblast" --action="edit=Edit" --action="delete=Delete" "Grimblast" "Screenshot saved to $filename") case $action in - "copy") - wl-copy < "$filename" - notify-send --icon="$filename" --app-name="grimblast" "Grimblast" "Screenshot copied to clipboard" - ;; "edit") satty --save-after-copy --filename "$filename" --fullscreen --output-filename "${saveDir}/edit/$(date +%Y-%m-%d_%H%M%S).png" ;; "delete") rm "$filename" - notify-send --app-name="grimblast" "Grimblast" "Screenshot $filename deleted" ;; esac '';