diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-05-11 23:40:55 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-05-11 23:40:55 +0200 |
commit | d2f523b031601a031da65643c114bcec5165922f (patch) | |
tree | a153c7aa5d6ab7cc36591b4dccefdf4caf8f5e34 | |
parent | 2a99ee0e7fd8c32eeb08be0d6ef273259390da41 (diff) | |
download | scripts-d2f523b031601a031da65643c114bcec5165922f.tar.gz scripts-d2f523b031601a031da65643c114bcec5165922f.tar.bz2 scripts-d2f523b031601a031da65643c114bcec5165922f.zip |
update
-rwxr-xr-x | usb-notify.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/usb-notify.sh b/usb-notify.sh deleted file mode 100755 index 9bb5091..0000000 --- a/usb-notify.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -export XAUTHORITY=/home/philip/.Xauthority -export DISPLAY=:0 -export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" - -busname="/dev/$1"; -devpath=$2; - -deviceDetails=$(lsusb -D ${busname} 2>/dev/null | head -n 1) - -deviceName=$(cut -d " " -f4- <<< ${deviceDetails}) -# deviceID=$(cut -d " " -f-3 <<< ${deviceDetails}) - -# Slim notification -# /usr/bin/notify-send -a "USB-notify" -c "device.change" "$deviceName" "$busname" -r 1337 - -# Full notification -# /usr/bin/notify-send -a "USB-notify" -c "device.change" "$deviceName" "$deviceID \n $busname \n $devpath" -r 1337 - -# dunstify is like notify-send but specific to dunst -# dunstify "USB change" -dunstify -u normal -t 1000 -r 9000 -i media-removable-symbolic "USB $deviceDetails" |