From 89bee7551a7845eb974bac2346a522348fcab6ec Mon Sep 17 00:00:00 2001 From: Martin Perner Date: Mon, 4 Apr 2011 21:33:22 +0200 Subject: Added brightness monitor --- README | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'README') diff --git a/README b/README index 925c1aa..9294586 100644 --- a/README +++ b/README @@ -677,6 +677,24 @@ Monitors have default aliases. distribution can be used to set the given property from the output of any other program or script. +`Brightness Args RefreshRate` + +- Aliases to `bright` +- Args: default monitor arguments (see below), plus the following specif ones: + - `-D`: directory in `/sys/class/backlight/` with files in it + (default: "acpi_video0") + - `-C`: file with the current brightness (default: + actual_brightness) + - `-M`: file with the maximum brightness (default: + max_brigtness) +- Variables that can be used with the `-t`/`--template` argument: + `hbar`, `percent`, `bar` +- Default template: `%` +- Example: + + Run Brightness ["-t", ""] 60 + + [samples/xmonadpropwrite.hs script]: https://github.com/jaor/xmobar/raw/master/samples/xmonadpropwrite.hs ## Monitor Plugins Commands Arguments -- cgit v1.2.3 From 41fa766599e061dec240aced32b2444e631d6b60 Mon Sep 17 00:00:00 2001 From: Martin Perner Date: Tue, 5 Apr 2011 23:54:02 +0200 Subject: Bright Monitor: Didn't made use of -S --- README | 2 +- src/Plugins/Monitors/Bright.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'README') diff --git a/README b/README index 9294586..f8ecc83 100644 --- a/README +++ b/README @@ -689,7 +689,7 @@ Monitors have default aliases. max_brigtness) - Variables that can be used with the `-t`/`--template` argument: `hbar`, `percent`, `bar` -- Default template: `%` +- Default template: `` - Example: Run Brightness ["-t", ""] 60 diff --git a/src/Plugins/Monitors/Bright.hs b/src/Plugins/Monitors/Bright.hs index 36009a6..4cbbfa4 100644 --- a/src/Plugins/Monitors/Bright.hs +++ b/src/Plugins/Monitors/Bright.hs @@ -53,7 +53,7 @@ sysDir = "/sys/class/backlight/" brightConfig :: IO MConfig brightConfig = mkMConfig - "%" -- template + "" -- template ["hbar", "percent", "bar"] -- replacements data Files = Files -- cgit v1.2.3