modified module_alsa to module_vol

+ Modified the module name
+ Added PulseAudio volume (need to notify the user to un-comment one of these 2 lines, depending on what he uses)
This commit is contained in:
Gabubu 2022-04-10 09:24:42 +00:00 committed by GitHub
parent e51767fdc7
commit c69300dbe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {