Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.16 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.16 KB

usb-rofi

usb-rofi check

Overview

usb-rofi is a simple tool to help the management of USB flash drives using the 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.

Dependencies

  • udev
  • rofi
  • notify-send

Installation

$ make usb-rofi
$ sudo make install

Usage

After the installation, the usb-rofi is ready to detect and notify the user when a new flash drive is attached to the system. In order to improve the usability, it’s recommended 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"

Supported distros

So far, the usb-rofi was tested only in void-linux.

Demo

video