Added dgx-switcher script

This commit is contained in:
crt0mega 2021-12-19 19:14:39 +01:00
parent 617a218e13
commit 94e094b53b
Signed by: crt0mega
GPG Key ID: DCAA09100B14F420
2 changed files with 25 additions and 0 deletions

23
hardware/dgx-switcher Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
CARD=$(grep /proc/asound/cards -e "DGX" | cut -d' ' -f2 -)
if [ "$CARD" = "" ]; then
echo "Keine Xonar DGX gefunden, beende."
exit
fi
AOUT=$(amixer -c $CARD sget 'Analog Output' | grep -e "Item0:" | cut -d"'" -f2 -)
echo "Analog Output momentan geschaltet auf: $AOUT"
if [ "$AOUT" = "Multichannel" ]; then
echo "Schalte um auf Kopfhörer (Front Panel)"
amixer -c $CARD sset 'Analog Output' 'Stereo Headphones FP' > /dev/null
else
echo "Schalte um auf Mehrkanalausgabe"
amixer -c $CARD sset 'Analog Output' 'Multichannel' > /dev/null
fi

View File

@ -8,6 +8,8 @@ Trigger warning: Most of them need "zenity" to be installed.
- Creates symlinks so Divinity: Original Sin 2 can be played with proton
- games/witcher-2-import
- Creates a symlink to your The Witcher savegames, allowing the Linux version of The Witcher 2 to import these.
- hardware/dxg-switcher
- Switches between `Multichannel` and `Stereo Headphones (FP)` on ASUS Xonar DGX cards
- hardware/zwattman.sh
- Simple Zenity GUI for changing Wattman settings on Kernel 4.17+
- playonlinux/pol-steamhelp