ollien / pswitch Goto Github PK
View Code? Open in Web Editor NEWA python script to switch all Pulse Audio inputs/outputs to a single source/sink.
License: MIT License
A python script to switch all Pulse Audio inputs/outputs to a single source/sink.
License: MIT License
As it stands, using pswitch o n
or pswitch i n
will use pulse's raw indexes. However, in some scenarios, it is desirable to use the indexes that pswitch generates when using pswitch o
or pswitch i
. A flag should be added to utilize the current behavior, but make the latter behavior default.
Note that this is the cause of
Traceback (most recent call last):
File "/home/nick/.local/bin/pswitch", line 11, in <module>
sys.exit(main())
File "/home/nick/.local/lib/python3.6/site-packages/pswitch/__main__.py", line 82, in main
sink_name = pulse.get_single_sink(sys.argv[2])["device_name"]
TypeError: 'NoneType' object is not subscriptable
If Spotify, for instance, has been paused for an extended period of time, and I switch from my speakers to my headphones, once I play my music again, the music will come out of the speakers. Investigation into how Pulse handles extended silence is needed.
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.