-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# The Non-Null Pointer Screenshot | ||
This tool is an extension of the ["The Non-Null Pointer" (0x1)](https://github.com/RaJiska/0x1) project which allows one to capture and upload a screenshot with live cropping much like Gyazo's tool. The captured screenshots can be uploaded at any [0x0](https://github.com/lachs0r/0x0) clones / sub derivatives or websites accepting direct POST uploads. | ||
At this moment, only Linux platform is supported. | ||
|
||
## Installation | ||
``` | ||
$ add-apt-repository ppa:rajiska/0x1-screenshot | ||
$ apt-get update | ||
$ apt-get install 0x1-screenshot | ||
``` | ||
|
||
## Configuration | ||
The tool reads a simple configuration file which can be found either in `/etc/0x1-screenshot/general.cfg` or next to the binary `config.txt` (overriding the previous one). Sample configuration file: | ||
``` | ||
uploadurl=0x1.rajiska.fr | ||
screenshottool=gnome-screenshot -a -f | ||
``` | ||
The entry `screenshottool` is enterpreted as a shell command and is followed by a temporary file name which will hold the screenshot until the upload is achieved. | ||
|
||
## Build From Sources | ||
``` | ||
$ git clone --recursive https://github.com/RaJiska/0x1-screenshot | ||
$ mkdir build && cd build | ||
$ cmake .. | ||
$ make | ||
``` | ||
|
||
## Credits | ||
[libstb](https://github.com/nothings/stb) by Sean Barrett |