question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ranger resets to default colorscheme in terminator

See original GitHub issue

It seems that every time ranger does something that updates the whole window in terminator, it resets the whole terminal to the default colorscheme (the one that was set in your configs, ignoring pywal’s colorscheme).

The steps to reproduce this issue are quite simple:

  • Open up ranger through the command;
  • Do anything that updates all of the terminal window, for example, in the gif, I opened up vim (I’ve tested with commands such as :shell pandoc ... and :shell git ... that, while executing, update the whole window, and for things like the the S mapping in ranger, that takes me to my shell map S shell zsh -c "cd %d; zsh").

Or, if you open up ranger with a custom mapping (for example, I have $mod+r on i3wm), ranger will not get the custom colorscheme from the start.

Expected is you would have your custom colorscheme, but what happens is that ranger sets the default colorscheme back. That might have not been clear in the gif because the custom colorscheme and the default were very alike. In the end, when I open up two different terminals, the left one is terminator and the right one is URxvt. The right one is with the custom colorscheme, but terminator reverted back to the default colorscheme - and it affects the whole terminal window - so if I leave ranger, the terminal doesn’t have the custom colorscheme set anymore.

I should also mention, If I haven’t yet, that this doesn’t happen on URxvt, neither the ranger issue, nor the mouse thing (maybe because it uses Xresources). I can’t say about other terminals, but I can say that it happens in terminator, which is the one I recorded on (it might even be a terminator issue, but I haven’t got the time to test on different emulators).

I’m sorry if it was not clear what was happening. And thank you for your patience and willingness to resolve these little issues.

Here’s the above mentioned gif:

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

3reactions
Sacmanxman2commented, Oct 8, 2017

What worked for me is making a shell script to launch Ranger like this. It runs the command to update termites’ color scheme right before ranger: #!/bin/bash (wal -r &) ranger

3reactions
balbooaaa17commented, Sep 16, 2017

I too also use terminator as a daily terminal, but i think this issue belongs to terminator. The problem is even if i lose focus for a sec from the main window of terminator the cholorschemes are back to default(whether its ranger,cmus,htop, u name it. Same issue goes with neofetch, where the image dissapears everytime u lose focus of the window. Ive tried pywal with urxvt, gnome-terminal, xfce4-terminal and it works without any problem.

So i’m guessing its more a terminator issue than a pywal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ranger resets to default colorscheme when launched from d ...
r/linux4noobs - Just installed Kubuntu 22.04.1 LTS. First Linux ever.
Read more >
Set colors for terminator to terminal's - Ask Ubuntu
In terminator , the color palette can be edited in the preferences (Right Click → Preferences) under Profiles → Colors: right click menu....
Read more >
ranger image-preview with transparent terminal background
I have a transparent terminal that works with ranger 's image preview. I use termite (terminal emulator) and compton (compositor) for ...
Read more >
Dotfiles - ArchWiki
The simplest way to achieve this approach is to initialize a Git repository directly in your home directory and ignoring all files by...
Read more >
dotfiles - Repositories
... new file: .config/ranger/tagged new file: .config/sxhkd/sxhkdrc new file: .config/terminator/config new file: .config/vifm/colors/Default.vifm new file: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found