loader image

Show Desktop Shortcut|| Missing || Fix [Linux]

What makes us different from other similar websites? Forums Tech Show Desktop Shortcut|| Missing || Fix [Linux]

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #8263
    thumbtak
    Moderator

    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

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
TAKs Shack