wibian/polybar/95-usb.rules

5 lines
237 B
Plaintext

KERNEL=="sd*", ACTION=="add", ATTR{removable}=="1", \
RUN+="/home/user/.config/polybar/scripts/system-usb-udev.sh --update"
KERNEL=="sd*", ACTION=="remove", \
RUN+="/home/user/.config/polybar/scripts/system-usb-udev.sh --update"