LukeSmithxyz / st

Luke's fork of the suckless simple terminal (st) with vim bindings and Xresource compatibility.
MIT License
1.63k stars 1.01k forks source link

[LARBS] Transparency not working after using pywal #54

Closed emorevival closed 5 years ago

emorevival commented 5 years ago

Hey Luke,

I'm on a fresh Archlabs install and just used pywal on a wallpaper I have. Everything applied well, even in st, but now the windows aren't transparent like they were before. I added *.alpha = 255 (tried other values too) to my .Xresources, I've checked the st config file and recompiled that as well but it's still the same.

I haven't changed the default compton config that is installed by LARBS.

edit: just to clarify, it was working before I used pywal

emorevival commented 5 years ago

hmmm, transparency seems to work on (popup?) terminal windows. Your pacman updates module notified me that there are 8 updates and when I clicked it the window that was opened by it had the exact transparency I had set in .Xresources.

the dropdown terminal is also transparent.

Maybe I need to call st by a different command now? Since only the one called by mod+Enter doesn't have transparency

ask6155 commented 5 years ago

Only my popup terminal have transparency. Rest all don't. Happened with the latest update.

emorevival commented 5 years ago

my exact issue too except for me the rest of them do too but only if you launch a specific cli program through a keybinding like $mod+r

jpnadas commented 5 years ago

I don't use LARBS, but I have just updated luke's st build on my arch install and transparency stopped working for me as well (I set alpha via .Xresources).

LukeSmithxyz commented 5 years ago

In every case, your xrdb settings are set in a way inconsistent or overriding of the settings of st. I have no clue what the defaults are for Archlabs or Manjaro or any of those other distributions, so if anyone could give me the output of xrdb -query or their ~/.Xdefaults or ~/Xresources files, I could figure it out.

@jpnadas Your problem is due to a recent upgrade. Now, the alpha value required should be a floating point between 0 (fully transparent) and 1 (fully opaque). Change that and it should be fixed.

emorevival commented 5 years ago

Here is the output of xrdb -query and here's my ~/Xresources file

LukeSmithxyz commented 5 years ago

What composite manager do you have running?

emorevival commented 5 years ago

compton, this is my compton.conf

LukeSmithxyz commented 5 years ago

I'm not able to replicate this problem even with pywal and your compton config. Are you using the most recent build?

Exactly what wal command are you running?

emorevival commented 5 years ago

This is the output of st -v:

st 0.8.1 (c) 2010-2016 st engineers

for pywal I'm running wal -i image, through the "bw" shortcut in your ranger config in LARBS

(and I am running the latest build from the AUR, just double checked it)

jpnadas commented 5 years ago

@jpnadas Your problem is due to a recent upgrade. Now, the alpha value required should be a floating point between 0 (fully transparent) and 1 (fully opaque). Change that and it should be fixed.

Thanks @LukeSmithxyz, that did it!

jpnadas commented 5 years ago

Here is the output of xrdb -query and here's my ~/Xresources file

am I missing something or shouldn't you just uncomment the !*.alpha : 255 from your .Xresources and change the value to something in the range [0,1]?

emorevival commented 5 years ago

Here is the output of xrdb -query and here's my ~/Xresources file

am I missing something or shouldn't you just uncomment the !*.alpha : 255 from your .Xresources and change the value to something in the range [0,1]?

that's commented out from when I was trying to fix it, I didn't even have it there before using pywal and trying to fix the issue. either way, it doesn't seem to make a difference (well technically: it does make a difference when I launch ranger from a keybinding or launch the floating terminal, but the terminal launched with $mod+Enter (or just with st) is still not transparent like the rest). like so:

image

see how all other windows launched by a keybinding have the correct transparency but not the regular one?

codeitlikemiley commented 5 years ago

check your st build guys, the latest build dont use 0-255 it uses 0-1. the lesser the vale the more transparent the terminal is.

nickfarrow commented 4 years ago

@emorevival I got transparency by using compton, https://github.com/LukeSmithxyz/st/issues/46

opacity-rule = [ "90:class_g = 'St'" ]; in ~/.config/compton.conf

umrian commented 1 year ago

I have the same problem, too. Transparency working with xcompmgr but when I installed pywal and run wal -i ./img.jpg, it just loses transparency, but all the other colors are working. I also have the st alpha patch, and set the float value to 0.5, but it still doesn't seem to work.