summaryrefslogtreecommitdiff
path: root/doc/dwb.1
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-01-18 22:01:48 +0100
committerportix <portix@gmx.net>2012-01-18 22:01:48 +0100
commit8e9e2f074ee10f411f54848f390475b5480c572e (patch)
treef9807f0ece319f187c76cf239910fd784fc9f47f /doc/dwb.1
parent91a28efab499da9a0c40b189527649ee4dee822d (diff)
downloaddwb-8e9e2f074ee10f411f54848f390475b5480c572e.zip
Set environment variables for userscripts
Diffstat (limited to 'doc/dwb.1')
-rw-r--r--doc/dwb.112
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/dwb.1 b/doc/dwb.1
index cb01ba05..18cff85c 100644
--- a/doc/dwb.1
+++ b/doc/dwb.1
@@ -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.