Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Moving bubbles #40

Open
maralorn opened this issue May 13, 2018 · 3 comments
Open

Feature request: Moving bubbles #40

maralorn opened this issue May 13, 2018 · 3 comments

Comments

@maralorn
Copy link

Hey, I love eventd. Really awesome!

Humans are evolutionary trained to react to movement in their peripheral vision, after all it might be a tiger.
For this reason I really want my notification bubbles to slide in (or something) I don't care much what movement exactly, at least some of them. It is much stronger in getting attention, especially on a big screen. This should of course be optional per action.

Do you think, this would be doable?

I totally understand if you think this is outside the intended scope of the project.

@sardemff7
Copy link
Owner

Hi, thanks for loving eventd :-)

It is totally doable, but I don’t think it belongs to the nd plugin.
Abstracting the window system is already a bit hard, abstracting animation code would be even trickier.

I thought about doing the abstraction in a second process (for X11 and Windows), a Wayland compositor that would handle placement and animations and some stuff like that, but that would be a really big amount of work.

However, a Wayland compositor can do that already (see the video on eventd’s website webm mp4) and I’m sure an X11 compositor can do that kind of animations too, like Compiz can. But maybe standalone compositors are not all able to do that.

@maralorn
Copy link
Author

Okay, do I understand correctly, that you think this should be done by an external program?
I actually have some working bash code which runs xdotool in a loop to slide a dunst notification bubble.
It's a bad solution but it works surprisingly well.
Writing something like this has 3 obstacles:

  • knowing from where to where to slide
  • get informed, when a new window is created and the animation should start
  • doing all of this without using unreasonable amounts of cpu.

Of course it would be awesome, if there where an existing X11 compositor, which can do it.

@sardemff7
Copy link
Owner

For eventd, it is easier to delegate such a feature to the compositor, yes. Under Windows it might not be possible but I don’t mind for now, I’m pretty sure I don’t have that many Windows users. :-)
Under Wayland, it’s very easy (as it is demonstrated), though the direction issue is not handled for now.
Under X11, it is common to have either a standalone compositor (like compton) or a built-in (the WM) compositor (like Compiz), and it usually handles these features.
Though under X11, any client can do what you want, you’ll just have to write a tiny daemon monitoring windows creation, checking the PID to match eventd’s and then move the bubble around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants