8

How can I get the Super-D key binding in Xfce desktop? The Start+d is not working and invoking the Whisker menu but not showing the desktop. I tried changing, in the shortcuts, from Ctrl+alt+D to Start+D but that still doesn't work.

This works well in Cinnamon when the Super key is pressed, the menu appears, and for Start+d it just works like in Windows.

What could be the reason, if it works in Cinnamon, it couldn't also work in Xfce?

  • Can you please explain how you tried changing the shortcuts? – Panagiotis Tabakis Aug 15 '16 at 17:40
5

You can change the shortcuts that handle the window manager by opening Window Manager from Settings > Window Manager, Keyboard tab.

  • Scroll down until you see Show desktop, (default Ctrl+Alt+D)
  • Click to select the row, and press Edit Window Manager
  • Press the desired keyboard keys combination on Window Manager Action Shortcut popup window (Super+D in your case).
    Window Manager Action Shortcut
  • Click Close.

This way Show desktop will be triggered by Super+D.

  • This doesn't work if you have the Super key bound to open the whisker menu, it seems – Clément Mar 19 at 17:38
1

I've had the same problem in Linux Mint 18 Xfce.

I've solved it with the solution in the answers of this link: http://www.linuxquestions.org/questions/linux-software-2/how-to-show-desktop-in-xfce4-601161-print/

A script using the command «wmctrl -k on» and «wmctrl -k off»

#!/bin/sh
if xprop -root  _NET_SHOWING_DESKTOP|egrep '= 1' ; then
      wmctrl -k off ;
    else
      wmctrl -k on ;
    fi

You can create a shortcut to the script in the keyboard settings.

  • 1
    Didn't it conflict with Whisker menu? This happens if you have <Super> to trigger the whisker menu. – user12458 Aug 20 '16 at 15:10
  • That's not a conflict for me if I have enough time <super>pulsed. So I pulse first <Super> and then <D> and I have no problem. In fact, I have more shortcuts with <super> + <letter>. Also, if you want, you can delete de shortcut to Whisker menu in the keyboard settings. – Pseudoabulafia Aug 21 '16 at 8:17
  • Can that time be adjusted? – user12458 Aug 21 '16 at 9:05
  • That the only solution worked from me xubuntu I add that script to new file sudo nano /usr/local/sbin/showdesktop and sudo chmod +x showdesktop Assatinate the shortcut from xfce setting / keyboard application shortcut menu – Salem F Jul 23 '18 at 18:05
0

To enable do this:

  • Go to the folder ~/.config/xfce4/xfconf/xfce-perchannel-xml/ (notice, this is a hidden folder, so, if you use Thunar, press Ctrl+H to see hidden folders and files)

  • Open the file xfce4-keyboard-shortcuts.xml with a text editor (if you double-click, it will open in a browser)

  • Add the following line:

    <property name="&lt;Super&gt;d" type="string" value="show_desktop_key"/>
    

In my case I have it in the second subsection, <property name="xfwm4" type="empty">, but it might work in the first one, <property name="commands" type="empty">.

  • Not working for me! – user12458 Aug 4 '16 at 15:30
  • Then try the above in the same file but in any of these folders (requires sudo power): /etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/ and /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/ – user308164 Aug 5 '16 at 12:16
  • Not working still! Do I have to place it in defaults property? or just directly under xfmw4? I also tried logging out and testing! but still didn't work – user12458 Aug 5 '16 at 16:26
  • Strange... have you tried modifying through the Settings Menu? Open the Settings (xfce4-settings-manager in the terminal), select Window Manager, then select Keyboard tab, and scroll down until you see "Show Desktop". Change that one using your key option. – user308164 Aug 5 '16 at 16:41
  • Yes, but that didn't work. – user12458 Aug 5 '16 at 16:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.