Registered Member
|
Hello,
I'm using XFCE with KWin and would like to use the glide and fade animations, but disable them for the XFCE notifications from xfce4-notifyd. Is there a way to set this? How? Thanks.
Last edited by bloch on Tue Aug 19, 2014 3:12 am, edited 1 time in total.
|
|
Not from a user POV - the XFCE notification could set the _KDE_SLIDE property to slide into the desktop like plasma notifications.
The fade-in effect is a scripted effect (so you could edit this to ignore windows with a certain class - if the notification provides suitable NETWM hints) Glide hasn't been changed to scripting so far, so you'd have to edit the effects code (and recompile it) - kwin/effects/glide/glide.cpp:228
You can fetch the window class (iff(!) the notification sets it) using "xprop" on that window. |
Registered Member
|
Fade is good enough, a script seems to be easier than having to compile - at least a little easier, I don't understand it yet
Is this a good starting point:? http://rohanprabhu.com/kwin-scripting-tutorial/ Or do you have better hints? Or is scripting for someone here so easy, he (or she) can just drop the script for disabling fade for such windows? xprop for XFCE notifications looks good:
|
Registered Member
|
OK, I'm one step further. I discovered the script file, it's /usr/share/apps/kwin/effects/kwin4_effect_fade/contents/code/main.js.
There I changed
to
saved the file, restarted KWin by "kwin --replace", and tested a notification: It's still faded. Does anyone know what's wrong? PS: Of course I also tried if (w.windowClass == "xfce4-notifyd") ... and if (w.windowClass == "Xfce4-notifyd"). |
|
try with both elements lowercased (transition happens for -now rather legacy- compatibility w/ qt3 clients)
|
Registered Member
|
Yes that works! Thank you very much! For the record or it is helpful for someone else: the whole file is now:
|
Registered Member
|
For the record: With Plasma5, that doesn't work anymore.
What works instead, is: Make a windowrule for Xfce4-notifyd and force windowtyp menubar. That doesn't make complete sense, but works anyway. No fade animation for xfce4-notifyd that way. |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft