summaryrefslogtreecommitdiff
path: root/.local/bin/desktop/windowshot
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/desktop/windowshot')
-rwxr-xr-x.local/bin/desktop/windowshot3
1 files changed, 3 insertions, 0 deletions
diff --git a/.local/bin/desktop/windowshot b/.local/bin/desktop/windowshot
new file mode 100755
index 0000000..e4de6b0
--- /dev/null
+++ b/.local/bin/desktop/windowshot
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+import -silent -window "$(xdotool selectwindow)" png:- | xclip -sel clipboard -t image/png -i