diff options
Diffstat (limited to 'dotfiles/hyprland/.local/bin/screenshot')
| -rwxr-xr-x | dotfiles/hyprland/.local/bin/screenshot | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/dotfiles/hyprland/.local/bin/screenshot b/dotfiles/hyprland/.local/bin/screenshot deleted file mode 100755 index 45925c6..0000000 --- a/dotfiles/hyprland/.local/bin/screenshot +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# Screenshot tool with fuzzel menu -# Usage: screenshot [region|fullscreen] - -DIR="$HOME/pictures/screenshots" -mkdir -p "$DIR" -FILE="$DIR/$(date +%Y-%m-%d_%H%M%S).png" - -# Capture -case "${1:-region}" in - region) grim -g "$(slurp)" "$FILE" || exit 1 ;; - fullscreen) grim "$FILE" || exit 1 ;; -esac - -# Menu -CHOICE=$(printf ' Copy Path\n Copy Image\n Annotate' | \ - fuzzel --dmenu --prompt "Screenshot: " --width 20 --lines 3) - -case "$CHOICE" in - *"Copy Path"*) echo -n "$FILE" | wl-copy --type text/plain ;; - *"Copy Image"*) wl-copy --type image/png < "$FILE" ;; - *"Annotate"*) satty --filename "$FILE" --output-filename "$FILE" --copy-command wl-copy ;; -esac |
