diff options
Diffstat (limited to '.local/bin/maimpick')
-rwxr-xr-x | .local/bin/maimpick | 2 |
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) |