I am trying to write a function that will allow a function to be called via a keyboard shortcut and then strip the decorations out and then maximize the window. Here is code that I’m using now.
[code]Key Return A M Strip_Max_Term
- I Exec exec aterm
- I Wait aterm
- I ToggleDecor
- I Maximize
- I State 1 toggle
- I Current (State 1) WindowStyle !Borders, NoTitle
- I TestRc (NoMatch) WindowStyle !Borders, Title
Of course it works but it prompts me to select the window to take decor away and then again as to which window to maximize. Is there anyway to grab the window id of the new aterm window and then automagically pass that id to ToggleDecor and then to the Maximize command???