Skip to content

A gnome-shell extension to set overview and panel background color to wallpaper's primary color

License

Notifications You must be signed in to change notification settings

aunetx/dominant-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dominant-color

A gnome-shell extension to set overview and panel background color to wallpaper's primary color.

NB: this extension is currently only made as a design test, most importantly for https://gitlab.gnome.org/Teams/Design/whiteboards/-/issues/21. It contains bugs, but fixing side issues is for the moment not intended, as I try to adjust the design for the best before removing bugs and pushing it to https://extensions.gnome.org.

Installation

You will need python3 along with python's PIL, which you can install with pip install pillow.

You can install the extension locally with:

make install

You can build a pkg with

make pkg

Don't forget to reload the shell after installing, and to enable the extension.

Screenshots

Normal wallpaper 1:

Capture d’écran de 2021-12-02 09-36-02

Normal wallpaper 2:

Capture d’écran de 2021-12-02 09-36-16

Very bright wallpaper:

Capture d’écran de 2021-12-02 09-36-26

Very dark wallpaper:

Capture d’écran de 2021-12-02 09-36-32

Customization

You can test changing the colour settings by changing the transform_color in src/extension.js.

It currently keeps the same hue (h = hue), makes the lightness quite dark (l = Math.max(0.12, Math.min(0.2, 0.15 + (lightness - 0.4) / 5)), so it keeps it between 0.12 and 0.20, and tries to adjust it to still have darker wallpaper making darker grey), and remove some saturation (s = saturation / 2.7).

The best thing to tweak here probably is for the saturation, and maybe adjusting it with the lightness too would be good (for example s = saturation / ((7*lightness) + 0.1) is quite good, but has some problems with very dark/light wallpapers.

About

A gnome-shell extension to set overview and panel background color to wallpaper's primary color

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published