mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Move all fixes for Asus ROGs to install time
This commit is contained in:
@@ -145,9 +145,8 @@ show_toggle_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_hardware_menu() {
|
show_hardware_menu() {
|
||||||
case $(menu "Toggle" " Hybrid GPU\n Audio Soft Mixer") in
|
case $(menu "Toggle" " Hybrid GPU") in
|
||||||
*"Hybrid GPU"*) present_terminal omarchy-toggle-hybrid-gpu ;;
|
*"Hybrid GPU"*) present_terminal omarchy-toggle-hybrid-gpu ;;
|
||||||
*"Audio Soft Mixer"*) omarchy-toggle-audio-soft-mixer ;;
|
|
||||||
*) show_trigger_menu ;;
|
*) show_trigger_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Fix volume controls for laptops with problematic Realtek codecs (like Asus G14)
|
|
||||||
|
|
||||||
if [[ ! -f ~/.config/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf ]]; then
|
|
||||||
mkdir -p ~/.config/wireplumber/wireplumber.conf.d/
|
|
||||||
cp $OMARCHY_PATH/default/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf ~/.config/wireplumber/wireplumber.conf.d/
|
|
||||||
rm -rf ~/.local/state/wireplumber/default-routes
|
|
||||||
|
|
||||||
notify-send " Enabled audio soft mixing"
|
|
||||||
else
|
|
||||||
rm -rf ~/.config/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf
|
|
||||||
rm -rf ~/.local/state/wireplumber/default-routes
|
|
||||||
|
|
||||||
notify-send " Disabled audio soft mixing"
|
|
||||||
fi
|
|
||||||
|
|
||||||
systemctl --user restart wireplumber
|
|
||||||
@@ -34,3 +34,5 @@ run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-spi-keyboard.sh
|
|||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-suspend-nvme.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-suspend-nvme.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-t2.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-apple-t2.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-surface-keyboard.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-surface-keyboard.sh
|
||||||
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-asus-rog-audio-mixer.sh
|
||||||
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-asus-rog-mic.sh
|
||||||
|
|||||||
9
install/config/hardware/fix-asus-rog-audio-mixer.sh
Normal file
9
install/config/hardware/fix-asus-rog-audio-mixer.sh
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Fix audio volume on Asus ROG laptops by using a soft mixer.
|
||||||
|
|
||||||
|
if [[ "$(cat /sys/class/dmi/id/sys_vendor 2>/dev/null)" == "ASUSTeK COMPUTER INC." ]] &&
|
||||||
|
grep -q "ROG" /sys/class/dmi/id/product_family 2>/dev/null; then
|
||||||
|
|
||||||
|
mkdir -p ~/.config/wireplumber/wireplumber.conf.d/
|
||||||
|
cp $OMARCHY_PATH/default/wireplumber/wireplumber.conf.d/alsa-soft-mixer.conf ~/.config/wireplumber/wireplumber.conf.d/
|
||||||
|
rm -rf ~/.local/state/wireplumber/default-routes
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user