diff options
| author | awy <awy@awy.one> | 2025-11-29 18:45:22 +0300 |
|---|---|---|
| committer | awy <awy@awy.one> | 2025-11-29 18:45:22 +0300 |
| commit | 58672b33e45d0ffe7070224dac8f40f4d20b7bbf (patch) | |
| tree | cfd15501024d1f0c7f59110860a277e6f50299ba /.local/bin/maimpick | |
| parent | 8d90f5a577b75b8a792b7a2f02d98a31e9ff19c4 (diff) | |
| download | hyprdots-58672b33e45d0ffe7070224dac8f40f4d20b7bbf.tar.gz | |
ww
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 a25d5dd..2a71be3 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 -theme-str 'listview {scrollbar: false;}' -theme-str 'window {width: 10%;}' -dmenu -only-match -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" | rofi -theme-str 'listview {scrollbar: false;}' -theme-str 'window {width: 10%;}' -dmenu -no-custom -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) |