diff options
| author | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
|---|---|---|
| committer | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
| commit | b7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch) | |
| tree | 366a68240fbc9da6b1d567bd6c46d1350ad814de /hypr/screenshotwayland.sh | |
Nixos
Diffstat (limited to 'hypr/screenshotwayland.sh')
| -rwxr-xr-x | hypr/screenshotwayland.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/hypr/screenshotwayland.sh b/hypr/screenshotwayland.sh new file mode 100755 index 0000000..73e2c6e --- /dev/null +++ b/hypr/screenshotwayland.sh @@ -0,0 +1,21 @@ +#!/bin/bash +input_type=$(printf "region\nwindow" | rofi -dmenu) +case "$input_type" in + "window") + hyprshot -m window --clipboard-only + ;; + *) + hyprshot -m region --clipboard-only + ;; +esac + +choice=$(printf "save to clipboard\nsave to file" | rofi -dmenu) + +case "$choice" in + "save to file") + wl-paste > ~/Pictures/Screenshots/screenshot-$(date +%F_%H-%M-%S).png + ;; + *) + exit 0 + ;; +esac |
