From 00d7e261ec864b9cdbdd3fa1cd90e4121d08630d Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Sun, 28 Oct 2007 22:47:20 +0100 Subject: 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 --- Plugins/helloworld.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Plugins') diff --git a/Plugins/helloworld.config b/Plugins/helloworld.config index 4dfc082..dcf99ff 100644 --- a/Plugins/helloworld.config +++ b/Plugins/helloworld.config @@ -2,11 +2,11 @@ Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*" , bgColor = "#000000" , fgColor = "#BFBFBF" , position = Top - , align = "right" , commands = [ Run Cpu [] 10 , Run Weather "LIPB" [] 36000 , Run HelloWorld ] , sepChar = "%" - , template = "%cpu% | %helloWorld% | %LIPB% | %date%" + , alignSep = "}{" + , template = "%cpu% } %helloWorld% { %LIPB% | %date%" } -- cgit v1.2.3