Enable dynamic transparency for top panel in Ubuntu 20.04

Missing Ubuntu 18.04 style dynamic top panel transparency? Here’s how to get this function in the Ubuntu 20.04 gnome shell:

Top panel transparency has been removed from Gnome 3.32, but you can regain functionality via the gnome shell extension of “Dynamic Panel Transparency”.

If there is no maximized window, the extension will fade out the top panel. You can also do the following in the extension settings:

  • Change the transition speed.
  • Sets the opacity of the custom panel.
  • Change the foreground color.
  • Settings for each app.

Enable dynamic transparency for top panel in Ubuntu 20.04

If this is your first time installing the gnome shell extension on Ubuntu 20.04, you may need to perform the first two steps to set up the GNOME Shell extension integration for your web browser.

1. Open Firefox or Google Chrome, https://extensions.gnome.org:

Click the link text “Click here to install the browser extension” and follow the popup to install the browser extension.

Shell browser extension

2. Then open the terminal with Ctrl + Alt + T and run the command.

sudo apt install chrome-gnome-shell

Enable dynamic transparency for top panel in Ubuntu 20.04

Go to 3. Dynamic panel transparency / On the page, click the toggle to install the extension.

Enable dynamic transparency for top panel in Ubuntu 20.04

4. Gnome 3.36 extensions are not currently updated. If you get an error, run the command in a terminal.

gedit ~/.local/share/gnome-shell/extensions/[email protected]/intellifade.js

Then in the popup text editor, find and change the following line:

let anchor_y = -Main.layoutManager.panelBox.get_anchor_point()[1];
let pivot_y = -Main.layoutManager.panelBox.get_pivot_point()[1];

// Adjust for bottom panel.
if (anchor_y > 0) {
this.panel_bounds.y = anchor_y;
this.panel_bounds.is_top = false;
} else if (pivot_y > 0) {
this.panel_bounds.y = pivot_y;
this.panel_bounds.is_top = false;
}

To:

let pivot_y = -Main.layoutManager.panelBox.get_pivot_point()[1];

// Adjust for bottom panel.
if (pivot_y > 0) {
this.panel_bounds.y = pivot_y;
this.panel_bounds.is_top = false;
}

Enable dynamic transparency for top panel in Ubuntu 20.04

Save the file. Then restart the Gnome Shell by pressing Alt + F2 on your keyboard, typing “r” “without quotes” and pressing Enter.

Finally, launch the “Extensions” utility, turn on the “Dynamic Panel Transparency” extension, change the settings and enjoy.

Enable dynamic transparency for top panel in Ubuntu 20.04

You can also run a command to adjust the opacity of the left dock panel (change code 0.2).

gsettings set org.gnome.shell.extensions.dash-to-dock background-opacity 0.2
Sidebar