So my answer was no and unlike KDE/KWin (or Mate with Compiz) Cinnamon/Muffin doesn't expose any user facing settings to force the Window manager to automatically set a specific opacity for certain types of window, albeit you can set it to adjust opacity by mouse-scrolling over the titlebar. But I thought it must be possible to do this with a bit of bash scripting...and it is...
So the script below can be saved into
~/bin
/ or ~/.local/bin
, made executable and then added as a start-up application via the startup applications GUI. As written focused-maximised or fullscreen windows are always fully opaque, focused windowed apps are 95% opaque and non focused apps are 70% opaque. You can amend this to suit your preferences.It also excludes a few types of application window (specifically Docks) and includes a short list of excluded applications which are always fully opaque - you can edit these exclude lists to suit your needs.
The script requires xdotool and wmctrl to be available -
apt install xdotool wmctrl
I'm not the most elegant scripter so any suggestions for improvement are welcome.
Changelog -
15/3/19 - V0.2 - Windows that share a process ID with the focused window are grouped and can have an opacity set separately to other unfocused windows.
20/3/19 - V0.3 - Send any errors thrown by xdotool & xprop to /dev/null if there isn't an focused window & when the window type errors xprop (some splash banners) to elimate .xsession-errors spam.
20/4/19 - V0.4 - Fix method of detecting existing instance of running script
Updated Install Instructions - The script is now hosted on Github at https://github.com/smurphos/nemo_action ... on_scripts
Clone the repo
Code: Select all
git clone https://github.com/smurphos/nemo_actions_and_cinnamon_script
Code: Select all
mkdir ~/.local/bin
Code: Select all
cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/opacify_windows.sh ~/.local/bin
Code: Select all
cp -r ./nemo_actions_and_cinnamon_scripts/.config/autostart/opacify_windows.desktop ~/.config/autostart
Code: Select all
apt install xdotool wmctrl
Code: Select all
xdg-open ~/.local/bin/opacify_windows.sh