Polybar: Support for environment variables

Created on 26 Jul 2016  路  4Comments  路  Source: polybar/polybar

I don't tweak it much, but I've been using it for a while now and it's a fantastic tool. Typically when I change xresources colors or connect a monitor I'd like lemonbuddy to comply. This can be done without changing the config if I can access environment variables.

Most helpful comment

With e94bd6a271 you can reference variables using ${env:VAR_NAME}

All 4 comments

I second that. You already do variable expanstion to access properties of other config options in the lemonbuddy config, so it should be possible to also incluce environment variables if they exist

Yeah, this only requires a minor change to the config code so I'll push a commit with it in a few hours.

With e94bd6a271 you can reference variables using ${env:VAR_NAME}

Man! that was quick!

Was this page helpful?
0 / 5 - 0 ratings