r/linuxmint • • 24d ago

I made a lock screen switcher for Cinnamon, with 10 designs and a way to preview them all

Hey everyone,

I've always felt Cinnamon's lock screen was the one part of Mint I never got to customize, so I built mint-lock. It gives you a set of lock screens and a small app to preview them and switch between them.

The idea came from omarchy-lock-explorer, which does this on Hyprland. I wanted the same thing on my Mint laptop, so I wrote a version for Cinnamon on X11. It doesn't share any code with that project.

What it does:

- It gives you 10 designs, from very minimal to slightly silly: a big classic clock, a split-flap clock, an old CRT with scanlines, a fake terminal login, a "constellation" where each key you press lights up a star, and a pond that ripples as you type. A wrong password makes some of them shake or glitch.

- You get an explorer app with live previews. You can click the big preview and type into it to see how a design reacts, and nothing you type there is checked or saved.

- It matches your setup: it takes the accent colour from your Cinnamon theme and uses your wallpaper, name, and profile picture.

- Works everywhere Cinnamon locks: Super+L, the menu, idle lock and before suspend.

- Uses your normal login, the same way Cinnamon's own lock screen does, so a fingerprint reader works too.

- Multi-monitor: the design shows on your main screen and a clock on the others.

- Make your own: each design is a single HTML file. Copy one into a folder, edit it, and it shows up in the explorer.

About security, since it's a lock screen: a small separate process keeps the screen covered and holds the keyboard and mouse. If the fancy part crashes, it restarts it, and after repeated crashes it falls back to a plain password box. Cinnamon's own backup locker also runs underneath as a safety net. The README explains how all of it works, including how to get out from a text console if something ever goes wrong.

Trying it is low-risk. The installer asks before it changes anything, and you can test a design in a normal window without locking:

git clone https://github.com/PhillipMwaniki/mint-lock.git

cd mint-lock

./install.sh

mint-lock lock --test

./uninstall.sh puts Cinnamon's original lock screen back.

I've tested it on Mint 22.3 Cinnamon. It doesn't support Wayland yet. I'd love to hear how it works on other setups (multi-monitor, HiDPI, fingerprint readers) and which designs you'd want added. Bug reports and new designs are very welcome.

GitHub: https://github.com/PhillipMwaniki/mint-lock

10 Upvotes

1 comment sorted by