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

Pywal doesn't change background of alacritty #580

Open
pepijno opened this issue Jan 17, 2021 · 5 comments
Open

Pywal doesn't change background of alacritty #580

pepijno opened this issue Jan 17, 2021 · 5 comments

Comments

@pepijno
Copy link

pepijno commented Jan 17, 2021

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?

@pepijno
Copy link
Author

pepijno commented Jan 23, 2021

I think the problem is the -a option which I was still using from when I had URxvt. Then pywal tried to set the background of alacritty to '[94]#0d1018' instead of '#0d1018'. I know that -a should only work with URxvt but I didn't expect it to break for other terminals. Is this expected behaviour?

@doonoo
Copy link

doonoo commented Apr 11, 2021

@zBumblB
Copy link

zBumblB commented 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

@dwskme
Copy link

dwskme commented Nov 10, 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.

@nipunravisara
Copy link

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

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

No branches or pull requests

5 participants