summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarcin Mikołajczyk <marcinmikolajcz@gmail.com>2014-02-21 23:21:48 +0100
committerMarcin Mikołajczyk <marcinmikolajcz@gmail.com>2014-02-21 23:21:48 +0100
commit087217e1950fa545ee4bc6b6f0e8dbe5c35b73a1 (patch)
treefb485a69f97624bbcb7e3f67353be04604c934c3
parent6ef984e25433608183004086f21a75e51209012c (diff)
downloadxmobar-087217e1950fa545ee4bc6b6f0e8dbe5c35b73a1.tar.gz
xmobar-087217e1950fa545ee4bc6b6f0e8dbe5c35b73a1.tar.bz2
Update readme
-rw-r--r--readme.md14
1 files 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:
- `<icon=/path/to/icon.xbm/>` will insert the given bitmap.
-- `<action=command>` will execute given command.
+- ```<action=`command` button=12345>``` 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:
- <action=command>
+ <action=`command` button=12345>
-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="<action=xclock>%date%</action>
+ 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
@@ -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:
- `<action=xdotool key alt+1>ws1</action> <action=xdotool key alt+1>ws2</action>`
+ ```<action=`xdotool key alt+1`>ws1</action> <action=`xdotool key alt+1`>ws2</action>```
<font size="+1">**`Date Format Alias RefreshRate`**</font>