-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reload Sound from command line/script #179
Comments
What does that even mean? Switch what? |
I'm using |
@hasufell , I mean this, via shell script or command line...
When I switch between those two card profiles, pnmixer doesn't detects the change, and I need reload it manually, or via script with...
If there was an option to reload it, for example a "--reload" parameter, or if the change of the audio output was auto-detected, it would be great! |
^ Your code above seems more than enough for me! |
@stratosjack , the point is that I know that pulseudio support "needs to be implemented from scratch and will likely not happen", and the "Reload Sound" menu entry functionality is already implemented and works. That's why I'd just like to have this as an option from CL/script instead of clicking. |
I don't really know what that means. You want to spawn a second pnmixer instance? Otherwise you are asking for a non-trivial dbus interface.
This is too vague to be implementable. How would it work? |
@hasufell |
Well, as stated above, there are only two possibilities:
Maybe we could also hijack unix signaly, but they are asynchronous too and need some odd hacks to make work with gtk+ via pipes or something, see http://askra.de/software/gtk-signals/x2992.html if you want to give that a shot. Then you could do something like |
Hi, pnmixer is great, but it'd be even better if it were possible reload sound from scripts and terminal commands. Many Openbox/Tint2 users use scripts to control it's features, including audio. I, for example, use scripts to switch between headphones (HDMI) and speakers (internal audio), and have to kill and restart PNMixer every time I do that.
The text was updated successfully, but these errors were encountered: