summaryrefslogtreecommitdiff
path: root/.local/bin/shorts/windowshot
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/shorts/windowshot')
-rwxr-xr-x.local/bin/shorts/windowshot6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/shorts/windowshot b/.local/bin/shorts/windowshot
new file mode 100755
index 0000000..c654cc7
--- /dev/null
+++ b/.local/bin/shorts/windowshot
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+image="${XDG_PICTURES_DIR:-$HOME/Pictures}/xwindow.jpg"
+import -window "$(xdotool selectwindow)" "$image"
+# dragon-drop --and-exit "$image"
+xclip -sel clipboard -t image/png -i "$image"