diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-05-07 13:44:50 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-05-07 13:44:50 +0530 |
commit | e55ad8ca4f99fa024106d5695a55f9ac132d7b68 (patch) | |
tree | f8762e7ac43504841f3c14c20bd8f149c1cbc344 /.local/bin/shorts/windowshot | |
parent | 7df7120b1ae66ed0e9a7c6ed9b224ba44ea1d920 (diff) |
updates
Diffstat (limited to '.local/bin/shorts/windowshot')
-rwxr-xr-x | .local/bin/shorts/windowshot | 6 |
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" |