Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Alacritty doesn't seem to be working with wal #37

Closed
ohmree opened this issue Jul 7, 2017 · 20 comments
Closed

Alacritty doesn't seem to be working with wal #37

ohmree opened this issue Jul 7, 2017 · 20 comments
Labels

Comments

@ohmree
Copy link
Contributor

ohmree commented Jul 7, 2017

I installed Void Linux today and finally managed to get pywal working (it only has py3.5 so I compiled 3.6.1 with pyenv) and since it doesn't have Termite (my go-to terminal) in it's repos I decided to try Alacritty (it's supposed to be fast). So turns out it's dash-fast, as in "lacks too many useful features" (probably because it's still in alpha). The printf "%b" "\033]11;#ff0000\007" does nothing so I guess you should add it to the list. I tried to make it work with wal by having a config.yml that contains non-color options and an auto-generated colors.yml that has colors (used termcolors to convert to Alacritty's format), what I did was add this function:

function fix_alacritty() {
	local dir="${HOME}/.config/alacritty"
	rm "${dir}/alacritty.yml"
	cat "${dir}/config.yml" "${dir}/colors.yml" >> "${dir}/alacritty.yml"
}

And call it in the script that gets executed after wal, turns out Alacritty needs everything to be in specific positions for the thing to work (it is possible with some mad regex-foo or yaml parsing, both of which I'm no good at and not going to try doing since the benefits aren't that good, not being able to change colors on the fly is a bummer)

So I guess it's not really an issue with wal but I'm just letting you know

@dylanaraps
Copy link
Owner

Thanks for doing all of this testing!

We could try and open an issue on Alacritty's bug tracker, I did a quick search and couldn't find anything.

@dylanaraps
Copy link
Owner

Issue opened on Alacritty's repo: alacritty/alacritty#656

@dylanaraps
Copy link
Owner

Alacritty is now supported! :D

@ghost
Copy link

ghost commented Mar 4, 2018

So, how would I add wal to alacritty? It does work, but I need to re-run wal every-time I open a new alacritty instance.

@ohmree
Copy link
Contributor Author

ohmree commented Mar 4, 2018

You should be able to just add wal (and whatever parameters you pass to it) to your shell's rc file, for Bash it's ~/.bashrc.

@ghost
Copy link

ghost commented Mar 4, 2018

So what you're telling me is that I should just add the wal command to my shell rc file?

(e.g. wal -i /path/to/wallpaper in .zshrc)

@ohmree
Copy link
Contributor Author

ohmree commented Mar 4, 2018

Something like that. Maybe only do it when running in a graphical session, I haven't used wal in a long time so I can't remember what I used to do.

@ghost
Copy link

ghost commented Mar 4, 2018

It worked! Thanks.

@FranciscoJRSantos
Copy link

[MacOS] I've recently installed alacritty, and pywal doesn't seem to be working! Am I missing something?
I've got the command (cat ~/.cache/wal/sequences &) in my .zshrc file
Whenever I try to wal -i /path/to/wallpaper it just does nothing.

@dylanaraps
Copy link
Owner

I have no way of debugging macOS. Alacrity works just fine on my Linux install.

Are you using the latest version of Alacritty?

@FranciscoJRSantos
Copy link

Just reinstalled Alacritty to make sure I have the latest version but the same problem still arises. Whenever I use wal -i it reads the wallpaper but the colors never change. Is there a log file or something alike that I can check to know more details about the problem?

@dylanaraps
Copy link
Owner

dylanaraps commented Mar 10, 2018 via email

@FranciscoJRSantos
Copy link

I'm using the latest on their repo, can't really give you a number as I don't know any command the shows me the Alacritty version nor have they got any releases or tags on the repo.

@Amar1729
Copy link
Contributor

This is still a problem with a fairly recent (march 01) version of Alacritty on macOS.

Oddly enough printf "%b" "\033]11;#ff0000\007" does change the background to red, but cat sequences does nothing. Running wal -i <file> changes the colors of iTerm2 windows but not Alacritty.

@dylanaraps
Copy link
Owner

It might be worth opening a bug on their tracker. Alacritty works fine on Linux.

@egeesin
Copy link

egeesin commented Aug 14, 2019

I just wrote a workaround that may help Mac users who want wal colors in Alacritty: https://github.com/egeesin/alacritty-color-export

@rugglcon
Copy link

rugglcon commented Jan 2, 2020

@egeesin this is confirmed working for me on MacOS 10.15.2, alacritty 0.3.3

@rugglcon
Copy link

@dylanaraps if you don't mind, I'd like to add this to the Wiki as a section under the terminal customization, something like "Alacritty on MacOS".

@dylanaraps
Copy link
Owner

Go ahead! 👍

@rugglcon
Copy link

Done 😃

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants