diff options
Diffstat (limited to 'niri/screenshotwayland.sh')
| -rwxr-xr-x | niri/screenshotwayland.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/niri/screenshotwayland.sh b/niri/screenshotwayland.sh new file mode 100755 index 0000000..22bacd0 --- /dev/null +++ b/niri/screenshotwayland.sh @@ -0,0 +1,12 @@ +#!/bin/bash +slurp | grim -g - - | wl-copy +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 |
