Revert "Make fixing the F13 AMD audio input just a thing that happens"

This reverts commit c6cd49a0aa.
This commit is contained in:
David Heinemeier Hansson
2025-08-31 15:35:43 +02:00
parent 434265cea2
commit a5814e0bfd
5 changed files with 13 additions and 10 deletions

View File

@@ -361,9 +361,10 @@ show_update_config_menu() {
}
show_update_hardware_menu() {
case $(menu "Restart" "󱚾 Wi-Fi\n󰂯 Bluetooth") in
case $(menu "Restart" "󱚾 Wi-Fi\n󰂯 Bluetooth\n AMD Audio (F13)") in
*Wi-Fi*) present_terminal omarchy-restart-wifi ;;
*Bluetooth*) present_terminal omarchy-restart-bluetooth ;;
*Audio*) present_terminal omarchy-restart-amd-audio ;;
*) show_update_menu ;;
esac
}

10
bin/omarchy-restart-amd-audio Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
CARD=$(pactl list cards | grep -B20 "Family 17h/19h" | grep "Name: " | awk '{print $2}')
if [[ -n $CARD ]]; then
pactl set-card-profile "$CARD" "HiFi (Mic1, Mic2, Speaker)" 2>/dev/null
else
echo "AMD audio card not found"
exit 1
fi