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.
For those who don't like notify-send exhibiting its title ("notify-send") on LXQT
(Or anywhere using lxqt-notificationd, like in otherwise pure Openbox, which happens to be my case)
The "proper" way would be to have it always explicitly setting something else with "-a," but apparently one can emulate the title-less implementation of other notification daemons with an wrap-around script like this:
And then leave the "default" use without expliciting "-a" untouched
The script should be named "notify-send" and be placed somewhere no $PATH with a higher priority than /usr/bin.
Apparently the "${@}" needs the double quotes there, otherwise there will be some errors.
Maybe with "&&" and "||" instead of the longer if/fi construct it can be an one-liner and perhaps some milliseconds faster, although I'm not sure on the latter.
The "proper" way would be to have it always explicitly setting something else with "-a," but apparently one can emulate the title-less implementation of other notification daemons with an wrap-around script like this:
Code:
#!/bin/bash if [[ ! "${@}" =~ "-a " ]] ; then /usr/bin/notify-send -a "" "${@}" else /usr/bin/notify-send "${@}" fi
The script should be named "notify-send" and be placed somewhere no $PATH with a higher priority than /usr/bin.
Apparently the "${@}" needs the double quotes there, otherwise there will be some errors.
Maybe with "&&" and "||" instead of the longer if/fi construct it can be an one-liner and perhaps some milliseconds faster, although I'm not sure on the latter.
Total Comments 0