You are not logged in.
Pages: 1
I have a key binding to call a utility to minimize/maximize/etc windows by clicking on them. Sometimes I accidentall click on the desktop, and it minimizes it. After that, the desktop is just a hall-of-mirrors effect when I drag windows around it.
Is there a way to unminimize it? Or should I report a bug? Desktop shouldn't be minimize-able...
I've already tried Settings Manager -> Desktop -> Icons tab -> Icon type: Minimized applications + Show icons on the primary display, but the icons don't show. Presumably they are drawn on the desktop, which is minimized, thus they won't draw....
Offline
things I've tried, which do not work:
wmctrl -r "$(wmctrl -l | grep 'Desktop$' | cut -f1 -d' ')" -b remove,minimize
xdotool windowraise "$(wmctrl -l | grep 'Desktop$' | cut -f1 -d' ')"
wmctrl -ir "$(wmctrl -l | grep 'Desktop$' | cut -f1 -d' ')" -b toggle,maximized_vert,maximized_horz
Offline
Why not just check if the current window is the desktop and if so, exit out of the script? Something like:
~/bin/sh
# exit if active window is desktop
[[ "$(xdotool getactivewindow getwindowname)" == "Desktop" ]] && exit 1
...your other code
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Why not just check if the current window is the desktop and if so, exit out of the script?
I like that idea. Wondering if every desktop manager calles the desktop "desktop" though.
But that should be a viable workaround.
Offline
Wondering if every desktop manager calles the desktop "desktop" though.
Checking _NET_WM_WINDOW_TYPE could be another option to detect if a window is a Desktop:
xprop -id $(xdotool getactivewindow) | grep _NET_WM_WINDOW_TYPE_DESKTOP
https://specifications.freedesktop.org/ … 01s05.html
For example, run this in terminal and immediately (during 1 sec) click desktop
sleep 1; xprop -id $(xdotool getactivewindow) | grep _NET_WM_WINDOW_TYPE_DESKTOP && notify-send "Desktop!" "Quit" || notify-send "Not Desktop!" "Go crazy"
Offline
Pages: 1
[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 533.2 KiB (Peak: 534.05 KiB) ]