https://github.com/andrelcmoreira/usb-rofi
management of usb devices with rofi and udev
https://github.com/andrelcmoreira/usb-rofi
bspwm dwm i3wm rofi udev usb
Last synced: 5 months ago
JSON representation
management of usb devices with rofi and udev
- Host: GitHub
- URL: https://github.com/andrelcmoreira/usb-rofi
- Owner: andrelcmoreira
- License: gpl-3.0
- Created: 2020-04-18T05:25:01.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2024-11-13T03:24:47.000Z (over 1 year ago)
- Last Synced: 2025-10-27T11:51:34.813Z (8 months ago)
- Topics: bspwm, dwm, i3wm, rofi, udev, usb
- Language: Shell
- Homepage:
- Size: 5.05 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
usb-rofi
========
[](https://github.com/carvalhudo/usb-rofi/actions)
### 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
```bash
$ 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:
```bash
bindsym $mod+u exec "qsudo /usr/bin/usb-rofi -u"
```
### Supported distros
So far, the `usb-rofi` was tested only in void-linux.
### Demo
