Wolfgang02
Sun Dec 27, 2015 8:48:41 pm
One of my favourite shortcuts in Windows was using the Super key + D to show the desktop. Well, I have managed to achieve this with a little work.
1. Open file manager.
2. Create a new text document - I do this by right clicking in the Folder I would like the document to be. From the menu select text document and change the file name to show_desktop.sh
3. Open the document and insert this code:
4. Copy the file to the usr/bin folder:
5. Open Keyboard by going to: System Settings > Keyboard (under Hardware)
6. Select the Shortcuts tab
7. On the left hand menu select custom Shortcuts
8. Click the + button at the bottom to add a new Shortcut
9. A new dialogue box opens and in the name field give it a name (I called mine Show_Desktop) and in the command field type the name of the command (show_desktop.sh)
10. Click the new Shortcut and press the Super key and the letter D
That is it, enjoy.
1. Open file manager.
2. Create a new text document - I do this by right clicking in the Folder I would like the document to be. From the menu select text document and change the file name to show_desktop.sh
3. Open the document and insert this code:
- Code:
#!/bin/sh
if wmctrl -m | grep "mode: ON"; then
exec wmctrl -k off
else
exec wmctrl -k on
fi
4. Copy the file to the usr/bin folder:
- Code:
sudo cp /path/to/show_desktop.sh /usr/bin
5. Open Keyboard by going to: System Settings > Keyboard (under Hardware)
6. Select the Shortcuts tab
7. On the left hand menu select custom Shortcuts
8. Click the + button at the bottom to add a new Shortcut
9. A new dialogue box opens and in the name field give it a name (I called mine Show_Desktop) and in the command field type the name of the command (show_desktop.sh)
10. Click the new Shortcut and press the Super key and the letter D
That is it, enjoy.