Or you could replace the exec line with

(kitty --class ranger -e ranger $1 & ) > /dev/null 2>&1

to give it a class for group matching too


On Tue, 19 Jan 2021 at 22:13, Justine Smithies <[email protected]>
wrote:

>
>
> Okay hope this helps someone else but I have it working by placing the
> following in my .bashrc
> It might be a tad hacky but it works better than having a separate script.
>
> alias ranger="ranger-fix"
>
> ranger-fix() {
>        COLUMNS=
>        LINES=
>        exec ranger "$@"
> }
>
>
> On Tue, 19 Jan 2021 at 22:06, Justine Smithies <[email protected]>
> wrote:
>
>> Anyone had any joy setting these globally ?
>> I'd rather not run a script to run ranger although I suppose I could
>> create an alias in my .bashrc that runs a function with the same lines as
>> suggested by Drew.
>>
>> On Tue, 19 Jan 2021, 21:19 Justine Smithies, <[email protected]>
>> wrote:
>>
>>> OMG ! Setting LINES= and COLUMNS= in kitty and running ranger actually
>>> works even opening other terminal windows. Now to implement this so no
>>> matter what terminal or app is being used they just work.
>>>
>>> Cheers Drew.
>>>
>>> On Tue, 19 Jan 2021, 20:59 Justine Smithies, <[email protected]>
>>> wrote:
>>>
>>>> Thanks Drew I'll give that a try and let you know if it resolves the
>>>> issue.
>>>>
>>>> On Tue, 19 Jan 2021, 20:58 Drew Ditthardt, <[email protected]>
>>>> wrote:
>>>>
>>>>> Oh, so reading up the alacritty issue I noticed this issue affects
>>>>> htop as well.
>>>>>
>>>>> If it's what I think it is...I fixed htop on my machine by overriding
>>>>> it with this script
>>>>> ```
>>>>> #!/bin/bash
>>>>> COLUMNS=
>>>>> LINES=
>>>>> exec /usr/bin/htop "$@"
>>>>> ```
>>>>>
>>>>> If your shell provides COLUMNS/LINES, you need to remove them from the
>>>>> environment to get ncurses applications to respond properly to SIGWINCH.
>>>>>
>>>>> --Drew Ditthardt
>>>>>
>>>>>
>>>>> On Tue, Jan 19, 2021 at 3:43 PM tcld <[email protected]> wrote:
>>>>>
>>>>>> I am using ranger, too, and am experiencing the same issue. It's not
>>>>>> related to Qtile, I think, since there are a select few terminal 
>>>>>> emulators
>>>>>> with which it works flawlessly.
>>>>>>
>>>>>> Here is an issue on the alacritty-github, where I listed the
>>>>>> terminals I tried: https://github.com/alacritty/alacritty/issues/4560
>>>>>>
>>>>>> On Tuesday, 19 January 2021 at 20:35:30 UTC+1 Justine Smithies wrote:
>>>>>>
>>>>>>> Has anyone else using Qtile had an issue whereby you run ranger from
>>>>>>> any terminal but I'm using kitty and then open another terminal say in
>>>>>>> monadtall but the ranger terminal window never updates to fit the window
>>>>>>> change of size. I thought it was kitty but have tried 3 other terminals 
>>>>>>> to
>>>>>>> no avail. I tried on my a raspberry pi running just the standard install
>>>>>>> and it uses lxterminal and ranger seemed fine when I resized the 
>>>>>>> windows.
>>>>>>> So I'm thinking could it be Qtile related ? I don't see any errors in 
>>>>>>> the
>>>>>>> logs. It's not a show stopper if I keep the window how it originally 
>>>>>>> opened
>>>>>>> but does become unusable if you do accidentally open another window. I 
>>>>>>> even
>>>>>>> check that checksize was on for the terminal.
>>>>>>>
>>>>>>> I'm stumped for now. Any ideas ?
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "qtile-dev" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/qtile-dev/aef18f64-9a31-4c27-8e4a-292e7f4d15c6n%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/qtile-dev/aef18f64-9a31-4c27-8e4a-292e7f4d15c6n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "qtile-dev" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/qtile-dev/CAGekxbTAyubEU1DWSJ%2BumfRZ3_XeMCcXtaocOE5gsk5KsvxWBA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/qtile-dev/CAGekxbTAyubEU1DWSJ%2BumfRZ3_XeMCcXtaocOE5gsk5KsvxWBA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/CADrRWNZ6k2Vro-XHcSDGi51cvYQQL8xt3jprJkc4BvzL1g1A0g%40mail.gmail.com.

Reply via email to