You are not logged in.

#1 2021-06-18 11:33:44

AmitGold
Member
Registered: 2019-07-08
Posts: 39

Terminal apps in Qtile use only a small portion of the terminal window

Hi,
I've been finalizing my Qtile config, and there's a problem I couldn't solve.
When I launch a terminal program like htop or ranger from rofi or a keybinding (Not from a terminal shell),
it doesn't use the whole window, and only about a quarter of it: https://i.imgur.com/GRuXXDe.png https://i.imgur.com/7biFRbb.png

I use kitty, and tried using different terminals but it kept happening.
Also, I tried other window managers and Qtile's default config, but it didn't solve the issue.

Whan can I do to fix this?

EDIT: Weird thing, I updated neovim to the nightly version, and now it works and fills the whole window. Only neovim though, other programs still don't.



Mod Edit - Replaced oversized images with links.
CoC - Pasting pictures and code

Last edited by Slithery (2021-06-21 13:49:12)

Offline

#2 2021-06-21 09:02:22

SzzS
Member
From: Hungary
Registered: 2020-08-14
Posts: 8

Re: Terminal apps in Qtile use only a small portion of the terminal window

I also encountered this problem but could not find a solution.
The problem is that when you start a terminal application the window is not ready yet.
Specifically, after the terminal application queries the size of the window, the size of the window still changes depending on the current layout.
I only managed to bypass it by putting a `sleep 1` delay in front of the command so that the application starts in the final window size.
for example:

#!/bin/bash
sleep 1
htop

[I hope I was understandable, unfortunately I don't speak English.]

Last edited by SzzS (2021-06-21 09:02:40)


SzzS
Sorry, I don't speak english well. roll

Offline

#3 2021-06-21 11:21:38

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: Terminal apps in Qtile use only a small portion of the terminal window

When you quit the application and type stty -a, how many rows and columns are reported?

Offline

#4 2021-06-21 13:04:21

AmitGold
Member
Registered: 2019-07-08
Posts: 39

Re: Terminal apps in Qtile use only a small portion of the terminal window

SzzS wrote:

I also encountered this problem but could not find a solution.
The problem is that when you start a terminal application the window is not ready yet.
Specifically, after the terminal application queries the size of the window, the size of the window still changes depending on the current layout.
I only managed to bypass it by putting a `sleep 1` delay in front of the command so that the application starts in the final window size.
for example:

#!/bin/bash
sleep 1
htop

[I hope I was understandable, unfortunately I don't speak English.]

Thanks, your solution works when I use a keybinding, but it doesn't solve the problem when launching from rofi.
Also, I decreased the sleep time to 0.00001

Offline

#5 2021-06-21 13:08:43

AmitGold
Member
Registered: 2019-07-08
Posts: 39

Re: Terminal apps in Qtile use only a small portion of the terminal window

tucuxi wrote:

When you quit the application and type stty -a, how many rows and columns are reported?

Because this happens only when I launch terminal programs right away with kitty (no shell running), killing the program kills the window.

Offline

#6 2021-06-21 16:34:44

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: Terminal apps in Qtile use only a small portion of the terminal window

Alright, invoke stty from a different window with the -F option.

Offline

#7 2021-06-22 10:08:03

AmitGold
Member
Registered: 2019-07-08
Posts: 39

Re: Terminal apps in Qtile use only a small portion of the terminal window

tucuxi wrote:

Alright, invoke stty from a different window with the -F option.

Thanks, but I didn't understand how to use the -F option...
How to link the other terminal window as a device?

Offline

#8 2021-10-24 10:23:42

Rohit42
Member
Registered: 2021-10-24
Posts: 1

Re: Terminal apps in Qtile use only a small portion of the terminal window

I also had the same issue and I first found this topic here, tried the solution (or trick) but it didn't work for me so I continued my search for the solution and found it on official Qtile github. Here is the link -
https://github.com/qtile/qtile/commit/2 … 2ee5074846

File path:
usr/lib/python3.9/site-packages/libqtile/sh.py

I hope it will help you smile

Last edited by Rohit42 (2021-10-27 09:46:58)

Offline

#9 2021-10-24 12:20:40

AmitGold
Member
Registered: 2019-07-08
Posts: 39

Re: Terminal apps in Qtile use only a small portion of the terminal window

Thank you very much!

Offline

Board footer

Powered by FluxBB