9 export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u $user)/bus"
13 devpath="/dev/bus/usb/$(printf %03d $2)/$(printf %03d $3)"
14 manname="$(lsusb -D $devpath | grep 'iManufacturer' | sed 's/\s*iManufacturer\s*[0-9]\s*//')"
15 devname="$(lsusb -D $devpath | grep 'iProduct' | sed 's/\s*iProduct\s*[0-9]\s*//')"
16 su pinosaur -c "notify-send -i '' 'USB inserted: $manname $devname'"
18 r) su pinosaur -c "notify-send -i '' 'USB ejected'";;