Last active
September 7, 2023 20:25
-
-
Save hellwolf/3c0d3da5113d71b6285afc1fc02bcb81 to your computer and use it in GitHub Desktop.
screenshot using `import` and `xclip`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ref: https://blog.roberthallam.org/2022/02/quick-tips-screenshot-screen-region-to-clipboard-under-x/ | |
sh -c "import png:- | xclip -selection clipboard -t image/png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh -c "D=\"`xdg-user-dir PICTURES`/Screenshots\";import \"png:\$D/Screenshot from `date +'%Y-%m-%d %H-%M-%S'`.png\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment