diff --git a/README.md b/README.md index ddbcf18..23d3d2c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Activate wayland overlay as described in [README](https://github.com/bsd-ac/wayl - hyprland (this one should be obvious) - jq (to parse and manipulate json) -- grim (to take the screenshot) +- wayshot (to take the screenshot) - slurp (to select what to screenshot) - wl-clipboard (to copy screenshot to clipboard) - libnotify (to get notified when a screenshot is saved) diff --git a/hyprshot b/hyprshot index 0fb976f..19d6fbc 100755 --- a/hyprshot +++ b/hyprshot @@ -111,20 +111,20 @@ function save_geometry() { local output="" if [ $RAW -eq 1 ]; then - grim -g "${geometry}" - + wayshot -s "${geometry}" --stdout return 0 fi if [ $CLIPBOARD -eq 0 ]; then mkdir -p "$SAVEDIR" - grim -g "${geometry}" "$SAVE_FULLPATH" + wayshot -s "${geometry}" -f "$SAVE_FULLPATH" output="$SAVE_FULLPATH" wl-copy --type image/png < "$output" [ -z "$COMMAND" ] || { "$COMMAND" "$output" } else - wl-copy --type image/png < <(grim -g "${geometry}" -) + wl-copy --type image/png < <(wayshot -s "${geometry}" --stdout) fi send_notification $output