dylanaraps / pywal

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

cat `.cache/wal/sequences` doesn't work in Fish on Alacritty #548

Open Snazzyham opened 4 years ago

Snazzyham commented 4 years ago

Sorry if this has been answered already, I tried a bunch of things from other posts and nothing works.

Basically, when I run wal, alacritty's colors change.

However, when I try the different ways of making it persist by adding cat ~/.cache/wal/sequences, to my config.fish, nothing works.

Even just trying to run that command in fish doesn't produce any output for me.

Any help would be appreciated.

ddddavidee commented 4 years ago

same here but with zsh. I put the command in .zshrc but the colors are not updated, no problem at all -on the other hand- if I run the command in a zsh shell.

Snazzyham commented 4 years ago

I ended up switching to Kitty and just symlinking the colors that pywal generates to Kitty.

So I mainly switched to Kitty for the colors and the fact it supports ligatures.

ddddavidee commented 4 years ago

I use Gnome-Shell and I added this command (found on reddit) to set the colorscheme when I open a new shell. the alias colorfix sets the colorscheme manually.


# Import colorscheme from 'wal' asynchronously
# &   # Run the process in the background.
# ( ) # Hide shell job control messages.
#(/bin/cat ~/.cache/wal/sequences &)
(wal -t -q -i $(gsettings get org.gnome.desktop.background picture-uri  | grep -oP "://\K.*" | rev | cut -c2- |rev)&)
alias colorfix='wal -t -q -i $(gsettings get org.gnome.desktop.background picture-uri | grep -oP "://\K.*" | rev | cut -c2- |rev)'
rizzini commented 3 years ago

I use Gnome-Shell and I added this command (found on reddit) to set the colorscheme when I open a new shell. the alias colorfix sets the colorscheme manually.

# Import colorscheme from 'wal' asynchronously
# &   # Run the process in the background.
# ( ) # Hide shell job control messages.
#(/bin/cat ~/.cache/wal/sequences &)
(wal -t -q -i $(gsettings get org.gnome.desktop.background picture-uri  | grep -oP "://\K.*" | rev | cut -c2- |rev)&)
alias colorfix='wal -t -q -i $(gsettings get org.gnome.desktop.background picture-uri | grep -oP "://\K.*" | rev | cut -c2- |rev)'

I had to use the same solution, but I'm on KDE Plasma. Though, I didn't make an alias. I run the code belown on my/home/$USER/.config/fish/config.fish, so my terminal can be updated on every time I run it. Or I could do better saying to the script when my wallpaper changed, so I don't need to call on every run but meh.. It's fine for now..

#!/bin/bash
wal -q -e -t -n -i $(cat /home/$USER/.config/./plasma-org.kde.plasma.desktop-appletsrc | grep 'Image=' | cut -c 7-999  | perl -MURI -MURI::Escape -lne 'print uri_unescape(URI->new($_)->path)')