summaryrefslogtreecommitdiffhomepage
path: root/README
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-12 23:51:14 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-12-12 23:51:14 +0100
commitefd9bc7177c66d7bb9a994e919d915ecb5c75154 (patch)
tree8acc67d927ff801004e45a4b297b35a0953550a4 /README
parent52be04baa703cb5c0263aecb61f0079230367cd0 (diff)
downloadxmobar-efd9bc7177c66d7bb9a994e919d915ecb5c75154.tar.gz
xmobar-efd9bc7177c66d7bb9a994e919d915ecb5c75154.tar.bz2
Uptime as a Monitor
Diffstat (limited to 'README')
-rw-r--r--README15
1 files changed, 11 insertions, 4 deletions
diff --git a/README b/README
index 8de3050..a8e7e0c 100644
--- a/README
+++ b/README
@@ -314,6 +314,17 @@ installed by default.
Each monitor has an `alias` to be used in the output template.
Monitors have default aliases.
+`Uptime Args RefreshRate`
+
+- Aliases to `uptime`
+- Args: default monitor arguments (see below). The low and high
+ thresholds refer to the number of days.
+- Variables that can be used with the `-t`/`--template` argument:
+ `days`, `hours`, `minutes`, `seconds`. The total uptime is the
+ sum of all those fields. You can set the `-P` argument to "True"
+ to add units to the display of those numeric fields.
+- Default template: `Up: <days>d <hours>h <minutes>m`
+
`Weather StationID Args RefreshRate`
- Aliases to the Station ID: so `Weather "LIPB" []` can be used in template as `%LIPB%`
@@ -660,10 +671,6 @@ can be used in the output template as `%mydate%`
- Format is a time format string, as accepted by the standard ISO C
`strftime` function (or Haskell's `formatCalendarTime`).
-`Uptime Alias RefreshRate`
-
-- Shows system uptime.
-
`CommandReader "/path/to/program" Alias`
- Runs the given program, and displays its standard output.