sargon / trayer-srg

trayer fork with multi monitor support, cleaned up codebase and other fancy stuff
Other
223 stars 34 forks source link

`trayer --transparent true --alpha 255` is not transparent #38

Open skewty opened 6 years ago

skewty commented 6 years ago

trayer --transparent true --alpha 255 gives me a solid black background in Elementary Juno 5.0b.

Same issue reported here: https://bbs.archlinux.org/viewtopic.php?id=39723

Julioevm commented 5 years ago

same problem here

fleutot commented 5 years ago

Same issue, even without compositor.

afaikiac commented 2 years ago

trayer --transparent true --alpha 255 gives me a solid black background in Elementary Juno 5.0b.

Same issue reported here: https://bbs.archlinux.org/viewtopic.php?id=39723

It's not issue, it's feature :) Trayer uses an inverted transparency value when compared to xmobar, for example. This means that a value of 0 means absolute transparency. For my xmonad config I use the value (255 - \<transparency of xmobar>). To simplify, I use the following command:

# /bin/bash
--transparent true --alpha $(expr 255 - $(cat ~/.config/xmobar/xmobarrc | grep alpha | cut -d = -f2 | cut -d ' ' -f2))