usb-rofi is a simple tool to help the management of USB flash drives using
rofi app launcher and udev. It's composed by the udev rule usb-rofi.rules
and the script usb-rofi
. The rule is responsible for trigger the script when
a new device is attached to the system, which in turn will prompt the user for
the action to be performed. The main usage for this tool is for tiling window
managers such as i3, dmw, bspwm, etc.
- udev
- rofi
- notify-send
$ make usb-rofi
$ sudo make install
After the installation, the usb-rofi
is ready to detect and notify the user
when a new flash drive is attached to the system. To improve the usability,
you can bind a hotkey to umount devices easily. In my case (i3), would
be something like this:
bindsym $mod+u exec "qsudo /usr/bin/usb-rofi -u"
So far, the usb-rofi
was tested only in void-linux and debian.