Coder Social home page Coder Social logo

maxime's People

Contributors

cohoe avatar

Stargazers

 avatar

Watchers

 avatar  avatar

maxime's Issues

Add --reset

pkill -f pulseaudio; rm -rf ~/.config/pulse

Switching to headset should unmute

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.

Device names occasionally change

Bose QuietComfort 35 occasionally gets prefixed with "LE-" which leads to infinite waits. Perhaps search for devices based on .contains() or .endswith()?

Routing to the existing sink causes error

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.