Skip to main content

Gets the newest edition of a comic strip and use it in i3lock

Project description

i3lockcomics

Python script to fetch the newest edition of a comic strip and use it in i3lock. Highly inspired by xkcd-lock by @angs.

 

Screenshot

 

Short description

This script gets the latest strip of a comic which is added on top of a pixelated screenshot of your desktop. This image is then used as a background image when running i3lock.

Comics supported:

  • Bestis (no) (new)
  • Calvin & Hobbes
  • CommitStrip
  • Dilbert
  • Dinosaur Comics
  • Fagprat (no)
  • Get Fuzzy
  • Intet Nytt fra Hjemmefronten (no)
  • Lunch (no)
  • Nemi (no)
  • PvP
  • xkcd

 

Install

Easy peasy: pip install i3lockcomics

 

How to use

Run i3lockcomics to lock your screen with i3lock and show a random comic strip. You can also chose a specific comic and use a pixellation distort on your lockscreen instead of the blurring. Check out i3lockcomics -h for more info.

If you use multiple displays, the script will only place the comic strip on your primary screen.

If the script can't fetch a comic because of connection issues, it will use a previous strip from the same comic, if it can find one in the strips-folder. If there is no net and no cached comic strip available, the script will use XKCD's password-strip as default.

(This seems to be OK according to Mr. xkcd himself:

"Can we print xkcd in our magazine/newspaper/other publication?"

"You can post xkcd in your blog (whether ad-supported or not) with no need to get my permission."

But Randall, if I'm mistaken, please let me know.)

When using xkcd, it will also get the alt-text for the image and paste it underneath the comic.

 

Dependencies:

These dependencies are required besides the modules installed by pip:

  • i3lock
  • maim
  • curl (called by the subprocess module)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

i3lockcomics-1.0.11.tar.gz (688.5 kB view details)

Uploaded Source

File details

Details for the file i3lockcomics-1.0.11.tar.gz.

File metadata

  • Download URL: i3lockcomics-1.0.11.tar.gz
  • Upload date:
  • Size: 688.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for i3lockcomics-1.0.11.tar.gz
Algorithm Hash digest
SHA256 afc809c5207129a5e3d8eea722cad813cba4bdcdcefe6cf7c4a96707b8920970
MD5 b1b80aaa4307668a1eb2edba6e93e6c4
BLAKE2b-256 75847f63535d1fa27d40314e16c9d7bba65d3baf15b9a068475ae83c8ae17149

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page