Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how does one configure vifm to have transparent background #981

Closed
iambumblehead opened this issue Feb 5, 2024 · 8 comments
Closed

how does one configure vifm to have transparent background #981

iambumblehead opened this issue Feb 5, 2024 · 8 comments

Comments

@iambumblehead
Copy link

iambumblehead commented Feb 5, 2024

I have read the wiki color page https://wiki.vifm.info/index.php/Color_schemes and have reviewed and experimented with .config/vifm/colors/Default.vifm but am unable to achieve transparent background with vifm, would you tell me how to do this?

$ echo $TERM
xterm-256color
$ vifm --version | grep Version
Version: 0.13
@xaizek
Copy link
Member

xaizek commented Feb 5, 2024

Is your terminal transparent when you're in a shell, but not once Vifm is started? If not, then there is nothing Vifm can do: it can't make terminal transparent, it at most might not interfere with transparency (not sure if there were cases of interference, but it might be possible if it depends on colors in use).

@iambumblehead
Copy link
Author

@xaizek yes the shell is transparent then vifm starts and transparency goes away. I've tried using foot, gnome terminal and blackbox terminal. Other terminal tools have transparency in these terminals such as moc, ranger, emacs, musikcube

@Parilia
Copy link

Parilia commented Feb 6, 2024

You could try using kitty, works fine in that

@iambumblehead
Copy link
Author

vifm is installed here on two devices. One is a vanilla arch linux gnome setup and the other is a guix sway setup. vifm transparency does not seem to work for either of them. Other potential users who try vifm probably experience the same issue.

@iambumblehead
Copy link
Author

summary: transparency is working, but there might be some issue with the default configuration or maybe some missing information in the guide or wiki


Transparency is seen after adding this to ~/.config/vifm/vifmrc

highlight Win cterm=none ctermfg=white ctermbg=none

Based on reading, vifm should load and use the theme file ~/.config/vifm/colors/Default.vifm but it appears the file is not loaded, even when :colorscheme Default-256 is explicitly called. By default ~/.config/vifm/colors/Default.vifm uses "black" for the Win hightlight, however editing this value does not affect future vifm sessions, leading me to believe there is some problem around loading or applying that file

For now, I can write highlight definitions directly to the main config file at ~/.config/vifm/vifmrc and I'll play around with things and try downloading and applying some themes here https://vifm.info/colorschemes.shtml

@iambumblehead
Copy link
Author

I am happy if this issue is closed or not -- thank you

@xaizek
Copy link
Member

xaizek commented Feb 6, 2024

Based on reading, vifm should load and use the theme file ~/.config/vifm/colors/Default.vifm but it appears the file is not loaded, even when :colorscheme Default-256 is explicitly called.

Default != Default-256. You should copy /etc/vifm/colors/Default-256 to ~/.config/vifm/colors/Default-256.vifm and edit it there.

there might be some issue with the default configuration

The way default colorschemes are done (Default and Default-256), they don't work with light background. This is why Win uses black background by default, otherwise Vifm can be unuseable in light terminals.

I updated explanation of color scheme files and added a short section on transparency in https://wiki.vifm.info/index.php/Color_schemes. Thanks.

@xaizek xaizek closed this as completed Feb 6, 2024
@iambumblehead
Copy link
Author

perfect! thank you @xaizek vifm is the main file manager now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants