-
Notifications
You must be signed in to change notification settings - Fork 341
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
Dunst dynamic geometry #816
Comments
Do you mean status bar? |
So what will be the correct approach to implement this on wayland ? Toggling the status bar while going fullscreen seems like bad practise. reading fullscreen status and adjust the geometry everytime ? I really want to implement this myself, until a proper fix is done |
If you want to implement it in wayland, you have two options:
Then if you can adjust geometry based on whether or not fullscreen is active. Again, there's no way to move the notification on top of where the old status bar was as far as I know. That's the most proper fix I can think of. We might accept this feature into dunst if there is enough demand |
Thanks for the solution, given that it doesn't work unless you trigger the sway full screen window manually, are these two events recorded differently in sway per this new protocol? |
No there's no way to distinguish the reason why it's been fullscreened. Why would you want to know? |
because it dosn't work if application has a full screen toggle mode, like fullscreen mode in Firefox or any other media player Generally Toggled by |
No they should be working the same. Are you using the latest sway master? |
Yeah, I'm on latest sway-version. On Firefox Support tab For me, it works only if I toggle fullscreen manually |
It works for me just fine. I tested |
yeah, something is wrong here, logs for both manual toggle, and app toggle are same ( both are detecting fullscreen switch ) Here are the debug logs for vlc, where a notification is already being displayed on screen on entering and exiting vlc using F
on entering and exiting vlc using mod+F ( sway bind )
but dunst is readjusting only in 2nd one on same sway version 1.5-b1b10415 (Feb 10 2021, branch 'master'). Same for MPV player too |
How are you detecting that dunst is readjusting? dunstrc
|
On pressing mod+f, notification is shifted up by height of status bar , while on pressing f in vlc, it remains at its original position |
That's very weird there should be no difference at all |
just to confirm it, this dynamic geometry is from your I guess I could try to debug on my end, any advise on where to look for ? |
No I didn't touch any geometry stuff in |
So how are you getting the notification to move when you fullscreen? |
lol nothing, It shifts on its own whenver I toggle full screen using mod+f. I just checked, its actually because of waybar, whenver I toggle full screen or hide/kill the bar from terminal, notification is shifted up automatically. Its llikely sway default behaviour I guess |
Oh that must be some waybar feature. Swaybar doesn't do that. Come to think of it, do you want the notification to move when your status bar disappears or not? |
yes, that's exactly what I want, when I toggle fullscreen using F key |
Okay I would suggest reporting an issue with waybar then, since dunst didn't implement that functionality |
yeah, this seems like a sway bug given protocol is detecting fullscreen in both cases. |
Is it possible for dunst to consider the bar height as a start for geometry purposes ? As in it should detect the bar and add the necessary margin itself. It could also consider full-screen state as bar with zero height
The text was updated successfully, but these errors were encountered: