diff --git a/modules.sh b/modules.sh index de2d411..d8c58ed 100755 --- a/modules.sh +++ b/modules.sh @@ -22,8 +22,12 @@ module_user() { export bar="${bar}${1}$(whoami)@$(cat /proc/sys/kernel/hostname)${2}" } -module_alsa() { - export bar="${bar}${1}$(amixer sget Master | awk -F'[][]' '/Mono:/ { print $2 }')${2}" +module_vol() { + # Un-comment this if you use ALSA + #export bar="${bar}${1}$(amixer sget Master | awk -F'[][]' '/Mono:/ { print $2 }')${2}" + + # Un-comment this if you use PulseAudio + #export bar="${bar}${1}$(pamixer --get-volume)${2}" } module_kernel() {