-
-
Notifications
You must be signed in to change notification settings - Fork 716
Mixed References And Text in Config Values #954
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
Comments
If you use a
However for the xrdb values this can prove more difficult. It should probably be possible to mix those variables with other symbols inside a parameter, I'll mark this as a feature request. |
Cool. And sure i could make a "super variable" either environment or xresources. The problem is though that if i would update the font in xresources i would have to generate a new super variable. And that kind of defeats the purpose of using xresources a a one stop goto for setting fonts/colors/etc. I hope the feature will be considered, and i guess there are more usecases then this where it would be useful. Maybe add some kind of concatenation method in polybar itself... font = ${oldvar:newstuff} |
If you wrote a bash script that reads your xresources and writes the proper font settings inside an env variable then you wouldn't need to manually update the font in two places, but writing this bash script is probably the biggest hassle. You're right there are a bunch of usecases for this, I have had to create a lot of extra variables inside a bash script because polybar couldn't do this kind of concatenation. key = some stuff ${env:VAR} some more And even let multiple variables appear in a single assignment. |
This would be fantastic to have and it would be great if it would also work in format strings. That way one could, for example, use color variables to color individual parts of a string, i.e., |
I load my font information from xresources.
.Xresources
:budstyle.font: FixedFixedsys
polybarconfig:
this works:
font-0 = ${xrdb:budstyle.font:monospace}
these two doesn't work:
font-0 = ${xrdb:budstyle.font:monospace};2
font-0 = ${xrdb:budstyle.font:monospace}:size=12:antialias=false;1
Is there some workaround other then accepting no styling or harcoding the font?
The text was updated successfully, but these errors were encountered: