Improved script:
Code:
#!/bin/bash
#use command - xinput - to find id of mouse who's scroll wheel you want to use
mouseID=" USB OPTICAL MOUSE"
player="Dining Room"
IP="127.0.0.1 9090"
#Button inactive after press registered - tenths of sec
locktime=10
https://youtu.be/aqKPm3oGNSY
Code:
#!/bin/bash
#use command - xinput - to find id of mouse who's scroll wheel you want to use
mouseID=" USB OPTICAL MOUSE"
player="Dining Room"
IP="127.0.0.1 9090"
#Button inactive after press registered - tenths of sec
loc
Wiredcharlie wrote:
> From what I can see that is button/keypress only.
It uses python-evdev, which is a interface to evdev and reports all
device events (X uses evdev as well btw). Haven't tested it with
inputexec, but this works:
Code:
#!/usr/bin/env python3
impor
Roland0 wrote:
> 'This' (https://www.nexus0.net/pub/documents/LMS/lms-inputexec/) might
> be of interest.
>From what I can see that is button/keypress only. The point (for me) is
to have the rotation of a traditional volume knob that properly
interfaces with the LMS volume setting. Most of the
Wiredcharlie wrote:
> Here is a shell script that takes input from the mouse scroll wheel to
> change the volume of the named local player. I wrote it with a view to
> hacking a Poundland mouse plus rotary encoder to put a real volume knob
> on my LMS / Squeezebox computer. I would welcome any c
Here is a shell script that takes input from the mouse scroll wheel to
change the volume of the named local player. I wrote it with a view to
hacking a Poundland mouse plus rotary encoder to put a real volume knob
on my LMS / Squeezebox computer. I would welcome any comments or
suggestions.
Cod