How to force kde to manage my notifications.

Hi Everybody Currently I am on Arch with …

  • KDE Plasma (Primary Desktop)
  • Hyprland
  • COSMIC Desktop

I use swaync as a notifiaction daemon in hyprland because ChatGPT said i can’t use the kde notification daemon on hyprland but due to that KDE Plasma also uses Swaync as its notification daemon but i don’t want that I want kde to manage notifications when i am in kde session and then swaync in hyprland.

I tried pkill swaync but that doesn’t do anything.
I also tried to kill swaync then restart plasmashell but that also did not do anything.

  • One more thing is that this issue persists even if I turn on my computer then select plasma on login manager without ever opening hyprland.

hey welcome @pradyumny okay to ask for help on arch too here.. butz keep in mind its not trhe same as EndeavourOS in all details.

Also .. nah do not believe everything holyAI is suggesting :wink:

The issue is with autostarting, and notification services running as services/daemons in the background.

Youi should check how swaync is started on your install seems its not with hyprland autostarter an is running as daemon or over xdg autostarting.

Swaync launches as a systemd dbus service. The only thing I found that worked was to remove the executable bit and add it back when I swapped to hyprland.

sudo chmod -x /usr/bin/swaync ## + to reverse.

If I remember correctly you can launch apps with uwsm on Hyprland, then it will allow you to manage them as a user via systemd.

For example in your config:

exec-once = uwsm app -- swaync

Then to disable/enable you run something like this.

systemctl --user enable swaync
systemctl --user disable swaync
systemctl --user start swaync
systemctl --user stop swaync

You could use that to then have swaync disabled/stopped when you are logged into KDE Plasma.

I think you may also need this line in your hyprland config, if you don’t already.
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

actaully i am on endeavour os and i wrote this post so that i can also post it on arch forums but then forgot to edit while asking here sorry.

simple don’t .. Arch Forum does not support EndeavourOS it against their rules.

Thanks!! I will never do it again. I did it because i thought endeavour os is just arch made easy so it should work.