A module that allows you to use Show Desktop icon (kind of) on i3 (polybar)
This module works when you click on the Polybar icons, means :
that moves the selected windows to scratchpad move scratchpad
using i3-msg
that shows the hidden windows (sent to scratchpad) [class=.*] scratchpad show
using also i3-msg
.
I added [class=.*]
so it shows all the windows sent to scratchpad and not one by one
[module/showdesktop]
type = custom/script
exec = echo ""
click-left = exec i3-msg move scratchpad
click-right = exec i3-msg [class=.*] scratchpad show