Merge pull request #6 from GabubuAvailable/master

added module_mic_alsa
This commit is contained in:
Emily Daemon 2022-04-15 18:18:13 +03:00 committed by GitHub
commit a8f980392d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -34,6 +34,10 @@ module_mic_pa() {
export bar="${bar}${1}$(if pamixer --source 1 --get-mute | grep -q 'true'; then echo "OFF"; else echo "ON"; fi)${2}"
}
module_mic_alsa() {
export bar="${bar}${1}$(if amixer sget Capture | grep -q 'off'; then echo "OFF"; else echo "ON"; fi)${2}"
}
module_kernel() {
export bar="${bar}${1}$(sed "s/version // ; s/ (.*//" /proc/version)${2}"
}