Merge pull request #5 from GabubuAvailable/master

modified module_vol_alsa
This commit is contained in:
Emily Daemon 2022-04-14 18:48:14 +03:00 committed by GitHub
commit 4c7ca594d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export maildir=""
#module_uptime "Up: " " | "
#module_ram "RAM: " " | "
#module_user "User: " " | "
#module_vol "Vol: " "% | "
#module_vol_pa/alsa "Vol: " "% | "
#module_kernel "Kernel: " " | "
#module_loadavg "Load Avg.: " " | "
#module_weather "Weather: " " | "

View File

@ -27,7 +27,7 @@ module_vol_pa() {
}
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() {