index.md - sites - public wiki contents of suckless.org
HTML git clone git://git.suckless.org/sites
DIR Log
DIR Files
DIR Refs
---
index.md (1249B)
---
1 Color Message
2 =============
3
4 Description
5 -----------
6 Based on the message patch, This patch lets you add a message to your lock screen, using 24 bit color ANSI escape codes.
7
8 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`
9
10 For example, you can run
11
12 slock -m "$(printf "text colored \x1b[38;2;0;255;0m green\x1b[39m\n")"
13
14 to color a single word
15
16 Or, you can go all in and run
17
18 slock -m "$(cowsay "$(fortune)" | lolcat -ft)"
19
20 Notes
21 -----
22 This adds three items to `config.h`:
23
24 * `message` - the default message
25 * `text_color` - the color used when no color codes are in effect. can be a hex color or a colorname
26 * `font_name` - which must be some valid X11 font name like "6x10".
27
28 *A list of font names can be generated with* `slock -f`
29
30 *When using lolcat you should add the -ft options*
31
32 Download
33 --------
34 * [slock-colormessage-20200210-35633d4.diff](slock-colormessage-20200210-35633d4.diff)
35 * [slock-colormessage-20250226-a34d8fb.diff](slock-colormessage-20250226-a34d8fb.diff)
36
37
38 Authors
39 -------
40 * Guy Shefy - guyshefyb@gmail.com
41 * Based on patch by Blair Drummond - blair.robert.drummond@gmail.com
42 * Max Schillinger - maxschillinger@web.de (20250226 version)