diff --git a/hardware/dgx-switcher b/hardware/dgx-switcher new file mode 100755 index 0000000..d9d3b46 --- /dev/null +++ b/hardware/dgx-switcher @@ -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 + diff --git a/readme.md b/readme.md index 8b100a4..b2ecac1 100644 --- a/readme.md +++ b/readme.md @@ -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