pywal icon indicating copy to clipboard operation
pywal copied to clipboard

Using modifiers in scripts

Open vaskark opened this issue 3 years ago • 2 comments

I've added source ~/.cache/wal/colors.sh to my .zshrc to import wal variables. But I'm confused as to how I can make use of the modifiers like {var.strip} in scripts. Do I need to export this in .zshenv? And if so, what's the formatting?

Thanks.

vaskark avatar Dec 15 '21 19:12 vaskark

What do you mean by use use modifiers in scripts? Modifiers are only used when replacing values in template files.

If you wanted to do something like export modified variables from wal to your environment, you'd need to write your own template file ~/.config/wal/colors-modified.sh, run wal, and source ~/.cache/wal/colors-modified.sh in your shell rc file.

arcmags avatar Dec 17 '21 04:12 arcmags

What do you mean by use use modifiers in scripts? Modifiers are only used when replacing values in template files.

If you wanted to do something like export modified variables from wal to your environment, you'd need to write your own template file ~/.config/wal/colors-modified.sh, run wal, and source ~/.cache/wal/colors-modified.sh in your shell rc file.

I've come to that conclusion as well. Thanks so much for replying.

vaskark avatar Dec 17 '21 15:12 vaskark