You are not logged in.

#1 2022-01-11 16:20:53

fz1
Member
Registered: 2019-12-14
Posts: 4

how to properly start notification tracking (dbus-monitor)?

command like:

dbus-monitor interface=org.freedesktop.Notifications | grep --line-buffered '^\s*string "Keybase"$' | while read; do play -q /usr/share/sounds/freedesktop/stereo/message.oga; done

how to add this command so that it works every time the system starts in the background (xfce4)?

Offline

#2 2022-01-11 17:53:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 16,431

Re: how to properly start notification tracking (dbus-monitor)?

https://wiki.archlinux.org/title/Xfce#Autostart however as this is technically something desktop agnostic I'd do an user service

Something like

[Unit]
Description=Play sound on notification

[Service]
Type=simple
ExecStart=$pathtoScriptcontainingcommand$

[Install]
WantedBy=default.target

Online

Board footer

Powered by FluxBB