aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/maimpick
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-08-14 05:46:25 +0300
committerawy <awy@awy.one>2025-08-14 05:46:25 +0300
commit222fe9a9ffc5430ea28173f01482f30b26f22648 (patch)
treed11094fe10c854cd23dfa5f49850e1facfefe116 /.local/bin/maimpick
parent9e12eb5b61daa6fc864301893bc6242614777d76 (diff)
downloadhyprdots-222fe9a9ffc5430ea28173f01482f30b26f22648.tar.gz
update
Diffstat (limited to '.local/bin/maimpick')
-rwxr-xr-x.local/bin/maimpick2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/maimpick b/.local/bin/maimpick
index 390d5e2..29cf327 100755
--- a/.local/bin/maimpick
+++ b/.local/bin/maimpick
@@ -13,7 +13,7 @@ get_active_window() {
hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"'
}
-case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\na selected area (swappy)\\ncurrent window (swappy)\\nfull screen (swappy)\\ncopy selected image to text" | rofi -dmenu -l 10 -i -p "Screenshot which area?")" in
+case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\na selected area (swappy)\\ncurrent window (swappy)\\nfull screen (swappy)\\ncopy selected image to text" | mew -l 10 -i -p "Screenshot which area?")" in
"a selected area") geometry=$(slurp) && sleep 0.2 && grim -g "$geometry" pic-selected-"${output}" && notify-send "📸 maimpick" "Screenshot saved as pic-selected-$output." ;;
"current window")
geometry=$(get_active_window)