I want to be able to lower all windows and show the desktop from the command line, not
Ctrl+Alt+D.
Asked
Active
Viewed 3.1k times
28
3 Answers
31
There is a useful command line application called xdotool which amongst other stuff, allows you to send keystrokes.
Thus - to mimic Control+Alt+D (or Super+D, or whatever the combination is you need), you can use one of the following commands:
xdotool key ctrl+alt+d
xdotool key ctrl+super+d
xdotool key super+d
To install:
sudo apt-get install xdotool
Radu Rădeanu
- 174,089
- 51
- 332
- 407
fossfreedom
- 174,526
28
I'm not sure fossfreedom's answer truly satisfies the requirement to "not use Ctrl+Alt+D"
Thus I recommend to show desktop the command:
wmctrl -k on
To turn it off use
wmctrl -k off
virtualxtc
- 3,324
0
After looking at your comment I looked around a bit and found nothing. then I played around a bit and found a working method that satisfies "not use Ctrl+Alt+D" using a single key bind:
wmctrl -k toggle
works wonders for windows user migrating to linux