This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
setsinkport () { | |
if [ $(</var/log/headphones_plugged) == 1 ] | |
then | |
pactl set-sink-port @DEFAULT_SINK@ "[Out] Headphones" | |
else | |
pactl set-sink-port @DEFAULT_SINK@ "[Out] Speaker" | |
fi | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# /etc/acpi/jack.sh | |
# | |
event="$*" | |
headphones_in() { | |
#pacmd set-sink-port "alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5650__sink" "[Out] Headphones" | |
#/usr/bin/amixer -c 0 cset name='Speaker Channel Switch' off |