dylanaraps / pywal

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

Kitty and transparency #604

Open Lanhild opened 3 years ago

Lanhild commented 3 years ago

The issue

My issue is that wal overrides the background_opacity setting in the kitty.conf. What I am wondering is how am I supposed to have that transparency setting work with wal?

What I have tried

I tried to make a template in $HOME/.config/wal/templates/colors-kitty.conf, without success.

foreground     {foreground}
background     {background}
background_opacity 0.6
cursor         {cursor}

active_tab_foreground       {active_tab_foreground}
active_tab_background       {active_tab_background}
inactive_tab_foreground     {inactive_tab_foreground}
inactive_tab_background     {inactive_tab_background}

active_border_color     {active_border_color}
inactive_border_color       {inactive_border_color}
bell_border_color       {bell_border_color}

color0      {color0}
color8      {color8}
color1      {color1}
color9      {color9}
color2      {color2}
color10     {color10}
color3      {color3}
color11     {color11}
color4      {color4}
color12     {color12}
color5      {color5}
color13     {color13}
color6      {color6}
color14     {color14}
color7      {color7}
color15     {color15}

This didn't work, so I was wondering what I could do to make it finally work. Could I exclude the background_opacity setting from wal so it takes the one from kitty.conf?

Davincible commented 3 years ago

Yes.

I am also looking into background transparency with kitty, only with wpgtk

zytact commented 2 years ago

My one works just fine

foreground         {foreground}
background         {background}
background_opacity 0.88
cursor             {cursor}

active_tab_foreground     {background}
active_tab_background     {foreground}
inactive_tab_foreground   {foreground}
inactive_tab_background   {background}

active_border_color   {foreground}
inactive_border_color {background}
bell_border_color     {color1}

color0       {color0}
color8       {color8}
color1       {color1}
color9       {color9}
color2       {color2}
color10      {color10}
color3       {color3}
color11      {color11}
color4       {color4}
color12      {color12}
color5       {color5}
color13      {color13}
color6       {color6}
color14      {color14}
color7       {color7}
color15      {color15}

I think there are mistakes in 2nd and 3rd block of your template.

2403772980ygy commented 1 year ago

Personally I use the default config and add the default colors-kitty.conf at the bottom. It will not overwrite the original one. I guess there's no such thing as {active_tab_foreground} etc..

Djent- commented 6 months ago

You are attempting to use variable names in your template which are not defined. Please see https://github.com/dylanaraps/pywal/wiki/User-Template-Files#available-variables-and-syntax