diff options
| author | awy <awy@awy.one> | 2025-11-29 18:35:49 +0300 |
|---|---|---|
| committer | awy <awy@awy.one> | 2025-11-29 18:35:49 +0300 |
| commit | 8d90f5a577b75b8a792b7a2f02d98a31e9ff19c4 (patch) | |
| tree | 868e0d8389fb2b4e413409f65f57caa9c0b37eda /.local/bin/maimpick | |
| parent | db008a76e93dcfbf00fec5a141a1e1bd122b04a7 (diff) | |
| download | hyprdots-8d90f5a577b75b8a792b7a2f02d98a31e9ff19c4.tar.gz | |
uupdate
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 29cf327..a25d5dd 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" | mew -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 -only-match -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) |