diff options
author | Alexander Polakov <plhk@sdf.org> | 2013-03-13 21:03:55 +0400 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2013-03-13 21:11:47 +0100 |
commit | d78522b9fc75540d9671ddabad2deb142db88f13 (patch) | |
tree | 733950cf1853c2ede4280a6ed3ca8b685802b568 | |
parent | 97cf495c40c2b28aa292014b35161641c42d71b3 (diff) | |
download | xmobar-d78522b9fc75540d9671ddabad2deb142db88f13.tar.gz xmobar-d78522b9fc75540d9671ddabad2deb142db88f13.tar.bz2 |
Add action example
-rw-r--r-- | readme.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |