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.5.tar.gz (686.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: i3lockcomics-1.0.5.tar.gz
  • Upload date:
  • Size: 686.8 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.5rc1

File hashes

Hashes for i3lockcomics-1.0.5.tar.gz
Algorithm Hash digest
SHA256 06fc48380513c94e2a93b29ee86ea67701aa64af8a541df8eeac95a0a0d5ef47
MD5 0947e8f65c9c3bcd86ebba59322c7396
BLAKE2b-256 e93bcce71ae715662ec5338d7e0cac0d9876be1835bacd564f6f141a92ad8559

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