- This topic has 0 replies, 1 voice, and was last updated 2 weeks, 3 days ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.

Uniting People
What makes us different from other similar websites? › Forums › Tech › Show Desktop Shortcut|| Missing || Fix [Linux]
Tagged: Linux, Shortcut Missing, Show Desktop
Refresh Update List:
$ sudo apt update
Install wmctrl utility:
$ sudo apt install wmctrl
Make Folder:
$ mkdir ~/scripts
Make Blank SheBang Script:
$ mousepad ~/scripts/show-desktop.sh
Place Script in SheBang File:
#!/bin/bash
status="$(wmctrl -m | grep "showing the desktop" | sed -r 's/(.*)(ON|OFF)/\2/g')"
if [ $status == "ON" ]; then
wmctrl -k off
else
wmctrl -k on
fi
Make Executable:
$ chmod +x ~/scripts/show-desktop.sh
Go to:
Applications → Settings → Keyboard → Application Shortcut → + Add
Command:
bash ~/scripts/show-desktop.sh
Shortcut:
Super + D