Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-05-28 00:59:29

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 762

programatically query or change xfce4-terminal geometry or font size

i can set these parameters initially via command arguments (some limitations) or via GUI manipulation (more limitations).  but i would like to do this within a script.  i don't want these to be permanent or have to restart xfce4-termnal (to read a changed config file) to do this.  can this be done?  the script to do this will be be running as the same user and with std{in,out,err} going to that xfce4-termnal (it is running in the window to be changed).  i will be implementing this in Python3 or maybe C.

Last edited by Skaperen (2022-05-28 01:00:20)

Offline

#2 2022-07-07 09:58:48

jaywilkas
Member
Registered: 2021-06-05
Posts: 13

Re: programatically query or change xfce4-terminal geometry or font size

I think the easiest way is to use the command line utility wmctrl for this.

If you prefer to write a Python script, the EWMH (Extended Window Manager Hints) is an option. The function setMoveResizeWindow() is what you need.

Last edited by jaywilkas (2022-07-07 09:59:12)

Offline

Board footer

Powered by FluxBB