Color Message

Description

Based on the message patch, This patch lets you add a message to your lock screen, using 24 bit color ANSI escape codes.

Exactly like in the original patch, You can place a default message in config.h, and you can also pass a message with -m message

For example, you can run

slock -m "$(printf "text colored \x1b[38;2;0;255;0m green\x1b[39m\n")"

to color a single word

Or, you can go all in and run

slock -m "$(cowsay "$(fortune)" | lolcat -ft)"

Notes

This adds three items to config.h:

A list of font names can be generated with slock -f

When using lolcat you should add the -ft options

Download

Authors