You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the Linux Mint forum a user complains that the operation of 'Show desktop' in Cinnamon is different from other graphical environments. According to him, all windows should be minimized except those that have been marked by the user as 'Always on top'.
He has solved it by installing the package:
apt install xdotool
And creating a launcher for the script:
#!/bin/bash
# Este script minimiza todas las ventanas "normales" que no estén marcadas como "siempre encima"
# y que no sean las notas adhesivas (sticky notes).
for win in $(wmctrl -l | awk '{print $1}'); do
# Filtra solo ventanas de tipo normal
type=$(xprop -id $win _NET_WM_WINDOW_TYPE 2>/dev/null)
if [[ "$type" == *"_NET_WM_WINDOW_TYPE_NORMAL"* ]]; then
# Obtiene la clase de la ventana para identificar sticky notes
wm_class=$(xprop -id $win WM_CLASS 2>/dev/null)
# Si la clase contiene "sticky" (sin distinguir mayúsculas/minúsculas), la omite
if echo "$wm_class" | grep -qi "sticky"; then
continue
fi
# Obtiene el estado de la ventana
state=$(xprop -id $win _NET_WM_STATE 2>/dev/null)
# Si la ventana NO está marcada como "siempre encima", la minimiza
if [[ "$state" != *"_NET_WM_STATE_ABOVE"* ]]; then
xdotool windowminimize $win
fi
fi
done
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
On the Linux Mint forum a user complains that the operation of 'Show desktop' in Cinnamon is different from other graphical environments. According to him, all windows should be minimized except those that have been marked by the user as 'Always on top'.
He has solved it by installing the package:
apt install xdotool
And creating a launcher for the script:
Beta Was this translation helpful? Give feedback.
All reactions