Skip to content

geirawsm/swaylockcomics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

swaylockcomics

Python script to fetch the newest edition of a comic strip and use it in swaylock. 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 swaylock.

Comics supported:

  • Calvin & Hobbes
  • CommitStrip
  • Dilbert
  • Dinosaur Comics
  • Fagprat (no)
  • Get Fuzzy
  • Lunch (no)
  • PvP
  • xkcd

 

Install

Easy peasy: pip install swaylockcomics

 

How to use

Run swaylockcomics to lock your screen with swaylock 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 swaylockcomics -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:

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

About

Lockscreen for linux that shows comic strips

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages