Is it possible for windows to be transparent by default in Unity 7.4 on Ubuntu 16.04 LTS? I used the opacity tool in CompizConfig Settings Manager to set up a keyboard shortcut, but is there a way to have windows be transparent by default?
4 Answers
NOTE: For those who interested on getting transparent window, you might want to install Compiz Settings and its plugins:
sudo apt install compizconfig-settings-manager compiz-plugins
Press Alt + F2, type
ccsmon field to launch Compiz Setting.On Accessibility section, click Opacity Brightness & Saturation plugin.
On the current tab, expand Window Specific Settings.
- Click New button, then click + and Edit Match window will be appear.
- On Type field, change value from "Window Class" to "Window Type". Then type "Normal" on Value field. Don't forget to click Add when you're done.
- Back to edit window, you have to set your preferred opacity values, you can set the values from 0 to 100. Less values make the window more transparent, we'll use 80 for example.
- Click Close then, as you can see there are new defined specific settings.
Before effect
After effect
Does not work any more on Ubuntu 18.04 and later, because ccsm works only on Unity desktop environment, and latest versions switched to GNOME.
As this site says, you can enter this line on your terminal:
xprop -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY `printf 0x%x $((0xFFFFFFFF * 80 / 100))`
Of course you can replace 80 in the command with whatever value you want, in percentage.
Then the cursor will become a cross, and you can click a window to change its opacity.
NOTE: You have to run this command for every window you have open or you wish to apply that opacity setting to. Once a window is clicked, the cursor becomes back normal.
- 31
- 1
I managed to achieve global window transparency in Ubuntu 24.04 without using compiz or xprop solely by installing the Blur my Shell extension via the GNOME Extension Manager. In the Blur my Shell settings, go to the Applications tab, set Application blur with an Opacity value lower than 255 (to your taste).
My desktop with transparency 155:
- 122,292
- 133
- 301
- 332
Landed here because I wanted to make a window transparent on Ubuntu using a shortcut. This solved it: https://gist.github.com/ikbelkirasan/558a64b84bcdcafd5946e94e6a6feb91
- 123







