Merge pull request #5 from GabubuAvailable/master
modified module_vol_alsa
This commit is contained in:
commit
4c7ca594d6
@ -18,7 +18,7 @@ export maildir=""
|
|||||||
#module_uptime "Up: " " | "
|
#module_uptime "Up: " " | "
|
||||||
#module_ram "RAM: " " | "
|
#module_ram "RAM: " " | "
|
||||||
#module_user "User: " " | "
|
#module_user "User: " " | "
|
||||||
#module_vol "Vol: " "% | "
|
#module_vol_pa/alsa "Vol: " "% | "
|
||||||
#module_kernel "Kernel: " " | "
|
#module_kernel "Kernel: " " | "
|
||||||
#module_loadavg "Load Avg.: " " | "
|
#module_loadavg "Load Avg.: " " | "
|
||||||
#module_weather "Weather: " " | "
|
#module_weather "Weather: " " | "
|
||||||
|
@ -27,7 +27,7 @@ module_vol_pa() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module_vol_alsa() {
|
module_vol_alsa() {
|
||||||
export bar="${bar}${1}$(amixer sget Master | awk -F'[][]' '/Mono:/ { print $2 }')${2}"
|
export bar="${bar}${1}$(echo "`amixer sget Master | tail -n1 | sed -r "s/.*\[(.*)%\].*/\1/"`%")${2}" #Thanks speedie for the command
|
||||||
}
|
}
|
||||||
|
|
||||||
module_mic_pa() {
|
module_mic_pa() {
|
||||||
|
Loading…
Reference in New Issue
Block a user