https://bugs.kde.org/show_bug.cgi?id=525124
Bug ID: 525124
Summary: Feature request: Ability to switch between predefined
audio outputs with key-binds
Classification: Plasma
Product: plasmashell
Version First 6.7.4
Reported In:
Platform: CachyOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Audio in general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: 1.0
Created attachment 195702
--> https://bugs.kde.org/attachment.cgi?id=195702&action=edit
List of my audio devices
DESCRIPTION
Hello, due to my job requiring me to quickly switch between audio output
interfaces and since Plasma does not currently have a way to do this over
keybindings, I had to create a script to automate this process because the
current way of doing via GUI has to do with a menu that has too many options
with confusing names.
The original problem I'm trying to solve:
I need to switch between headphones and speakers during the day. On my system,
this has to be done via a sub-menu in the audio tab in plasma settings/system
tray (see attachment Audio-list.png).
Due to very confusing names in the list, and the amount of options, I created
the a script to help me switch between the two options I need.
The script will be listed in additional information.
STEPS TO REPRODUCE
1. Try to switch between different audio outputs via graphical interface.
OBSERVED RESULT
You have to find the correct option in the list since it cannot be easily
shortened and you have to click at least 4 times if you use the system tray
widget to get the same result.
EXPECTED RESULT
It would be amazing if plasma had a native option to toggle between 2 or more
predefined audio devices using a key-bind without having to use a long list of
devices in the menu. Eliminating the need for a script.
Maybe a tree-view in the list to enable or disable said option to shorten the
list could be helpful, making it disappear in the menu in the system tray
screen.
SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window): CachyOS Linux
KDE Plasma Version: 6.7.4
KDE Frameworks Version: 6.29.0
Qt Version: 6.11.2
ADDITIONAL INFORMATION
Script mentioned:
#!/bin/bash
CARD="alsa_card.pci-0000_2f_00.4"
ACTIVE_PROFILE=$(pactl list cards \
| awk -v card="$CARD" '
$0 ~ "Name: "card {found=1}
found && /Active Profile:/ {print $3; exit}
')
if [[ "$ACTIVE_PROFILE" == "output:analog-stereo" ]]; then
pactl set-card-profile "$CARD" output:iec958-stereo
elif [[ "$ACTIVE_PROFILE" == "output:iec958-stereo" ]]; then
pactl set-card-profile "$CARD" output:analog-stereo
else
notify-send "Áudio" "Perfil desconhecido: $ACTIVE_PROFILE"
fi
--
You are receiving this mail because:
You are watching all bug changes.