commit f503f47c913699447dedfed3d801e114e01489b4 parent 9e0ee088449f7e3526d4691f095ac78bcc3e4c46 Author: awy <awy@awy.one> Date: Thu, 20 Mar 2025 15:47:16 +0300 wmenu Diffstat:
M | .local/bin/maimpick | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)\\ncopy selected image to text" | wmenu -N 2e3440 -n d8dee9 -S eacb8a -s 3b4252 -M eacb8a -m 3b4252 -f "monospace 12" -l 7 -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)\\ncopy selected image to text" | wmenu -l 7 -i -p "Screenshot which area?")" in "a selected area") geometry=$(slurp) && sleep 0.2 && grim -g "$geometry" pic-selected-"${output}" ;; "current window") geometry=$(get_active_window) && sleep 0.2 && grim -g "$geometry" pic-window-"${output}" ;; "full screen") geometry=$(slurp -o) && sleep 0.2 && grim -g "$geometry" pic-full-"${output}" ;;