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

Notifications in center of active workspace #21

Open
sparr opened this issue Mar 11, 2019 · 6 comments
Open

Notifications in center of active workspace #21

sparr opened this issue Mar 11, 2019 · 6 comments

Comments

@sparr
Copy link

sparr commented Mar 11, 2019

I used your configs on Kubuntu and they worked great. Now I'm on Arch, with a lot less "usual" stuff installed behind the scenes, and some behaviors are different. Notably, notifications pop up in the middle of the active display/workspace instead of the bottom right corner of the display/workspace with the panel.

I've gone into KDE notification settings and explicitly selected that corner (and other locations) to no avail. I've tried adding , move absolute position 0 0 to the relevant for_window directives, still nothing.

@thursenfuerst
Copy link

thursenfuerst commented Mar 19, 2019

Were you able to resolve this? I'm also running this on arch.
I have a little workaround, although this may not be the best way, maybe avivace has an idea for a better solution.
for_window [class="plasmashell"] floating enable, border none, move right 320px, move down 180px, no_focus

@subdavis
Copy link

I've found the default notification server to be pretty wonky, so I replaced it with twmnd to much more reliable effect.

Obviously this doesn't help you debug your issue, but there are alternatives if you aren't especially attached to the KDE default.

@mreishus
Copy link

mreishus commented Jun 5, 2019

For me, it's like a race condition. When I log in, it's about 50/50 if the notifications appear in the center or in the top right. I'm not sure of the cause, but my current workaround is to log out and in again until they appear in the top right.

@DuongTyler
Copy link

I think I've figured it out. It has to do with the for_window [title="Plasma -- Desktop"] kill line.
What it seems like is that when the notification server or whatever fails to load before the desktop window is killed, the notifications default to the center of the screen.

If I don't kill the desktop and I make it float, the notifications follow the top right corner of the desktop window.

Now we have to figure out how to delay the killing of the desktop, which should be easy.
Is there a way to kill a window by title? If so then we could just write a script with a delay and append it to the i3 config.

I'll update this thread with more information once I find a fix

@DuongTyler
Copy link

DuongTyler commented Dec 15, 2019

Alright. I think I fixed it :)
Add this line to the end of your i3 config file:
exec "sleep 5;wmctrl -c Plasma"
and remove the for_window[...] kill line
This should kill the desktop 5 seconds after you log on. You can adjust this to however short you can get it. You can set a wallpaper so it looks like a proper splash screen.

@matejdro
Copy link

Just a note because I spent way too long on figuring this out:

If you have multiple monitors, you have to kill plasma multiple times, for every monitor. For example, my command for two monitors: exec "sleep 5;wmctrl -c Plasma;wmctrl -c Plasma"

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

No branches or pull requests

7 participants