12

How can I press the start key with xdotool?

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

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
user123456
  • 4,758
  • 11
  • 52
  • 78

1 Answers1

15

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 
user123456
  • 4,758
  • 11
  • 52
  • 78