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:
parent
e51767fdc7
commit
c69300dbe4
@ -22,8 +22,12 @@ module_user() {
|
|||||||
export bar="${bar}${1}$(whoami)@$(cat /proc/sys/kernel/hostname)${2}"
|
export bar="${bar}${1}$(whoami)@$(cat /proc/sys/kernel/hostname)${2}"
|
||||||
}
|
}
|
||||||
|
|
||||||
module_alsa() {
|
module_vol() {
|
||||||
export bar="${bar}${1}$(amixer sget Master | awk -F'[][]' '/Mono:/ { print $2 }')${2}"
|
# 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() {
|
module_kernel() {
|
||||||
|
Loading…
Reference in New Issue
Block a user