An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

usb-rofi
========

[![usb-rofi check](https://github.com/carvalhudo/usb-rofi/workflows/usb-rofi%20check/badge.svg)](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

![video](resources/.video.gif)