_ _ _ ___ | | _____| |__ ___ | |_ / _ \| |/ / __| '_ \ / _ \| __| | (_) | <\__ \ | | | (_) | |_ \___/|_|\_\___/_| |_|\___/ \__|
okshot - Take and annotate screenshots in Linux with standard tools.
Usage: okshot [options] -s, --simple Take a screenshot without annotation and upload -c, --copy-clipboard Copy PNG file from clipboard and upload -i, --inkscape Use inkscape to edit the screenshot and upload
okshot takes a screenshot, saves it to a FTP server and copies a web
accessible URL to your clipboard. Optionally, the screenshot can be
annotated using Inkscape.
This gem is inspired by the lack of good screenshot tooling in Linux.
However, it’s so very easy to build
For uploading the files via FTP, it needs these environment variables set:
For example, you can do this in your shell config file (
~/.zshrc) or via sourceme. For example:
export OKSHOT_HOST=ftp.some-server.ch export OKSHOT_USER=your_user export OKSHOT_PASSWORD=your_password export OKSHOT_URL_PREFIX=https://okshot.your_domain.ch
gem install okshot
It assumes you’re using the i3wm tiling window manager and uses standard Linux tools. For all flags, it requires:
For the flag
-i, it additionally requires:
apt-get install imagemagick ftp inkscape wmctrl
After checking out the repo, run
bin/setup to install dependencies.
You can also run
bin/console for an interactive prompt that will
allow you to experiment.
To install this gem onto your local machine, run
bundle exec rake
install. To publish a new version, update the version number in
version.rb, and then run
bundle exec rake publish, which will
create a git tag for the version, push git commits and tags, and push
.gem file to rubygems.org.