From d9f4538ea70483da3bd79eacfb419bd2fa570324 Mon Sep 17 00:00:00 2001 From: funman300 Date: Tue, 5 May 2026 23:11:20 -0700 Subject: [PATCH] screenshot: remove old grim/slurp/wofi pipeline (replaced by flameshot) Co-Authored-By: Claude Sonnet 4.6 --- install.sh | 1 - scripts/screenshot.sh | 43 ------------------------------------------- 2 files changed, 44 deletions(-) delete mode 100755 scripts/screenshot.sh diff --git a/install.sh b/install.sh index ef945e5..eae8292 100755 --- a/install.sh +++ b/install.sh @@ -70,7 +70,6 @@ ln -sf "$(pwd)/scripts/powermenu.sh" ~/.local/bin/powermenu ln -sf "$(pwd)/scripts/clipboard.sh" ~/.local/bin/clipboard-picker ln -sf "$(pwd)/scripts/power-profile.sh" ~/.local/bin/power-profile ln -sf "$(pwd)/scripts/fan-profile.sh" ~/.local/bin/fan-profile -ln -sf "$(pwd)/scripts/screenshot.sh" ~/.local/bin/screenshot ln -sf "$(pwd)/scripts/waybar-restart.sh" ~/.local/bin/waybar-restart echo "==> Enabling systemd user services" diff --git a/scripts/screenshot.sh b/scripts/screenshot.sh deleted file mode 100755 index 8d23f98..0000000 --- a/scripts/screenshot.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -FILE="$HOME/Pictures/screenshot-$(date +%s).png" - -mkdir -p "$HOME/Pictures" - -# Exit silently if the user cancels region selection -if ! grim -g "$(slurp)" "$FILE"; then - exit 0 -fi - -wl-copy < "$FILE" - -action=$(notify-send "Screenshot captured" \ - "Saved ยท Copied to clipboard" \ - --hint="string:image-path:$FILE" \ - --expire-time=10000 \ - --action="actions:Actions") - -[[ "$action" != "actions" ]] && exit 0 - -choice=$(printf 'Annotate with swappy\nAnnotate with satty\nOpen in imv\nCopy path\nDelete' \ - | wofi --dmenu --prompt "Screenshot") - -case "$choice" in - "Annotate with swappy") - swappy -f "$FILE" & - ;; - "Annotate with satty") - satty --filename "$FILE" & - ;; - "Open in imv") - imv "$FILE" & - ;; - "Copy path") - printf '%s' "$FILE" | wl-copy - notify-send "Path copied" "$FILE" - ;; - "Delete") - rm "$FILE" - notify-send "Screenshot deleted" "File removed" - ;; -esac