diff options
author | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2007-10-28 22:47:20 +0100 |
---|---|---|
committer | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2007-10-28 22:47:20 +0100 |
commit | 00d7e261ec864b9cdbdd3fa1cd90e4121d08630d (patch) | |
tree | d01092a564c9cf40997cd703450ec276f5e4e880 /xmobar.config-sample | |
parent | 73cf182f09fd806ff653197a816b7d20bf9319a2 (diff) | |
download | xmobar-00d7e261ec864b9cdbdd3fa1cd90e4121d08630d.tar.gz xmobar-00d7e261ec864b9cdbdd3fa1cd90e4121d08630d.tar.bz2 |
Added support for text alignment commands in the output template
WARNING: this patch breaks old configuration files.
- removed align configuration option
- added alignSep configuration option, a 2 character string: the text
before the first character will be align to left, the text in
between the 2 characters will be centered, and the text after the
second character will be align to the right. For instance:
with alignSep
darcs-hash:20071028214720-d6583-be3839c8989a8075f4b1c94dcbc351b499342370.gz
Diffstat (limited to 'xmobar.config-sample')
-rw-r--r-- | xmobar.config-sample | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmobar.config-sample b/xmobar.config-sample index 0cd80a7..4dae218 100644 --- a/xmobar.config-sample +++ b/xmobar.config-sample @@ -2,7 +2,6 @@ Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*" , bgColor = "black" , fgColor = "grey" , position = Static { xpos = 0 , ypos = 0, width = 1024, height = 15 } - , align = "right" , commands = [ Run Weather "EGPF" ["-t","<station>: <tempC>C","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"] 36000 , Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red"] 10 , Run Network "eth1" ["-L","0","-H","32","--normal","green","--high","red"] 10 @@ -13,5 +12,6 @@ Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*" , Run Date "%a %b %_d %Y %H:%M:%S" "date" 10 ] , sepChar = "%" - , template = "%cpu% | %memory% * %swap% | %eth0% - %eth1% | %EGPF% | <fc=#ee9a00>%date%</fc> %uname%" + , alignSep = "}{" + , template = "%cpu% | %memory% * %swap% | %eth0% - %eth1% }{ <fc=#ee9a00>%date%</fc>| %EGPF% | %uname%" } |