https://github.com/doccaico/crop
Take a screenshot of specific area using keys (not using a LEFT-CLICK) and upload to Imgur.com
https://github.com/doccaico/crop
Last synced: over 1 year ago
JSON representation
Take a screenshot of specific area using keys (not using a LEFT-CLICK) and upload to Imgur.com
- Host: GitHub
- URL: https://github.com/doccaico/crop
- Owner: doccaico
- Created: 2020-10-16T20:19:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-16T20:20:44.000Z (over 5 years ago)
- Last Synced: 2025-01-06T11:38:52.226Z (over 1 year ago)
- Language: C
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is C version of https://gitlab.com/-/snippets/2027453
I've only tested it on Linux.
### Build
```
# build
$ make
# install to ~/bin (if you change it, edit Makefile)
$ make install
# uninstall
$ make uninstall
```
### Prerequirement
#### Used
- 1. import, display, python3(using `requests`)
- 2. libX11.a
#### Upload an image to Imgur.com
- 1. save your Client ID in ~/.imgur
- 2. (install) pip install requests
### Usage
#### Keybinding
```
'1': set a (x, y) top-left-pos
'2': set a (x, y) bottom-right-pos
'3': take an image(~/Desktop/FILENAME)
'v': view an image(~/Desktop/FILENAME)
'i': upload an image(~/Desktop/FILENAME) to Imgur.com
'ESC': exit
```