diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-08-09 01:21:53 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-08-09 01:21:53 -0400 |
| commit | 983bfb52a200a94b17ad280e10eeeec7683affba (patch) | |
| tree | 2e79cac1afdc640537b252a04f9af99f2bb3d968 /modules/user/desktop/scripts/screenshot.sh | |
| parent | afc0ab72138a6058a9ca98f2cbe13c21f88daa7d (diff) | |
start rewriterefactor
Diffstat (limited to 'modules/user/desktop/scripts/screenshot.sh')
| -rw-r--r-- | modules/user/desktop/scripts/screenshot.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/modules/user/desktop/scripts/screenshot.sh b/modules/user/desktop/scripts/screenshot.sh deleted file mode 100644 index 8250f9e..0000000 --- a/modules/user/desktop/scripts/screenshot.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash -# Bash screenshot script. Requires grim, slurp, sway, fuzzel, libnotify and jq. -[[ -d "~/Pictures/Screenshots" ]] || mkdir -p ~/Pictures/Screenshots -IFS=$'\n' -screenshot_targets=$(swaymsg -rt get_outputs | jq -r '.[].name' | sort) -screenshot_targets+=($'\nSpecific region') # i LOVE bash -selected_target="$(printf '%s' "${screenshot_targets[@]}" | fuzzel --hide-prompt --mesg='What would you like to screenshot?' --mesg-mode=expand --minimal-lines --dmenu)" -outfile="$HOME/Pictures/Screenshots/$(date +'%F_%H.%M.%S.png')" - -send_notification() { - notify-send "Screenshot taken" "Screenshot saved to <b>$1</b>." -} - -case $selected_target in - 'Specific region') grim -g "$(slurp)" "$outfile" && send_notification "$outfile";; - *) grim -o "$selected_target" "$outfile" && send_notification "$outfile" ;; -esac |
