Re: Can I use DCOP to maximize a window programmatically?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

____________________________________________________
tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx
Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx



[Index of Archives]     [Trinity Devel]     [KDE]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux