URI: 
       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 (1447B)
       ---
            1 color status bar
            2 ================
            3 
            4 Description
            5 -----------
            6 This patch adds some color to the status bar. It allows you to change the
            7 colorset of text portions from "norm" to "sel" (and back) and to invert the
            8 colorset (the foreground becomes the background color and vice versa).
            9 
           10 Usage
           11 -----
           12 Download the patch and apply it according to the [general instructions](.). The
           13 patch will make the following changes:
           14 
           15 * colorstatus.c: adding the file
           16 * dwm.c: adding the include-line for 'colorstatus.c'
           17 * dwm.c ('drawbar' function): adding the int-variable 'stextw'
           18 * dwm.c ('drawbar' function): changing the 'drawtext' section for stext
           19 
           20 Configuration
           21 -------------
           22 The configuration is done in the file '.xinitrc', where you define the status
           23 bar text. You can add the following tags:
           24 
           25 * '[c]' (without quotes): toggles the colorset (norm -> sel or sel -> norm
           26   depending on the currently selected colorset)
           27 * '[i]' (without quotes): inverts the current colorset (fgcolor -> bgcolor and
           28   bgcolor -> fgcolor)
           29 
           30 The change is applied from the position of the tag onwards. To revert the
           31 change you have to set the same tag again.
           32 
           33 Example
           34 -------
           35         echo -e NEW mail: $mailnew \| VOL front: $audiofront \| BAT:[i]$batpercent[i]\| CPU: $cpuavgload \| $datestr[c]$timestr
           36 
           37 Download
           38 --------
           39 * [dwm-5.2-colorstatus.diff](dwm-5.2-colorstatus.diff) (4.1k, 131 additional lines) (20081117)
           40 * [.xinitrc example](dwm-5.2-colorstatus.xinitrc) (0.8k) (20081117)
           41