How can you check if a window is minimized through a terminal in Linux?
Find IsViewable compared to IsUnMapped ; they are taken from the map_state field returned by XGetWindowAttributes .
IsViewable
IsUnMapped
map_state
XGetWindowAttributes
(At least this works with traditional window managers; I don't know if Compiz can screw things up to allow miniature minimized windows.)
if xwininfo -all -id $windowIdGoHere |grep "Hidden"; then echo "is hidden" fi
[ $(xwininfo -id 0x60001d -all | awk '/Maximized/{print}' | wc -l) -eq 2 ] && echo Maximized
where 0x60001d is the window identifier. See xwininfo -h for other ways to identify a window for testing.
0x60001d
xwininfo -h
Source: https://habr.com/ru/post/1272427/More articles:Socket.io flash drive event messages in different files - pythonsave EXIF ββ(GPS / DateTimeOriginal) when loading HEIF image in mobile safari - safariGotchas ruby ββrefinements - ruby ββ| fooobar.comIs it safe to serialize POD data by directly converting to a char array? - c ++How to detect an active application using C / java? - javaChart JS - Use time for xAxes - javascriptHow to remove Safari ios cache - safariexport materialmodule not found in angular / material - angularUnable to run sample Angular material in plunker - angularChecking Laravel csrf manually in the controller - node.jsAll Articles