0

In XFCE's windows settings, there is a command called Show Desktop. It minimizes all windows and well, shows the desktop. A more detailed description can be found here, for example.

Is there a command available that will show all windows again, i.e. a command that essentially serves as the counter-part by way of a toggle?

8
  • linuxquestions.org/questions/linux-software-2/… Commented Apr 14, 2022 at 12:08
  • @ArtemS.Tashkinov What exactly is the solution here? :) Could you post it as a full answer, so I can mark it as solved? Commented Apr 14, 2022 at 16:14
  • It's a program which needs to be compiled. Sorry, I won't get credit for someone else's work. Commented Apr 14, 2022 at 16:35
  • @ArtemS.Tashkinov I respect that. That is arguably highly honorable of you. However in context of posting on this site, the underlying understanding is a bit nonsensical in my humble opinion. The site serves to share knowledge via replies with quality and threads by way of questions that get answers... and although I haven't read any community guidelines for comments on here in the last 2-3 years or so, I would think that a link collection in comments isn't the goal. You would not take credit if you included a clear phrase about the origin. Commented Apr 14, 2022 at 17:09
  • 1
    Did you try post #9 in Artem's link? Commented Apr 15, 2022 at 10:06

2 Answers 2

0

Given the existing ctrl+alt+d keyboard shortcut to Show Desktop, you can use xdotool to toggle show/hide of the desktop. For example, here's a test script that shows the desktop, waits five seconds, and then shows the windows again:

#!/bin/bash xdotool key ctrl+alt+d sleep 5 xdotool key ctrl+alt+d 

But it should be noted that if any windows are shown on the desktop, the Show Desktop operation executed by the ctrl+alt+d shortcut will minimize those windows. So, if xdotool key ctrl+alt+d is run from a terminal to minimize a bunch of windows and show the desktop, and the terminal is then restored to run the command again, the other windows won't be restored; the terminal will just be minimized.

0

The default keyboard shortcut actually includes the function I was originally looking for. I just never happened to use it, i.e. to push CTRL+ALT+D when all the windows are minimized.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.