helm/os/arch/automount/bin/notify-mount.sh
2017-01-03 03:44:35 -05:00

7 lines
258 B
Bash
Executable file

#!/usr/bin/env bash
# A script run by devmon/udevil when a device is mounted or unmounted, notifying me.
DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send -a "devmon" "Device change" "$2"
aplay -N -q /usr/share/sounds/ding.wav &