#file-watcher #screenshot #image #linux #automatic #send #gyazo

app kya

Watches for new screenshots and sends them to Gyazo

19 releases

0.2.5 Mar 6, 2023
0.2.4 May 5, 2022
0.2.3 Nov 3, 2021
0.1.12 Nov 1, 2021
0.1.10 Oct 31, 2021

#429 in Images

49 downloads per month

MIT license

12KB
220 lines

File watcher for Linux that sends images to Gyazo. This allows you to use Gyazo with screenshot programs that are more usable, such as Spectacle.

Installation

Install using cargo.

cargo install kya

Perform the first-run setup:

kya-for-gyazo --first-run

Then edit the configuration file at .config/kya in your home directory. Kya requires an access token from the Gyazo API. Receiving an access token is fast and painless, simply go to the developer page and create a new app. You can leave the callback URL as "http://example.com" or whatever you like.

Edit the configuration TOML file with the access token and provide the location of where screenshots are saved. Kya will watch for any new files that show up while Kya is running. Configuration example:

access_token = "SomethingSomething"
directory = "/home/gert/Pictures/Screenshot"
open_in_browser = true

If you don't want the daemon to open the new image link in the browser, set open_in_browser to false.

Automatically starting Kya

Kya is designed to be started automatically, such as by KDE autostart, or GNOME startup applications. You can also add it to .xinitrc, for example alongside KDE:

kya-for-gyazo &
exec startplasma-x11

Kya does a check not to run multiple instances of itself at once.

Dependencies

~6–16MB
~206K SLoC