I'm trying to run this command:
xdotool key ctrl+super+d
It is supposed to toggle-show desktop, but it won't work. When I press the keys myself it works though.
15.04command linexdotool
I'm trying to run this command:
xdotool key ctrl+super+d
It is supposed to toggle-show desktop, but it won't work. When I press the keys myself it works though.
Best Answer
The correct command is:
To find the correct key- mentions, use
xev
: In a terminal window, run the commandxev
+ Return, then type the key you'd like to use in thexdotool
command. The output will be like:where the information you are looking for is in the section:
Alternatively, you can use the
keysym
-value:or the key code:
Additional information
As mentioned by @DKBose:
on
14.04
, the command, used by OP should work, as mentioned inman xdotool
on14.04.3
:Generally, any valid X Keysym string will work. Multiple keys are separated by '+'. Aliases exist for "alt", "ctrl", "shift", "super", and "meta" which all map to Foo_L, such as Alt_L and Control_L .
However, OP mentions the tag
15.04
, and on15.04
, the passage is missing inman xdotool
, and the aliasses do not work any more. The values, found in the output ofxev
should be used.