cohoe / maxime Goto Github PK
View Code? Open in Web Editor NEWBluetooth connection handler for Fedora/PulseAudio
License: Other
Bluetooth connection handler for Fedora/PulseAudio
License: Other
pkill -f pulseaudio; rm -rf ~/.config/pulse
When wireless disconnects, the stream is muted to prevent blasting unwanted sounds out of speakers. However this means you have to manually unmute the headset which is obnoxious.
for sink-input in pacmd list-sink-inputs
:
pacmd move-sink-input $sink-input.id $sink.id
Bose QuietComfort 35 occasionally gets prefixed with "LE-" which leads to infinite waits. Perhaps search for devices based on .contains() or .endswith()?
grant@seefra ~ » maxime.py --route wireless
05/18/2018 23:21:50 INFO: Moving stream of "LADSPA Stream" to "LADSPA Plugin Multiband EQ on Bose QuietComfort 35"
Traceback (most recent call last):
File "/usr/local/bin/maxime.py", line 898, in <module>
main()
File "/usr/local/bin/maxime.py", line 879, in main
max.route(pulse)
File "/usr/local/bin/maxime.py", line 348, in route
pulse.activate_wireless(conn_event=False)
File "/usr/local/bin/maxime.py", line 692, in activate_wireless
self._move_output(self.ladspa_device, target_device, DBusHelper.ICON_WIRELESS)
File "/usr/local/bin/maxime.py", line 816, in _move_output
self.pulse_conn.sink_input_move(source.index, destination.index)
File "/usr/lib/python2.7/site-packages/pulsectl/pulsectl.py", line 556, in _wrapper
except c.pa.CallError as err: raise PulseOperationInvalid(err.args[-1])
File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
self.gen.next()
File "/usr/lib/python2.7/site-packages/pulsectl/pulsectl.py", line 452, in _pulse_op_cb
if not self._actions[act_id]: raise PulseOperationFailed(act_id)
pulsectl.pulsectl.PulseOperationFailed: 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.