emiapwil / glassy-gnome

To bring opacity features to gnome windows.
GNU General Public License v2.0
63 stars 9 forks source link

Preset modes and quick switching between them #16

Open koponomarenko opened 5 years ago

koponomarenko commented 5 years ago

First of all, thank you very much for this nice extension! I am loving it! :smiley:

Now to the question. Is it possible to make at least two presets, so I can quickly toggle between then with a few dedicated shortcuts?

The thing is I think that I don't need this opacity effect all the time but sometimes it is very useful to see what is happening in the background. Would be nice to have a shortcut for "turn off" this opacity effect, and a shortcut for turn it on to a preset value (maybe even the last one set).

Thanks again!

emiapwil commented 5 years ago

Hi @koponomarenko

Sorry for the late reply. Modes are actually a good idea.

While I cannot guarantee how fast that can be done, there is a workaround.

See here and here in the schema file. You can temporarily enable/disable the extension globally or for a specific window using shortcuts.

So to see things in the background, you can1) switch to the background window, 2) disable the extension for the specific window, and 3) switch back to the foreground.

To enable these two shortcuts, you can use gsettings (see here).

emiapwil commented 5 years ago

These two shortcuts don't really "disable" the extension but are used when calculating the transparency. Thus, turning off/on will keep the current transparency for a window (if I remember correctly).