You are not logged in.

#1 2021-09-15 01:53:54

johnny
Member
Registered: 2021-06-12
Posts: 7

[Solved] LXTerminal Geometry Problems when Tiling

I've customized a few keybindings for tiling windows on my screen. Most apps work great (Firefox, Thunar, Geany, etc. all tile perfectly). LXTerminal, however, always resizes smaller than specified size, thus leaving a gap between it and adjacent windows. Sometime the gap is a just a few pixels; sometimes its 10+ pixels. An example keybinding that produces this result:

    <keybind key="A-W-KP_1">
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>0</x>
        <y>-0</y>
        <width>640</width>
        <height>50%</height>
      </action>
    </keybind>

This is merely aesthetic, but it drives me CRAZY! Is LXTerminal resizing differently because it maintaining a geometry associated with monospace font rows and columns?  Any thoughts on how to resolve this problem for LXTerminal?

Last edited by johnny (2021-09-16 01:40:13)

Offline

#2 2021-09-15 07:25:30

damo
....moderator....
Registered: 2015-08-20
Posts: 6,719

Re: [Solved] LXTerminal Geometry Problems when Tiling

Some terminal emulators display this behaviour. I had this issue when developing my window-tiling script, when placing terminal windows - there is always a gap. Terminals don't take account of window borders iirc.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2021-09-15 10:14:15

twoion
一期一会
Registered: 2015-08-10
Posts: 3,355

Re: [Solved] LXTerminal Geometry Problems when Tiling

johnny wrote:

I've customized a few keybindings for tiling windows on my screen. Most apps work great (Firefox, Thunar, Geany, etc. all tile perfectly). LXTerminal, however, always resizes smaller than specified size, thus leaving a gap between it and adjacent windows. Sometime the gap is a just a few pixels; sometimes its 10+ pixels. An example keybinding that produces this result:

    <keybind key="A-W-KP_1">
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>0</x>
        <y>-0</y>
        <width>640</width>
        <height>50%</height>
      </action>
    </keybind>

This is merely aesthetic, but it drives me CRAZY! Is LXTerminal resizing differently because it maintaining a geometry associated with monospace font rows and columns?  Any thoughts on how to resolve this problem for LXTerminal?

Exactly, this is because of the line/column geometry. Some terminal implementations are worse than others.

If you're looking for a decent terminal that is truly a different implementation (most GTK terminals are based on libvte and are essentially the same, konsole has a distinct implementation, and so is xterm, rxvt-unicode, ...), I would recommend kitty: https://sw.kovidgoyal.net/kitty/

Offline

#4 2021-09-16 01:39:52

johnny
Member
Registered: 2021-06-12
Posts: 7

Re: [Solved] LXTerminal Geometry Problems when Tiling

Other than kitty, I've used all the other terminals in the past. I think I'll give kitty a try this time.  Thanks for the tip!

Offline

Board footer

Powered by FluxBB