pywal icon indicating copy to clipboard operation
pywal copied to clipboard

Kitty and transparency

Open Lanhild opened this issue 3 years ago • 4 comments

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?

Lanhild avatar May 20 '21 15:05 Lanhild

Yes.

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

Davincible avatar Jun 01 '21 11:06 Davincible

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.

iam-arnab avatar Nov 22 '21 02:11 iam-arnab

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..

2403772980ygy avatar Jun 21 '23 12:06 2403772980ygy

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

Djent- avatar Mar 26 '24 20:03 Djent-