Hi there, I just installed the latest version of Pywal on macOS and ran into an issue or two.
First was that, when I ran wal -i image.png
, I'd get an error from line 87 of wallpaper.py.
The error was TypeError: unsupported operand type(s) for /: 'str' and 'str'
.
It seems there was an error of some sort parsing the HOME / 'Library...
bit of code. I fixed it quickly by changing it to beHOME + '/Library...
instead.
After that the wallpaper set correctly.
(I'm not overly familiar with python, so I'm not sure exactly how the /
worked in this scenario, but for some reason it wasn't parsing correctly for me.)
Second issue was that, when running the command it iterm2, it would change some font and tab colors, however not the background, foreground and some other main colors.
I looked at iterm's website for the syntax for switching it. And the example they show is echo -e "\033]Pg4040ff\033\\"
Doing some quick debugging, I found that wal was outputting something like: "\033[Pg4040ff\033\\"
.
Pretty much the same, the only difference being that the bracket was the other way around ([
, instead of ]
like the iterm example). I switched the bracket around on line 16 of sequences.py. And everything worked correctly going forward.
Now, I'm using the iterm2 beta (3.1.beta.5), so this bracket issue may be a change in syntax they made recently, I'm not too sure.
Anyway, not sure if these issues are effecting other Mac users, but I thought I'd post them here incase they are wider spread issues.
Another thing I'd like to mention isn't an issue, but a small thing I've done which might be a cool feature for some users (May only be applicable to iterm users, not sure).
What I did was add a small bit of text: echo -e "$(cat ~/.cache/wal/sequences)"
to my .bash_profile
. Which allows me to reload the color scheme when reloading my terminal, (As it the colors don't stick in iterm normally).