Prerequisites:
- awesomewm (https://awesomewm.org/)
- kitty (https://sw.kovidgoyal.net/kitty/)
- alock (https://github.com/Arkq/alock)
- cmatrix (https://github.com/abishekvashok/cmatrix)
- procps (https://man7.org/linux/man-pages/man1/procps.1.html) for pkill
- In awesomewm's rc.lua:
awful.key(
{modkey},
"m",
function()
awful.util.spawn("kitty cmatrix", {floating = true, screen = 1, fullscreen = true})
awful.util.spawn("kitty cmatrix", {floating = true, screen = 2, fullscreen = true})
awful.spawn.with_shell("alock -bg none && pkill cmatrix")
end,
{description = "matrixlock", group = "super"}
)
- Replace terminal if needed (I use kitty), also I use two screens, you may want to delete one line to only use 1 screen.
- Now
modkey + m
- Enter your password promptly to escape the matrix, frame should give you hints 👩💻
- And you're in!
You can probably make this agnostic to how many screens you have, if you want to it to show on all screens. This should just get you all screens to iterate over: https://awesomewm.org/doc/api/classes/screen.html#screen:screen
Or you can use this to get the number of screens and then just iterate from to 1 that number: https://awesomewm.org/doc/api/classes/screen.html#screen:count
Can't test it myself right now, but I can take a look at it some time throughout the week.