Xdotool sample
Using the Xdotool sample bundle
The Xdotool sample bundle in samples/xdotool-windowminimize shows how to use
the xdotool service to execute
xdotool commands
by minimizing the currently active window.
Attention
Only works on Linux
Prerequisites
You will need a working nodecg-io installation. If you have non yet take a
look at installation guide. You may need to
install this bundle, so take a look at the
“Try an included sample”-Guide. It
will also tell you how to log in and how to use the GUI.
- Xdotool installed
Configure the Xdotool sample bundle
-
In NodeCG, create a new xdotool service instance.
-
Enter settings port
-1tells nodecg-io to use a locally installed xdotool:{ "host": "127.0.0.1", "port": -1 }After entering it, click save.
-
Set the sample's (
xdotool-windowminimize) dependency to be the newly created service instance (of typexdotool). -
Your browser window should get minimized.