openbsd-ports/x11/xmobar/patches/patch-xmobar_config-sample
kili 671ec9137c Update to to version 0.11.1.
Add battery monitor support for OpenBSD.

From maintainer Jona Joachim.
2010-07-17 14:55:21 +00:00

23 lines
1.3 KiB
Plaintext

$OpenBSD: patch-xmobar_config-sample,v 1.2 2010/07/17 14:55:21 kili Exp $
--- xmobar.config-sample.orig Mon May 17 12:17:50 2010
+++ xmobar.config-sample Mon Jul 12 16:03:46 2010
@@ -4,15 +4,11 @@ Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
, position = Top
, lowerOnStart = True
, 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
- , Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
- , Run Memory ["-t","Mem: <usedratio>%"] 10
- , Run Swap [] 10
, Run Com "uname" ["-s","-r"] "" 36000
- , Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
+ , Run Battery ["-t","Batt: <left> <minleft>"] 10
+ , Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
]
, sepChar = "%"
, alignSep = "}{"
- , template = "%cpu% | %memory% * %swap% | %eth0% - %eth1% }{ <fc=#ee9a00>%date%</fc>| %EGPF% | %uname%"
+ , template = "%battery% }{ <fc=#ee9a00>%date%</fc>| %EGPF% | %uname%"
}