I like for example the function you've got per window "above other windows" Is it also somehow possible to set transparency of a window?
I like for example the function you've got per window "above other windows" Is it also somehow possible to set transparency of a window?
From the Command Line
Ubuntu 20.04 should ship with a command line tool called
transset
which provides some useful options for setting the transparency of a window.In my opinion, the options that work best for quickly changing a window's transparency level are the
-p
flag (which targets the window under the cursor) and the--inc
/--dec
flags (which respectively increase and decrease the transparency value by a given amount).Note that the transparency value is a decimal value between 0 and 1.
To make the window more transparent:
To make the window more opaque:
Making it better...
You can make it easier to toggle by pairing the aforementioned
transset
commands withxbindkeys
. The following steps will makeAlt + MouseWheel UP
andAlt + MouseWheel DOWN
control the opacity of the window under the cursor.First, use
apt
(orapt-get
) to install the tool:Then create and edit the
xbindkeys
configuration:Add the following lines to
~/.xbindkeysrc
:Save and exit the configuration file and reload the xbindkeys configuration with:
Now you can use
Alt + MouseWheel UP/DOWN
to change the transparency of the window under the cursor.There appears to be a non-standardized Extended Window Manager hint named
_NET_WM_WINDOW_OPACITY
which can be modified with the xprop tool.Making it a desktop shortcut
~/bin/xprop_transparency.sh
~/.local/share/xpropTransparency.desktop
~
to full path ,/home/paui
in my casechmod u+x ~/bin/xprop_transparency.sh
,chmod u+x ~/.local/share/xpropTransparency.desktop
how to check if your WM supports this hint:
Its not clear weather this method should be used to verify if your window manager supports it but you could try the following in a terminal window:
xprop -root _NET_SUPPORTED | grep -o _NET_WM_WINDOW_OPACITY
if it appears in the results, then you can be pretty sure that your window manager supports this. If it doesn't appear, perhaps it works, perhaps not, you'll just have to try and see...
Resources:
Other software perhaps worth exploring