Remove Show desktop button next to clock on Windows 10

It is possible to remove the show-desktop slice using the free app 7+ Taskbar Tweaker

To install with Chocolatey: choco install 7-taskbar-tweaker

Use the tweak called Hide the “show desktop” button:

enter image description here


Inspired by the answer by ChrisB, here is an AutoHotkey script that hides the button:

Control, Hide, , TrayShowDesktopButtonWClass1, ahk_class Shell_TrayWnd

(To use: Install AutoHotkey, save this to a .ahk file and doubleclick it. You can also add a shortcut to the startup folder in the start menu to have it run automatically on login.)