aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/config/i3pystatus/get_volume.sh
blob: e0372f28b7aa5fba6bc02213005a74880b242725 (plain)
1
2
3
#!/bin/sh

echo $(if [[ $(echo $(pacmd list | grep "active port") | cut -d" " -f3 | cut -d"<" -f2 | cut -d">" -f1) == "analog-output-lineout" ]]; then echo "Headphones"; elif [[ $(echo $(pacmd list | grep "active port") | cut -d" " -f3 | cut -d"<" -f2 | cut -d">" -f1) == "analog-output-headphones" ]]; then echo "Line Out"; fi)