wmctrl -r "xterm" -b toggle fullscreen
(or is it called "kterm"?) whatever it is called use that.
try above, below, etc...
this isn't a total solution but might at least get you started.
EDIT: ah the link
https://www.mobileread.com/forums/sho...d.php?t=194270
Quote:
-r <WIN> -e <MVARG> Resize and move the window around the desktop.
The format of the <MVARG> argument is described below.
-r <WIN> -b <STARG> Change the state of the window. Using this option it's
possible for example to make the window maximized,
minimized or fullscreen. The format of the <STARG>
|
Quote:
<STARG> Specifies a change to the state of the window
by the means of _NET_WM_STATE request.
This option allows two properties to be changed
simultaneously, specifically to allow both
horizontal and vertical maximization to be
altered together.
The format of the argument is:
(remove|add|toggle),<PROP1>[,<PROP2>]
The EWMH specification defines the
following properties:
modal, sticky, maximized_vert, maximized_horz,
shaded, skip_taskbar, skip_pager, hidden,
fullscreen, above, below
|