notify-usb

Crates.ionotify-usb
lib.rsnotify-usb
version0.2.4
created_at2025-10-16 06:52:28.667662+00
updated_at2025-10-25 05:32:13.323338+00
descriptionNotify when a USB device is attached or detached
homepage
repositoryhttps://github.com/DebNation/notify-usb
max_upload_size
id1885539
size133,799
Debiprasad Das (DebNation)

documentation

README

Motivation(why this exists):

I have seen gnome/kde/cinnamon desktop to show notification and play a sound tone on USB device attach or detach event, but that is not present if you are using a Window Manager, so it is made for Window Manager/Compositor users who wants a notification with sound cue for USB connections.

Requirements :

  • dunst
  • mpv (optional if you want sound cue)

Installation :

cargo install notify-usb

Run it on startup(eg: hyprland) :

exec-once = ~/.cargo/bin/notify-usb

Customization :

  • use --no-sound flag if you don't want to sound

You can customize the sound(tone) that this programs plays, by replacing these files

  • ~/.local/share/notify-usb/connect.mp3
  • ~/.local/share/notify-usb/disconnect.mp3
Commit count: 0

cargo fmt