While working on a script to suspend came with an idea of light indication

Follow

this result was generated by executing this code gitlab.com/rufferson/mntkbd with this shell command

for r in 1 2 3; do for i in 1 4 8 16 2 0; do sudo _b/mntkbd LEDS$i 1; done; sleep 1; done

sudo is needed to access evdev input device.

I knew I saw it already somewhere though, finally found - mastodon.social/@mntmn/1057535 , took me two days to find. Also no need in hidapi as it could simply be fed via /dev/hidraw. On the other hand I can do hidapi now, which I need for nitrokey hotp

Show thread
Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml