Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you check if a window is minimized via the terminal in linux

Tags:

linux

unix

window

How can you check if a window is minimized via the terminal in linux?

like image 201
htmlajax Avatar asked Oct 30 '10 03:10

htmlajax


1 Answers

xwininfo -name 'Window Title' | grep 'Map State:'

Look for IsViewable versus IsUnMapped; these come from the map_state field returned by XGetWindowAttributes.

(At least, that works with traditional window managers; I don't know if Compiz does screwy stuff to allow for thumbnailing minimized windows.)

like image 147
ephemient Avatar answered Sep 30 '22 18:09

ephemient