summaryrefslogtreecommitdiff
path: root/hypr/screenshotwayland.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hypr/screenshotwayland.sh')
-rwxr-xr-xhypr/screenshotwayland.sh21
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