Dear all-- I'm trying to define a function (to be triggered by a window-menu) that (1) toggles the Title style and (2) maximizes the window vertically (restoring the total height of the window would be even better). Here is my attempt.
DestroyFunc FuncToggleTitle AddToFunc FuncToggleTitle + I PipeRead \ 'if xprop -id $[w.id]|grep WM_FRAME|grep -q 19; \ then echo "WindowStyle !Title"; \ else echo "WindowStyle Title"; fi' + I Maximize True 0 100 The 19 is because I have borderwidth 3 and title-height 16. Is there a better way to determine if the window is titled or not? My main problem however is that the "Maximize True 0 100" command does not work as I want. In particular, it feels like it uses the height before the "WindowStyle (!)Title" affects it. Furthermore, FuncToggleTitle seems to interfere with the Move command, in case I also want to move the window afterwards. If needed, I can provide more details. Your help would appreciated. Thank you. --Nikos PS Using fvwm 2.6.5