Pywal doesn't change background of alacritty

See original GitHub issue

I use alacritty as a terminal and all colors in alacritty are correctly sourced when I run wal, except for the background which stays the same color throughout. Running cat ~/.cache/wal/sequences also doesn’t change the background. I’m using i3 as window manager and have no color settings in my alacritty config. Is this an issue from pywal or an issue from alacritty?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

6reactions
zBumblBcommented, Jul 23, 2021

Terminal solution doesn’t work for me. Instead I just created a new template and imported it. Add

import:
  - ~/.cache/wal/colors-alacritty.yml

to your alacritty.yml and create a new template file ~/.config/wal/templates/colors-alacritty.yml. Here’s my template file. The only thing is, if you omit alpha when setting a new colorscheme, the terminal background will be transparent.

background_opacity: 0.{alpha}

# Colors (Gruvbox dark)
colors:
  primary:
    background:        '{background}'
    foreground:        '{foreground}'
  cursor:
    text:   CellForeground
    cursor: '{cursor}'
  bright:
    black:   '{color0}'
    red:     '{color1}'
    green:   '{color2}'
    yellow:  '{color3}'
    blue:    '{color4}'
    magenta: '{color5}'
    cyan:    '{color6}'
    white:   '{color7}'
  normal:
    black:   '{color8}'
    red:     '{color9}'
    green:   '{color10}'
    yellow:  '{color11}'
    blue:    '{color12}'
    magenta: '{color13}'
    cyan:    '{color14}'
    white:   '{color15}'

I created a pull request #611

0reactions
nipunravisaracommented, Dec 9, 2021

Terminal solution doesn’t work for me. Instead I just created a new template and imported it. Add

import:
  - ~/.cache/wal/colors-alacritty.yml

to your alacritty.yml and create a new template file ~/.config/wal/templates/colors-alacritty.yml. Here’s my template file. The only thing is, if you omit alpha when setting a new colorscheme, the terminal background will be transparent.

background_opacity: 0.{alpha}

# Colors (Gruvbox dark)
colors:
  primary:
    background:        '{background}'
    foreground:        '{foreground}'
  cursor:
    text:   CellForeground
    cursor: '{cursor}'
  bright:
    black:   '{color0}'
    red:     '{color1}'
    green:   '{color2}'
    yellow:  '{color3}'
    blue:    '{color4}'
    magenta: '{color5}'
    cyan:    '{color6}'
    white:   '{color7}'
  normal:
    black:   '{color8}'
    red:     '{color9}'
    green:   '{color10}'
    yellow:  '{color11}'
    blue:    '{color12}'
    magenta: '{color13}'
    cyan:    '{color14}'
    white:   '{color15}'

I created a pull request #611

Hey can you tell me how to create template , add transparency and add to alacritty. Please can you explain properly. I am new to alacritty and dont know how can i import from external file.

It’s in pywal documentation https://github.com/dylanaraps/pywal/wiki/User-Template-Files

Read more comments on GitHub >

github_iconTop Results From Across the Web

| Alacritty and PyWal : r/unixporn - Reddit
Hello, I'm trying to find out how to have alacritty use my colorscheme from wal, ... Putting this in ~/.config/fish/config.fish should work
Read more >
pywal - Bountysource
Running cat ~/.cache/wal/sequences also doesn't change the background. I'm using i3 as window manager and have no color settings in my alacritty config....
Read more >
Qtile; How to make the super+w keybind work? - Newbies
Hi, I want to make the super+w keybind (the one that's supposed to change wallpapers and color schemes work) I did. Sudo pacman...
Read more >
pywal vs base16 - compare differences and reviews? | LibHunt
pywal. Generate and change color-schemes on the fly. (by dylanaraps) ... gelacritty: set colorschemes and fonts in alacritty terminal.
Read more >
Rice:Resources - Ricepedia
Tiling[edit]. The following applications can be used to add tiling support to a window manager that otherwise doesn't have it. Linux ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found