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:

  • 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
  • scrot
  • 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.6.tar.gz (687.1 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: i3lockcomics-1.0.6.tar.gz
  • Upload date:
  • Size: 687.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5

File hashes

Hashes for i3lockcomics-1.0.6.tar.gz
Algorithm Hash digest
SHA256 9dd1b74fa446910ecbef38e7daab96e0ddf3df6eb762622aa2dfc655ad3de3a9
MD5 568fd56de1ca42990f9f0b19260a21e3
BLAKE2b-256 32a8b400c27241550d5552591c1383eef0f9d0cf78bcd4dea1048a4eb1293352

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