Skip to content

mutablevar/notify-usb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Play sound when a USB device attached or detached (keyboard, mouse, pendrive etc)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages