Skip to main content

A very simple tool that monitors your desktop for new screenshots, moves them to your public Keybase filesystem, and copies the link to your clipboard.

Works on macOS and (probably) Linux.

Dependencies

On macOS, install terminal-notifier from homebrew to have notifications when complete.

Installation

Simply:

$ pip install screenbase

Usage

By default, screenbase watches your ~/Desktop directory for files matching a regex tailored to macOS screenshot filenames (Screen Shot 2017-03-09 at 5.29.50 PM.png). This regex is configurable as a string passed with the -m flag. The watch directory is configurable via the -d flag.

Similarly, screenbase uses your current username (via Python’s getpass.getuser()) as your keybase username by default, which it uses to move files into your kbfs public folder and generate the URL to it. This can be configured via the -u flag.

Screenbase will look for a YAML-formatted config file in ~/.config/screenbase (this path configurable with the -c flag). If it finds it, it will overload the default configs with the values it contains. The keys should match the long form of the command line flags you can see via --help. Eg:

---
user: jlindsey
directory: /Users/jlindsey/screenshots
verbose: True

License

Copyright (C) 2017 Joshua Lindsey <joshua.s.lindsey@gmail.com>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses>.

Metadata

Release files for screenbase 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for screenbase 1.1.0
File Size Uploaded
screenbase-1.1.0.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for screenbase 1.1.0
File Interpreter ABI Platform
screenbase-1.1.0-py2-none-any.whl Python 2 none any Details

Total release size: 13.3 kB

Release files / screenbase-1.1.0.tar.gz

Download URL screenbase-1.1.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
05c7955fd05051a9fe5b8f5cb58f3b2e1b4f8bad8bdbe6b90312f79de0c81a45
BLAKE2b-256 checksum
How to use checksums
d2b179209a57e57802f43997a0fd1b8b8371e22e03a17a5d7576e3b0d5c74869
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / screenbase-1.1.0-py2-none-any.whl

Download URL screenbase-1.1.0-py2-none-any.whl
Size 8.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
624e293ab4f19870d4c128efac2958ef812b6fca6f8377d6a54268e1ab9aadc9
BLAKE2b-256 checksum
How to use checksums
a6f7216c46e3f9d8e7cb7af8f0d06230d251354300178f0e7a17913237ef1e00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page