summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlexander Polakov <plhk@sdf.org>2013-03-13 21:03:55 +0400
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-03-13 21:11:47 +0100
commitd78522b9fc75540d9671ddabad2deb142db88f13 (patch)
tree733950cf1853c2ede4280a6ed3ca8b685802b568
parent97cf495c40c2b28aa292014b35161641c42d71b3 (diff)
downloadxmobar-d78522b9fc75540d9671ddabad2deb142db88f13.tar.gz
xmobar-d78522b9fc75540d9671ddabad2deb142db88f13.tar.bz2
Add action example
-rw-r--r--readme.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index f90be83..e3ee373 100644
--- a/readme.md
+++ b/readme.md
@@ -190,6 +190,8 @@ For the output template:
- `<icon=/path/to/icon.xbm/>` will insert the given bitmap.
+- `<action=command>` will execute given command.
+
Other configuration options:
`font`
@@ -439,6 +441,12 @@ form:
which will produce the expected result.
+It's also possible to use action directives of the form:
+
+ <action=command>
+
+which will be executed when clicked on.
+
## The `commands` Configuration Option
The `commands` configuration option is a list of commands information
@@ -460,6 +468,10 @@ an example of a template for the commands above using an icon:
template="<icon=/home/jao/.xmobar/mem.xbm/><memory> <swap>"
+Action example:
+
+ template="<action=xclock>%date%</action>
+
The only internal available command is `Com` (see below Executing
External Commands). All other commands are provided by plugins. xmobar
comes with some plugins, providing a set of system monitors, a