You are not logged in.

#1 2018-09-20 13:36:54

greizgh
Member
Registered: 2015-01-16
Posts: 4

USBautomator

Hello community,

I just released a small tool to trigger a command when a USB device is plugged or unplugged.

The main use case is to change my keyboard layout and revert back to default when I plug/unplug my keyboard.
Recently, I made configuration more flexible so that one can match any udev device: you could trigger a backup when a disk is connected for example.
I know you can achieve the same feature with udev rules, but I wanted a non-privileged user solution.

This is mainly a "scratch your own itch" kind of tool, but it might be useful to others.

The code is on github
There is also an AUR package

Let me know if it is of some use to you. Feedback is welcome.

Offline

#2 2018-09-20 22:59:16

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: USBautomator

Nice! I'm going to give this a go to attach/detach USB disk to one of my KVM guests.

Offline

Board footer

Powered by FluxBB