如何从命令行“显示桌面”?

我希望能够降低所有窗口并从命令行显示桌面,而不是
Ctrl + Alt + D.

有一个名为xdotool的有用的命令行应用程序,除了其他function外,还允许您发送击键。

因此 – 要模仿Control + Alt + D (或Super + D ,或者需要的任何组合),您可以使用以下命令之一:

 xdotool key ctrl+alt+d xdotool key ctrl+super+d xdotool key super+d 

安装:

 sudo apt-get install xdotool 

我不确定fossfreedom的答案真的满足“不使用Ctrl + Alt + D”的要求

因此我建议显示桌面命令:

 wmctrl -k on 

关闭它使用

 wmctrl -k off