dylanaraps / pywal

🎨 Generate and change color-schemes on the fly.
MIT License
8.23k stars 313 forks source link

Custom script template not running #594

Open vaskark opened 3 years ago

vaskark commented 3 years ago

Hi. I'm using the berry wm and have written a script to change some colours (as a template, of course):

#!/bin/sh

berryc inner_focus_color   {color2.strip}
berryc text_focus_color    {color0.strip}
berryc inner_unfocus_color {color0.strip}
berryc text_unfocus_color  444444

The correct file is being produced in ~/.cache/wal/colors-berry.sh but the script is not being run. Executable permissions were set on the template file but I found they weren't carried forward to the cache file. I have set proper permissions there now. Still no go.

Any help would be greatly appreciated. I do have this working in an extra script (using the -o flag) but wish to use the template scheme if possible. So not exactly a critical issue.

Thanks.

arcmags commented 2 years ago

It appears that execute permissions are not copied over to created template files. One solution would be creating a script you would run with -o that simply contains sh ~/.cache/wal/colors-berry.sh.