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 '';