Selenium-H / Animation-Tweaks

A GNOME Shell Extension to Tweak animations and customize them
GNU General Public License v3.0
66 stars 9 forks source link

Profiles for extension windows #36

Closed somepaulo closed 3 years ago

somepaulo commented 3 years ago

Is there a way of adding a profile for windows created by a specific GS extension?

I'm using ddterm (https://extensions.gnome.org/extension/3780/ddterm/ & https://github.com/amezin/gnome-shell-extension-ddterm) for a drop down terminal and I'd like to change its open/close animation to actually slide down on open and back up on close instead of Gnome's default window open animation. I don't know which type of window it is, and anyway, I would like to change only this extension's animation, not the whole class. I tried the Profiles option, but see no way of adding an extension there. So I guess this is a feature request since I didn't find a way to target that particular window.

I opened an issue with the ddterm developer, but he says he doesn't want to hack GS and sees no native way of changing the animation, So I was hoping your extension might help.

Selenium-H commented 3 years ago

The extension can animate windows created by GS extensions. However, currently there's no way to add them using extension preferences.

For ddterm extension.

Create a ddterm.desktop file in ~/.local/share/applications folder and add the following lines.

Name=Com.github.amezin.ddterm
Type=Application
Icon=utilities-terminal
NoDisplay=true

This will add Com.github.amezin.ddterm entry in application dialog box.

Open Animation Tweaks extension preferences and in Profiles -> Application profiles and add Com.github.amezin.ddterm to the list from application dialog box.

ddterm

Set animations and enable Application Profiles Switch.

This will add ddterm extension window to profile and manage it properly.

somepaulo commented 3 years ago

Thank you! Had to add [Desktop Entry] on top of the ddterm.desktop file, because I was getting errors saying that the 'key file didn't start with a group', and it wouldn't appear in the list of apps in Profiles settings. Strangely, it only affects the opening animation, while the closing one remains Gnome's default no matter what I choose in Animation Tweaks profile settings (see attached screengrab). ddterm Nevermind the glitches in the gif, they're screen grabber related.

Selenium-H commented 3 years ago

Had to add [Desktop Entry] on top of the ddterm.desktop file, because I was getting errors saying that the 'key file didn't start with a group', and it wouldn't appear in the list of apps in Profiles settings.

Yes. Sorry about that.

I think Closing Effects [ for Windows ] switch is not enabled. Please enable it from preferences -> Actions -> Close -> Closing Effects [ for Windows ].

If its enabled, try disabling and re-enabling the extension.

somepaulo commented 3 years ago

Yes! Closing Effects were disabled by default. Enabling them fixed the issue straight away with no reloads or restarts. Thank you!

amezin commented 3 years ago

Doesn't work on Wayland :(