diff options
author | portix <portix@gmx.net> | 2012-01-18 22:01:48 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2012-01-18 22:01:48 +0100 |
commit | 8e9e2f074ee10f411f54848f390475b5480c572e (patch) | |
tree | f9807f0ece319f187c76cf239910fd784fc9f47f /doc/dwb.1 | |
parent | 91a28efab499da9a0c40b189527649ee4dee822d (diff) | |
download | dwb-8e9e2f074ee10f411f54848f390475b5480c572e.zip |
Set environment variables for userscripts
Diffstat (limited to 'doc/dwb.1')
-rw-r--r-- | doc/dwb.1 | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1776,7 +1776,17 @@ Javascript userscripts can be stored in Userscripts can be stored in .IR ~/.config/dwb/userscripts . The first argument of the script will be the current url, the second argument is -the profile. The keybinding for +the title, the third argument will be the profile name, the fourth argument is +the numerical modifier and the fifth argument is a commandline argument. Also +the variables +.IR DWB_URI , +.IR DWB_TITLE , +.IR DWB_PROFILE , +.I DWB_NUMMOD +and +.IR DWB_ARGUMENT +are set. +The keybinding for the script must be defined in the script itself in a commented line of the form .B <comment symbols> dwb: <keybinding>. Commands can be executed by sending the command to stdout. |