From 087217e1950fa545ee4bc6b6f0e8dbe5c35b73a1 Mon Sep 17 00:00:00 2001 From: Marcin Mikołajczyk Date: Fri, 21 Feb 2014 23:21:48 +0100 Subject: Update readme --- readme.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index ae3fda5..eba3411 100644 --- a/readme.md +++ b/readme.md @@ -197,7 +197,10 @@ For the output template: - `` will insert the given bitmap. -- `` will execute given command. +- `````` will execute given command when + clicked with specified buttons. If not specified, button is equal to 1 + (left mouse button). Using old syntax (without backticks surrounding `command`) + will result in `button` attribute being ignored. Other configuration options: @@ -461,9 +464,10 @@ which will produce the expected result. It's also possible to use action directives of the form: - + -which will be executed when clicked on. +which will be executed when clicked on with specified mouse buttons. This tag +can be nested, allowing different commands to be run depending on button clicked. ## The `commands` Configuration Option @@ -488,7 +492,7 @@ an example of a template for the commands above using an icon: This example will run "xclock" command when date is clicked: - template="%date% + template="%date% The only internal available command is `Com` (see below Executing External Commands). All other commands are provided by plugins. xmobar @@ -1137,7 +1141,7 @@ can be used in the output template as `%mydate%` - Sample usage: send to xmobar's stdin the list of your workspaces enclosed by actions tags that switches the workspaces to be able to switch workspaces by clicking on xmobar: - `ws1 ws2` + ```ws1 ws2``` **`Date Format Alias RefreshRate`** -- cgit v1.2.3