sites

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

index.md (1805B)


      1 integrated status text
      2 ======================
      3 
      4 Description
      5 -----------
      6 Allows dwm to handle the text by itself. You can think of it like a dwmblocks
      7 integration into dwm itself. This is extracted from demwm, dwm fork[0], in
      8 which you can find even more information.
      9 
     10 Example:
     11 
     12 	/* fg         command             interval  signal */
     13 	{ "#000000",  "echo 'dwm block!",   10,       3},
     14 
     15 - fg: the foreground color of the individual block, for the background it uses
     16   the bg of SchemeStatus. You can swap behaviour uncommenting a comment in
     17   dwm.c (search for 'uncomment to inverse the colors')
     18 
     19 - command: it uses the output of the commands for the status text interval: in
     20   seconds, how much does it have to pass before updating the block.
     21 
     22 - interval: in seconds, how many seconds until the block it's updated
     23 
     24 - signal: have to be less than 30. This lets you update the block with `kill`
     25   by adding 35 to this value.
     26   For the block above it would be 34 + 3 = 37 -> `kill -37 $(pidof dwm)`.
     27   These signals are linux dependant.
     28 
     29 You can change `$(pidof dwm)` with `$STATUSBAR` to 'fix' signaling multiple
     30 instances of dwm, since this patch also wraps the PID of dwm into the
     31 `$STATUSBAR` enviromental variable.
     32 
     33 Last thing, mouse actions. For this you need to handle the env variable
     34 `$BLOCK_BUTTON` in a script, this is so you can easily reuse the scripts used
     35 in dwmblocks. And remember that mouse actions update the block.
     36 
     37 [0] https://github.com/explosion-mental/demwm or
     38 https://codeberg.org/explosion-mental/demwm
     39 
     40 Download
     41 --------
     42 * [dwm-integrated-status-text-6.3.diff](dwm-integrated-status-text-6.3.diff)
     43 * [codeberg mirror](https://codeberg.org/explosion-mental/demwm/src/branch/patches/dwm-integrated-status-text-6.3.diff)
     44 
     45 Author
     46 ------
     47 * explosion-mental - <explosion0mental@gmail.com>