Xdotool – How to Press the Windows Key with Xdotool

xdotool

How can I press the start key with xdotool?

By start key, I mean the key with the Windows icon.

Best Answer

These keys are the "Super" modifiers.

You can emit an event for the left-hand one with

xdotool key Super_L

(use Super_R for the right-hand one)

To maximize the current terminal on Ubuntu with Unity, run

xdotool key "Ctrl+Super_L+Up" > /dev/null 
Related Question