You are not logged in.
Pages: 1
Hi,
Using
wmctrl -r winodw_name -b toggle,hidden
hides/unhides a window.
Is it possible to check from the command line if a window is hidden?.
Thanks
Last edited by jt1122 (2021-08-25 13:32:18)
Offline
"xprop -id <window_id> | grep window\ state | awk '{print $3}'" would return "Iconic".
So something like:
xprop -id "$(wmctrl -lv | grep <window_name> | awk '{print $1}')" | grep window\ state | awk '{print $3}'
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
Thanks.
I actually checked xprop but I used the -name option to identify a window.
Apparently the latter returns a much smaller set of properties which don''t include NET_WM_STATE.
This seems to a quirk, nothing about this mentioned in the man page.
Offline
Pages: 1
[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 522.54 KiB (Peak: 529.57 KiB) ]