summaryrefslogtreecommitdiff
path: root/.local/bin/shorts/windowshot
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2025-05-07 13:44:50 +0530
committerVikas Kushwaha <dev@vikas.rocks>2025-05-07 13:44:50 +0530
commite55ad8ca4f99fa024106d5695a55f9ac132d7b68 (patch)
treef8762e7ac43504841f3c14c20bd8f149c1cbc344 /.local/bin/shorts/windowshot
parent7df7120b1ae66ed0e9a7c6ed9b224ba44ea1d920 (diff)
updates
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"