end-4 / dots-hyprland

i hate minimalism so...
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
4.54k stars 319 forks source link

[Issue] Foot terminal transparent #911

Closed zVSciy closed 3 weeks ago

zVSciy commented 3 weeks ago

The issue

So I tried to make the foot terminal transparent, but it doesn't work for me. I've been looking for a solution for days now. I tried to change the color settings in the foot.ini file as shown below:

[colors]
alpha=0.9
foreground=ffffff
background=000000

I found a solution in your closed issues, but it didn't work for me. It said to change a variable in the applycolors.sh. I have two of them, so I changed both, but it didn't work:

term_alpha=70 #Set this to < 100 make all your terminals transparent
term_alpha=70 #Set this to < 100 make all your terminals transparent

but those 2 are only small problems hope someone can help me

MirilRetry commented 3 weeks ago

Your issue seems similar to #905, Solution: https://github.com/end-4/dots-hyprland/issues/905#issuecomment-2447066298, to only make foot transparent replace the .* with ^(foot)$ Window Rules Documentation

zVSciy commented 3 weeks ago

It worked!! :) Many thanks

windowrule = opacity 0.89, foot

This fixed it

soloopooo commented 2 weeks ago

It worked!! :) Many thanks

windowrule = opacity 0.89, foot

This fixed it

@MirilRetry This fix method maybe not right.

This transparency will affect the letters' opacity too. You can try to set this to 0 and see what will happen.

The Real bug here is the applycolor.sh:

sed -i "s/\$alpha/$term_alpha/g" "$CACHE_DIR/user/generated/terminal/sequences.txt"

For unknown reason, the $alpha is not set with right opacity, and then the sequences.txt is not modified.

The Best solution is edit your $CACHE_DIR/user/generated/terminal/sequences.txt:

You will find this: ...[]11;[100]...

图片

Edit this 100 to a number less than 100, then restart foot:

图片

So my opinion is to let this issue re-opened. There DO be a bug here in the script.

MirilRetry commented 2 weeks ago

The Real bug here is the applycolor.sh:

sed -i "s/\$alpha/$term_alpha/g" "$CACHE_DIR/user/generated/terminal/sequences.txt"

For unknown reason, the $alpha is not set with right opacity, and then the sequences.txt is not modified.

Not really a bug, It's replacing $alpha with $term_alpha correctly (100 in this case), in commit https://github.com/end-4/dots-hyprland/commit/db5b866c2a36a999654901085f86c0d442e8c33b term_alpha value was changed from 80 to 100.