sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (1510B)


      1 Message
      2 =======
      3 
      4 Description
      5 -----------
      6 This patch lets you add a message to your lock screen. You can place a default
      7 message in `config.h`, and you can also pass a message with `-m message`
      8 
      9 So, for instance, you can run
     10 
     11 	slock -m "Locked at  $(date "+%a %d, %H:%M:%S")"
     12 
     13 Or if you want a silly lockscreen
     14 
     15 	slock -m "$(cowsay "$(fortune)")"
     16 
     17 Notes
     18 -----
     19 This adds three items to `config.h`: 
     20 
     21 * `message` - the default message 
     22 * `text_color` - which can be a hex color or a colorname (like "black")
     23 * `font_name` - which must be some valid X11 font name like "6x10". This variable was (somewhat wrongly) named "text_size" in the previous version.
     24 
     25 *A list of font names can be generated with* `slock -f`
     26 
     27 * Exclusive to xft: `config.h`
     28 
     29 	* `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.
     30 	* `font_size` - it reffers to size of font you want to display in message in floating point, e.g., 18.0
     31 
     32 
     33 Download
     34 --------
     35 * [slock-message-20261008-65cb721.diff](slock-message-20261008-65cb721.diff)
     36 * [slock-message-xft-20261008-65cb721.diff](slock-message-xft-20261008-65cb721.diff)
     37 
     38 Previous Version
     39 ----------------
     40 * [slock-message-20191002-b46028b.diff](slock-message-20191002-b46028b.diff) --- [bug-fixes](bug-fixes)
     41 * [slock-message-20180626-35633d4.diff](slock-message-20180626-35633d4.diff)
     42 
     43 Authors
     44 -------
     45 * Blair Drummond - blair.robert.drummond@gmail.com
     46 * Sourav Nayak - <nonameblank007@gmail.com>