In a particular script, I'd like to maximize the Konsole window, and DCOP seems like the way to do this, but I can't figure out which component would provide the capability?
Leslie -- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
Hello, The Xdotool utility seems to be what you are looking for. Otherwise the TWin interface might contain something relevant.
-- Philippe MAVRIDIS
-------- Αρχικό Μήνυμα -------- Την 5/3/25 10:22 μ.μ., J Leslie Turriff via tde-users ο/η users@trinitydesktop.org έγραψε:
In a particular script, I'd like to maximize the Konsole window, and DCOP seems like the way to do this, but I can't figure out which component would provide the capability?
Leslie
Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
On 2025-03-05 14:27:38 blu.256 via tde-users wrote:
Hello, The Xdotool utility seems to be what you are looking for. Otherwise the TWin interface might contain something relevant.
-- Philippe MAVRIDIS
In fact, using KDCOP I found in Konsole-* => konsole-mainwindow#1, void maximize(), but it doesn't seem to do anything. Entering the equivalent command in Konsole,
$ dcop --user leslie --session .DCOPserver_pinto__0 konsole-16415 konsole-mainwindow#1 maximize
completes successfully, but the window does not become maximized.
Leslie
In a particular script, I'd like to maximize the Konsole window, and DCOP seems like the way to do this, but I can't figure out which component would provide the capability?
Leslie
Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydes ktop.org
tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskt op.org
Leslie -- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
Anno domini 2025 Wed, 5 Mar 14:22:32 -0600 J Leslie Turriff via tde-users scripsit:
In a particular script, I'd like to maximize the Konsole window, and DCOP seems like the way to do this, but I can't figure out which component would provide the capability?
Maximize the first konsole (when it's already running an not maximized or maximized-vertically):
$ dcop $(dcop|grep konsole|head -n 1) konsole-mainwindow#1 maximize
You'll need some extra work if more than one konsole is running :)
Nik
Leslie
Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
I forgot: wmctrl or xdotool: https://askubuntu.com/questions/384736/how-do-i-maximize-an-already-open-gno...
Anno domini 2025 Wed, 5 Mar 22:42:10 +0100 Dr. Nikolaus Klepp via tde-users scripsit:
Anno domini 2025 Wed, 5 Mar 14:22:32 -0600 J Leslie Turriff via tde-users scripsit:
In a particular script, I'd like to maximize the Konsole window, and DCOP seems like the way to do this, but I can't figure out which component would provide the capability?
Maximize the first konsole (when it's already running an not maximized or maximized-vertically):
$ dcop $(dcop|grep konsole|head -n 1) konsole-mainwindow#1 maximize
You'll need some extra work if more than one konsole is running :)
Nik
Leslie
Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ... ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On 2025-03-05 15:49:49 Dr. Nikolaus Klepp via tde-users wrote:
I forgot: wmctrl or xdotool: https://askubuntu.com/questions/384736/how-do-i-maximize-an-already-open-gn ome-terminal-window-from-command-line#384746
So far I have tried DCOP, xdotool and now wmctrl. All of them complete with return code 0, but none of them maximize the window size; so it's not just that DCOP is broken, something in X is not working right.
Is it possible that something in XDG is involved? (I really don't know all the things that XDG do.)
Leslie
Anno domini 2025 Wed, 5 Mar 22:42:10 +0100
Dr. Nikolaus Klepp via tde-users scripsit:
Anno domini 2025 Wed, 5 Mar 14:22:32 -0600
J Leslie Turriff via tde-users scripsit:
In a particular script, I'd like to maximize the Konsole window, and DCOP seems like the way to do this, but I can't figure out which component would provide the capability?
Maximize the first konsole (when it's already running an not maximized or maximized-vertically):
$ dcop $(dcop|grep konsole|head -n 1) konsole-mainwindow#1 maximize
You'll need some extra work if more than one konsole is running :)
Nik
Leslie
Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinityd esktop.org
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ... ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydes ktop.org
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ... ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskt op.org
Leslie -- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
Anno domini 2025 Wed, 5 Mar 16:54:27 -0600 J Leslie Turriff via tde-users scripsit:
On 2025-03-05 15:49:49 Dr. Nikolaus Klepp via tde-users wrote:
I forgot: wmctrl or xdotool: https://askubuntu.com/questions/384736/how-do-i-maximize-an-already-open-gn ome-terminal-window-from-command-line#384746
So far I have tried DCOP, xdotool and now wmctrl. All of them complete with return code 0, but none of them maximize the window size; so it's not just that DCOP is broken, something in X is not working right.
Can you post a screenshot of the window before and after the maximisation attempt?
Is it possible that something in XDG is involved? (I really don't know all the things that XDG do.)
Most unlikely. By chance, do you run wayland with X11 emulation?
Nik
Leslie
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On Wednesday 05 March 2025 22:32:13 Dr. Nikolaus Klepp via tde-users wrote:
Anno domini 2025 Wed, 5 Mar 16:54:27 -0600
J Leslie Turriff via tde-users scripsit:
On 2025-03-05 15:49:49 Dr. Nikolaus Klepp via tde-users wrote:
I forgot: wmctrl or xdotool: https://askubuntu.com/questions/384736/how-do-i-maximize-an-already-ope n-gn ome-terminal-window-from-command-line#384746
So far I have tried DCOP, xdotool and now wmctrl. All of them complete with return code 0, but none of them maximize the window size; so it's not just that DCOP is broken, something in X is not working right.
Can you post a screenshot of the window before and after the maximisation attempt?
Is it possible that something in XDG is involved? (I really don't know all the things that XDG do.)
Most unlikely. By chance, do you run wayland with X11 emulation?
Nik
Unless one is committed to the notion of doing this the hard way (because geeks like a challenge? or because it's a learning experience?), there is a much easier, gooey way of doing this. It's one of those great features of TDE, almost like we might expect from Windoze or the rotten Apple.
right-click > Advanced > Special Application Settings > Edit Window Specific Settings - Twin > Geometry
click "Maximized horizontally" then choose "Force" and click X (in box at right)
click "Maximized vertically" then choose "Force" and click X (in box at right)
You can set these choices for different degrees, such as "Apply intially", "Remember", "Force temporarily", etc.
Also you can specify that the application opens only on Desktop 11, or whatever you wish; for many programs or types of activities, I like to keep them all in their special dedicated window (e.g., Office documents and similar on Desktop 1), email applications on Desktop 3, etc. In other cases I want to use that application freely wherever I wish; but we all work differently, and this is another of those system-wide features of TDE, that we can customize our machines according to our own needs or tastes.
You might also want (for some applications) to look in Workarounds, where for Konsole I click the X (box at left) for "Focus stealing prevention" and choose "Force" then "Extreme"; but for other applications I tend to choose less severe rules (e.g., "High" or "Normal"), or I don't set this feature at all.
As a rule, I don't mess with other possible choices in the various menus. You may find that your choices affect the windows of other applications. But for this, you want to look under the menu for Window at the left, where in this case you will see that it specifices Konsole.
Forcing settings for Konsole will not affect other terminals or shells; thus, for example, I have a Konsole tab that I dedicate for using alsamixer; but I also have two other shells that I open in tandem with my media players (xterm opens together with audacious, but uxterm opens with qmmp), which I keep separate, as I use audacious only for playing sound files from my own machine, whereas I use qmmp for internet radio.
Now, I realize that using a gui feature may not feel difficult enough for you, if you like to make things hard on yourself; and it may be that there are good reasons for doing it the hard way. But the easy, gui way works for me.
I hope this is helpful to some TDE users out there.
Bill
On Thursday 06 March 2025 09:11:40 William Morder via tde-users wrote:
right-click > Advanced > Special Application Settings > Edit Window Specific Settings - Twin > Geometry click "Maximized horizontally" then choose "Force" and click X (in box at right) click "Maximized vertically" then choose "Force" and click X (in box at right) You can set these choices for different degrees, such as "Apply intially", "Remember", "Force temporarily", etc.
Hello,
right-click > Advanced > Special Application Settings >
From where this menu ? Where to do the right-click ? I cannot see it. Cheers. André
Anno domini 2025 Thu, 6 Mar 15:30:01 +0100 ajh-valmer via tde-users scripsit:
On Thursday 06 March 2025 09:11:40 William Morder via tde-users wrote:
right-click > Advanced > Special Application Settings > Edit Window Specific Settings - Twin > Geometry click "Maximized horizontally" then choose "Force" and click X (in box at right) click "Maximized vertically" then choose "Force" and click X (in box at right) You can set these choices for different degrees, such as "Apply intially", "Remember", "Force temporarily", etc.
Hello,
right-click > Advanced > Special Application Settings >
From where this menu ? Where to do the right-click ? I cannot see it.
On the window title, in german there's a menu entry "window behaviour" and then "advanced" ...
Nik
Cheers. André ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
On Thursday 06 March 2025 06:51:13 Dr. Nikolaus Klepp via tde-users wrote:
Anno domini 2025 Thu, 6 Mar 15:30:01 +0100
ajh-valmer via tde-users scripsit:
On Thursday 06 March 2025 09:11:40 William Morder via tde-users wrote:
right-click > Advanced > Special Application Settings > Edit Window Specific Settings - Twin > Geometry click "Maximized horizontally" then choose "Force" and click X (in box at right) click "Maximized vertically" then choose "Force" and click X (in box at right) You can set these choices for different degrees, such as "Apply intially", "Remember", "Force temporarily", etc.
Hello,
right-click > Advanced > Special Application Settings >
From where this menu ? Where to do the right-click ? I cannot see it.
On the window title, in german there's a menu entry "window behaviour" and then "advanced" ...
Nik
Cheers. Andr�
Yes, sorry! Nik got it, more or less, in German. After I had already sent the email, I thought about that detail.
It's the very top bar of the Konsole window. Mine says "username@hostname -- Shell - Konsole"
For username and hostname, you will see your own.
Bill
On 2025-03-06 02:11:40 William Morder via tde-users wrote:
On Wednesday 05 March 2025 22:32:13 Dr. Nikolaus Klepp via tde-users wrote:
Anno domini 2025 Wed, 5 Mar 16:54:27 -0600
J Leslie Turriff via tde-users scripsit:
On 2025-03-05 15:49:49 Dr. Nikolaus Klepp via tde-users wrote:
I forgot: wmctrl or xdotool: https://askubuntu.com/questions/384736/how-do-i-maximize-an-already-o pe n-gn ome-terminal-window-from-command-line#384746
So far I have tried DCOP, xdotool and now wmctrl. All of them complete with return code 0, but none of them maximize the window size; so it's not just that DCOP is broken, something in X is not working right.
Can you post a screenshot of the window before and after the maximisation attempt?
Is it possible that something in XDG is involved? (I really don't know all the things that XDG do.)
Most unlikely. By chance, do you run wayland with X11 emulation?
Nik
Unless one is committed to the notion of doing this the hard way (because geeks like a challenge? or because it's a learning experience?), there is a much easier, gooey way of doing this. It's one of those great features of TDE, almost like we might expect from Windoze or the rotten Apple.
:
Bill
So far neither of the GUI emulation tools (wmctrl, xdotool) has worked. I have gotten tired of running the program, remembering that the output is an unreadable mish-mash in the normal-sized window, manually clicking the top left widget on the Konsole window and checking Maximize, then running the program again; which is why I want the script program I'm running to do it automagically; but on this machine, at least, the DCOP command does not work, even though 'Allow programs to resize terminal window' is enabled.
Leslie -- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
On 2025-03-06 00:32:13 Dr. Nikolaus Klepp via tde-users wrote:
Anno domini 2025 Wed, 5 Mar 16:54:27 -0600
J Leslie Turriff via tde-users scripsit:
On 2025-03-05 15:49:49 Dr. Nikolaus Klepp via tde-users wrote:
I forgot: wmctrl or xdotool: https://askubuntu.com/questions/384736/how-do-i-maximize-an-already-ope n-gn ome-terminal-window-from-command-line#384746
So far I have tried DCOP, xdotool and now wmctrl. All of them complete with return code 0, but none of them maximize the window size; so it's not just that DCOP is broken, something in X is not working right.
Can you post a screenshot of the window before and after the maximisation attempt?
See attached.
Is it possible that something in XDG is involved? (I really don't know all the things that XDG do.)
Most unlikely. By chance, do you run wayland with X11 emulation?
Unlikely, I agree. I do not run wayland.
Interestingly, on another machine, | $ dcop $(dcop|grep konsole|head -n 1) konsole-mainwindow#1 maximize works fine (after Konsole Settings => Configure Konsole... => Allow programs to resize terminal window is enabled), but not on this machine.
Nik
Leslie -- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
Anno domini 2025 Thu, 6 Mar 19:07:33 -0600 J Leslie Turriff via tde-users scripsit:
On 2025-03-06 00:32:13 Dr. Nikolaus Klepp via tde-users wrote:
Anno domini 2025 Wed, 5 Mar 16:54:27 -0600
J Leslie Turriff via tde-users scripsit:
On 2025-03-05 15:49:49 Dr. Nikolaus Klepp via tde-users wrote:
I forgot: wmctrl or xdotool: https://askubuntu.com/questions/384736/how-do-i-maximize-an-already-ope n-gn ome-terminal-window-from-command-line#384746
So far I have tried DCOP, xdotool and now wmctrl. All of them complete with return code 0, but none of them maximize the window size; so it's not just that DCOP is broken, something in X is not working right.
Can you post a screenshot of the window before and after the maximisation attempt?
See attached.
Yes, I see. The konsole window is vertically maximized, so telling it to maximaize does not do anything.
Try this with one open konsole window:
$ wmctrl -r konsole -b add,maximized_vert,maximized_horz
Nik
Is it possible that something in XDG is involved? (I really don't know all the things that XDG do.)
Most unlikely. By chance, do you run wayland with X11 emulation?
Unlikely, I agree. I do not run wayland.
Interestingly, on another machine, | $ dcop $(dcop|grep konsole|head -n 1) konsole-mainwindow#1 maximize works fine (after Konsole Settings => Configure Konsole... => Allow programs to resize terminal window is enabled), but not on this machine.
Nik
Leslie
Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On 2025-03-07 01:16:09 Dr. Nikolaus Klepp via tde-users wrote:
Anno domini 2025 Thu, 6 Mar 19:07:33 -0600
J Leslie Turriff via tde-users scripsit:
On 2025-03-06 00:32:13 Dr. Nikolaus Klepp via tde-users wrote:
Anno domini 2025 Wed, 5 Mar 16:54:27 -0600
J Leslie Turriff via tde-users scripsit:
On 2025-03-05 15:49:49 Dr. Nikolaus Klepp via tde-users wrote:
I forgot: wmctrl or xdotool: https://askubuntu.com/questions/384736/how-do-i-maximize-an-already -ope n-gn ome-terminal-window-from-command-line#384746
So far I have tried DCOP, xdotool and now wmctrl. All of them complete with return code 0, but none of them maximize the window size; so it's not just that DCOP is broken, something in X is not working right.
Can you post a screenshot of the window before and after the maximisation attempt?
See attached.
Yes, I see. The konsole window is vertically maximized, so telling it to maximaize does not do anything.
Try this with one open konsole window:
$ wmctrl -r konsole -b add,maximized_vert,maximized_horz
Nik
Yes, that works. I wonder why the DCOP command doesn't?
Thanks for your workaround.
Leslie
Is it possible that something in XDG is involved? (I really don't know all the things that XDG do.)
Most unlikely. By chance, do you run wayland with X11 emulation?
Unlikely, I agree. I do not run wayland.
Interestingly, on another machine,
| $ dcop $(dcop|grep konsole|head -n 1) konsole-mainwindow#1 maximize
works fine (after Konsole Settings => Configure Konsole... => Allow programs to resize terminal window is enabled), but not on this machine.
Nik
Leslie
-- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0
On 2025-03-07 01:16:09 Dr. Nikolaus Klepp via tde-users wrote:
Yes, I see. The konsole window is vertically maximized, so telling it to maximaize does not do anything.
Try this with one open konsole window:
$ wmctrl -r konsole -b add,maximized_vert,maximized_horz
Nik
Leslie -- Platform: Linux Distribution: openSUSE Leap 15.6 - x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.1.3 tde-config: 1.0