donald wrote: ↑10 Feb 2024, 12:31
In a browser the window title changes depending on which web page is displayed.
Interesting. With my new Firefox I don't display the title bar. My default opening page is Porteus so shouldn't be too hard to figure out.
donald wrote: ↑10 Feb 2024, 12:31
-e = window position x,y window size x,y
x,y plus x,y indicates 4 numbers.
donald wrote: ↑10 Feb 2024, 12:31
-e 0,150,70,800,600
This shows 5 numbers.
I'll experiment some more.
Added in 1 hour 16 minutes 45 seconds:
Code: Select all
The -e option expects a list of comma separated integers: "gravity,X,Y,width,height"
"Gravity" is the 5th number.
These all seem to work.
Code: Select all
guest@porteus:~$ wmctrl -r 'Porteus - Index page — Mozilla Firefox' -e 0,85,0,1860,1100
guest@porteus:~$ wmctrl -r 'Porteus' -e 0,85,0,1860,1100
guest@porteus:~$ wmctrl -r 'Firefox' -e 0,85,0,1860,1100
guest@porteus:~$ wmctrl -l
0x04400028 -1 porteus.example.net Desktop
0x03e00049 0 porteus.example.net wmctrl.sh (~)
0x04800028 0 porteus.example.net Home
0x05200006 0 porteus.example.net Terminal
0x0420003d 0 porteus.example.net Porteus - Index page — Mozilla Firefox
guest@porteus:~$
Arguments:
<WIN> This argument specifies the window. By default it's
interpreted as a string. The string is matched
against the window titles and the first matching
window is used. The matching isn't case sensitive
and the string may appear in any position
of the title.
Thank you
donald.
The "porteus.example.net" is a bit of a question since it certainly doesn't match the Porteus URL.
