We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How about to add an function to switch already playing streams? I've wrote something like that on pacmd:
pacmd
touch audio_state SPEAKER="0 analog-output-speaker" SPEAKER_SH="DEVICE_NAME" HEADPHONES="1 analog-output-headphones" HEADPHONES_SH="DEVICE_NAME" if grep -q speaker "audio_state"; then pactl set-sink-port $HEADPHONES OUTPUT=$HEADPHONES_SH echo "headphones" > audio_state timeout 2 kdialog --msgbox "Switched to external audio device" else pactl set-sink-port $SPEAKER OUTPUT=$SPEAKER_SH echo "speaker" > audio_state timeout 2 kdialog --msgbox "Switched to headphones" fi # Set default pacmd set-default-sink $OUTPUT >/dev/null 2>&1 # Switch playing streams to default device for playing in $(pacmd list-sink-inputs | awk '$1 == "index:" {print $2}') do pacmd move-sink-input $playing $OUTPUT >/dev/null 2>&1 done
The text was updated successfully, but these errors were encountered:
Seems like duplicate of #5 , and seems like obsolete with the PipeWire behavior.
Sorry, something went wrong.
No branches or pull requests
How about to add an function to switch already playing streams? I've wrote something like that on
pacmd
:The text was updated successfully, but these errors were encountered: