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

Config File -- include = /path/to/config/file Doesn't interrpret "~" or "$HOME" #139

Open
cydov opened this issue Nov 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@cydov
Copy link

cydov commented Nov 28, 2023

After several hours of troubleshooting why Pywal wasn't working, after creating a template in Pywal just for Tofi, I thought, "Huh, maybe it isn't seeing the file. I placed the output of my template directly inside the config to verify that it was working, and it was working fine. No matter what I did, the line include = ~/.cache/wal/colors-tofi would not change the colors of Tofi, leaving the defaults as if the definitions in the file were not there. To get this to work, I had to use the hard-coded absolute path, or the relative path.
include = /home/<user>/.cache/wal/colors-tofi
works
include = ../../.cache/wal/colors-tofi
also works
include = ~/.cache/wal/colors-tofi
doesn't work
include = $HOME/.cache/wal/colors-tofi
doesn't work

Below is my CONF file:
anchor = left
width = 18%
height = 90%
margin-left = 21
font-size = 18
font = /usr/share/fonts/TTF/FiraCodeNerdFontPropo-Retina.ttf
outline-width = 0
border-width = 3
corner-radius = 24
num-results = 12
prompt-run = " run: "
include = ~/.cache/wal/colors-tofi
include = ../../.cache/wal/colors-tofi`

I will include my custom Pywal Template for anyone who may want it, or needs it for recreation.
colors-tofi.txt

@philj56 philj56 added the bug Something isn't working label Nov 28, 2023
@philj56
Copy link
Owner

philj56 commented Nov 28, 2023

Hey, sorry about that. You're right, include=~/.... in the config file won't work, as I don't check for it, but it definitely should! I'll fix that soon.

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants