Skip navigation.
Home

Reply to comment

Adding a "show desktop" button

OroboROX lets you define a keyboard short-cut for this.

For other window managers, or if you want a clickable button, Andras Mohari suggests this script:

#!/bin/sh
if wmctrl -m | grep -q '"showing the desktop" mode: ON'; then
	exec wmctrl -k off
else
	exec wmctrl -k on
fi

This requires the wmctrl program and was tested using xfwm4 (should work with any other EWMH-compatible window manager that implements the 'show desktop' feature, at least in theory).

Save the script and set its permissions to make it executable (File -> Permissions). You can now drag it to your panel and click on it to show the desktop. You can also bind a keyboard short-cut to it using the panel's Edit Item menu item.

Reply

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <img> <pre> <b> <i> <blockquote>
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>.

More information about formatting options