Negate Window on Super+I

UUID: rnbdsh@negateWindow
Last edited:
11 months ago 2019-12-19, 15:57
Last commit: [d31e66ca] rnbdsh@negateWindow: add support for 4.4

A Cinnamon extension that allows to negate the window-color when you press super+i.

README

Close

negateWindow

Used as a template for Cinnamon-plugin: 0dyseus@CinnamonTweaks

Code for inversion shader: https://github.com/maiself/gnome-shell-extension-invert-color;

Original idea: gnome invert window extention; https://extensions.gnome.org/extension/1041/invert-window-color/

Coded from 2AM - 5AM, so don't expect too much, but it works

Log In To Comment!

5 Comments

Adolfo Correa
Adolfo Correa-3 months ago
Best extension ever, very useful, essential for the people that like the dark mode. With this extension we don't need to wait until each of our programs implements the dark mode, we only have to invert the colors of the windows with Super + I. I'm using it with LM 19.2 Cinnamon 4.2.4 and works fine. No problems until now
Carol Nunes
Carol Nunes-3 months ago
On Linux Mint 20 Cinnamon 4.6.6, there is a warning when you try to enable the extension: """Extension rnbdsh@negateWindow is not compatible with current version of cinnamon. Using it may break your system. Load anyway?""" . I gave up for now. I'll try it later
Andy Herrman
Andy Herrman-10 months ago
The extension is currently broken for me: [rnbdsh@negateWindow]: Type name Gjs_InvertWindowEffect is already registered [rnbdsh@negateWindow]: Error importing extension.js from rnbdsh@negateWindow I was able to fix it by editing: ~/.local/share/cinnamon/extensions/rnbdsh@negateWindow/extension.js and changing the `name` field on line 18 to something more unique. Changing the name property on the InvertWindowEffect to something else appears to fix it for me.
macarthur628
macarthur628-1 year ago
You can also add a custom key binding to bind "Super+I" to execute "xcalib -i -a" command.
al-mission-2016
al-mission-2016-2 years ago
Please update metadata.json file to make it compatible with Cinnamon 3.6, i.e. add string "3.6" in the list. After that this extension works just fine with latest Cinnamon.