8

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?

muru
  • 207,228
cheesits456
  • 1,354

4 Answers4

14

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

  1. Press Alt + F2, type ccsm on field to launch Compiz Setting.

  2. On Accessibility section, click Opacity Brightness & Saturation plugin.

  3. On the current tab, expand Window Specific Settings.

enter image description here

  1. Click New button, then click + and Edit Match window will be appear.

enter image description here

  1. 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.

enter image description here

  1. 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.

enter image description here

  1. Click Close then, as you can see there are new defined specific settings.

enter image description here

Before effect

enter image description here

After effect

enter image description here

Liso
  • 15,677
3

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.

0

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:

my desktop with transparency 155

karel
  • 122,292
  • 133
  • 301
  • 332
0

Landed here because I wanted to make a window transparent on Ubuntu using a shortcut. This solved it: https://gist.github.com/ikbelkirasan/558a64b84bcdcafd5946e94e6a6feb91