Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-01-11 17:26:59

caibbor
Member
Registered: 2012-02-08
Posts: 14

unminimize the desktop (literally)

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

#2 2024-01-11 17:34:20

caibbor
Member
Registered: 2012-02-08
Posts: 14

Re: unminimize the desktop (literally)

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

#3 2024-01-11 17:52:14

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,488

Re: unminimize the desktop (literally)

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

#4 2024-01-12 15:38:20

caibbor
Member
Registered: 2012-02-08
Posts: 14

Re: unminimize the desktop (literally)

ToZ wrote:

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

#5 2024-01-13 10:49:07

chang-zhao
Member
Registered: 2023-11-20
Posts: 42

Re: unminimize the desktop (literally)

caibbor wrote:

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 533.2 KiB (Peak: 534.05 KiB) ]