https://github.com/webfreak001/linux-screenshot-utils
Mirror of https://gitlab.com/WebFreak001/linux-screenshot-utils
https://github.com/webfreak001/linux-screenshot-utils
Last synced: 5 months ago
JSON representation
Mirror of https://gitlab.com/WebFreak001/linux-screenshot-utils
- Host: GitHub
- URL: https://github.com/webfreak001/linux-screenshot-utils
- Owner: WebFreak001
- License: gpl-3.0
- Created: 2019-02-07T16:00:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-17T14:56:53.000Z (over 7 years ago)
- Last Synced: 2025-10-19T14:05:47.380Z (9 months ago)
- Language: D
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# linux-screenshot-utils
Better screenshot selector to use in shell scripts.
## Installation:
Install dub, gtk dev, x11 dev
Optionally also install xclip, paplay or other utilities you might want to use in your workflows.
## Selector utility
run `dub build --root=capture` to create the screenshot capture utility.
To create a minimal size utility run `dub build --root=capture --compiler=ldc2 --build=release && strip capture/capture`
You can use the selector utility with the "fullscreen" argument to make a fullscreen screenshot like xwd with direct conversion to a file format. For further conversion the BMP format is recommended as it is the fastest to encode and decode.
You can also use "region" or "objects" to have a selection GUI open. It will freeze what is currently on the screen when the command is run so screenshotting is easy.
You can also make links to the selector utility or rename it to force a specific selection mode. If the executable name ends with `-region`, `-objects`, `-fullscreen` or `-window`, their respective modes will be used as argument automatically.
To make screenshots:
```bash
#!/bin/bash
capture-objects png > /tmp/screenshot.png || exit 1
file=`image-history push /tmp/screenshot.png`
thumbnail="/tmp/screenshot-thumbnail-$$.bmp"
# gimp $file
url=`image-upload $file`
echo -n $url | xclip -sel clip
convert $file -resize "400x150>" $thumbnail
# kdialog --title "Successfully uploaded" --passivepopup "
"
notify-send "Screenshot Uploaded" "
"
```