Skip to main content

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

Project description

i3lock-comics

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:

  • CommitStrip
  • Dilbert
  • Dinosaur Comics
  • Fagprat (no)
  • Get Fuzzy - new!
  • Lille Berlin (no) - new!
  • Lunch (no)
  • Nemi (no)
  • Pondus (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.

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.)

 

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

Uploaded Source

File details

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

File metadata

  • Download URL: i3lockcomics-1.0.tar.gz
  • Upload date:
  • Size: 427.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.5.3 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for i3lockcomics-1.0.tar.gz
Algorithm Hash digest
SHA256 828308422f4767a13ae962cd7d21d4f40f5af88381f37c221f2b6dc03bd4a558
MD5 eec629ae9db69b1e3d404cad11f2befe
BLAKE2b-256 118715564590162af24dfb8967da9215851f9caa3a0aec4eee0a0e24edb0ba17

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