2026-11-18 17:27:56 +01:00
2026-08-28 15:04:25 +02:00
2026-11-12 17:09:09 +01:00
2026-08-23 18:09:11 +02:00
2026-11-12 17:09:09 +01:00
2026-11-12 17:09:09 +01:00
2026-04-30 17:33:42 +02:00
2026-11-12 17:09:09 +01:00

 █ █ █▀▀ █▄▄ █▀▀ █ █ ▄▀█ █▀█ █▀▄ ▄▄ ▀█▀ █ █ █
 █▄█ ▄▄█ █▄█ █▄█ █▄█ █▀█ █▀▄ █▄▀     █  █▄█ █

GitHub Stars Release CI

USBGuard TUI

A terminal UI for managing USB devices via usbguard.

USBGuard is a software framework for implementing a USB device authorization policy (allowlisting/blocklisting). It protects your system against rogue USB devices by scanning them and checking their parameters against a set of rules.

USBGuard-tui demo

Built with bubbletea & Golang!

Built on foam, which shares its theme, config and keybinds across compatible TUI applications.

This project is NOT affiliated with, endorsed by, or connected to "Red Hat, Inc" in any way. It is an unofficial, community-driven tool.

Features

  • List all connected USB devices with their current status
  • Allow, block, or reject devices: temporarily or permanently
  • Action overlay for quick device management
  • Filter devices by name with /
  • Command palette (ctrl+p) and a help overlay (?) listing every shortcut
  • Auto-refresh
  • Keyboard shortcuts for all actions (a/A, b/B, e/E, ...) & Mouse support
  • Configurable theme and keybinds, shared with other foam tools

Requirements

  • usbguard installed and the daemon running
  • Sufficient privileges to communicate with the usbguard daemon socket

Installation

Go install
go install github.com/anotherhadi/usbguard-tui@latest
Build from source
git clone https://github.com/anotherhadi/usbguard-tui
cd usbguard-tui
go build -o usbguard-tui ./cmd/usbguard-tui
NUR (Nix/NixOS)

Available via NUR, under the anotherhadi repo:

environment.systemPackages = [ nur.repos.anotherhadi.usbguard-tui ];

Usage

usbguard-tui

The device list refreshes automatically every 2 seconds.

Configuration

To change the defaults (theme, keybinds, refresh interval), put a ~/.config/usbguard-tui/config.yaml file; you only need the keys you want to change, the rest falls back to the defaults. Theme and keybinds shared with other foam tools can also go in ~/.config/foam/config.yaml. Run usbguard-tui --print-config to see the merged config, and see foam's defaults for the theme and the keys every foam tool shares.


S
Description
A terminal UI for managing USB devices via usbguard, with keybindings & mouse support. TUI built with golang & bubbletea.
Readme MIT
984 KiB
Languages
Go 100%