Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Using xdotool to clear notifications, particularly those of notify-send, handled by lxqt-notificationd
Tags notifications, wmctrl, xdotool
Code:
xdotool search --name "lxqt-notificationd" windowkill
Code:
notify-send "bogus" "$(ls /usr/bin)" & xprop
The idea is to have that associated with "esc" or some other key command, so to clear an eventual excess or notifications without requiring to close them individually, which is really a PITA with the ones of lxqt-notificationd. Maybe combined with killing aosd_cat and other analog stuff.
I used to achieve the same by killing the daemon itself, having also a daemon-script that would respawn the actual notification daemon not long after, but apparently for some reason (systemd, I suspect, but maybe "xdg-portal" stuff) mate-notification-daemon somehow comes up during the interval, without my direct/conscious/deliberate request. I've also created a fake-script that has mate-notification-daemon as a filename, but is really a link to lxqt-nd, left on a $PATH position ahead of the actual one. Just in case. Kind of ridiculous to need to do that, but that's the state of things, apparently.
The xdotool windowkill solution is not altogether uncanny and/or ingenious, counter-intuitive, but for some reason I couldn't find anyone suggesting anything along those lines. Instead there were suggestions of tweaking how long the notifications themselves last spontaneously, and some xdotool/wmctrl trickery sending alt+f4 or other commands directly to the windows, but that wouldn't work for many notification types, I suspect. I'm surprised that wmctrl apparently cannot do the same with this kind of window in particular, but maybe my command is just "wrong," although it works for other windows.
Total Comments 0