Message
Description
This patch lets you add a message to your lock screen. You can place a default
message in config.h, and you can also pass a message with -m message
So, for instance, you can run
slock -m "Locked at $(date "+%a %d, %H:%M:%S")"
Or if you want a silly lockscreen
slock -m "$(cowsay "$(fortune)")"
Notes
This adds three items to config.h:
message- the default messagetext_color- which can be a hex color or a colorname (like "black")font_name- which must be some valid X11 font name like "6x10". This variable was (somewhat wrongly) named "text_size" in the previous version.
A list of font names can be generated with slock -f
- Exclusive to xft:
config.h
* `font_name` - which can be name of font in `fc-list` or `slock -f` like in dwm, but without (antialias=true:autohint=true) as it's by default added.
* `font_size` - it reffers to size of font you want to display in message in floating point, e.g., 18.0
Download
Previous Version
Authors
- Blair Drummond - blair.robert.drummond@gmail.com
- Sourav Nayak - nonameblank007@gmail.com