Re: [SlimDevices: Unix] Knob - Volume - mouse scroll hack

2020-02-01 Thread Wiredcharlie
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

Re: [SlimDevices: Unix] Knob - Volume - mouse scroll hack

2019-12-22 Thread Wiredcharlie
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

Re: [SlimDevices: Unix] Knob - Volume - mouse scroll hack

2019-11-17 Thread Roland0
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

Re: [SlimDevices: Unix] Knob - Volume - mouse scroll hack

2019-11-17 Thread Wiredcharlie
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

Re: [SlimDevices: Unix] Knob - Volume - mouse scroll hack

2019-11-16 Thread Roland0
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

[SlimDevices: Unix] Knob - Volume - mouse scroll hack

2019-11-16 Thread Wiredcharlie
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