diff --git a/config.sh b/config.sh index a26d8ac..67f9942 100755 --- a/config.sh +++ b/config.sh @@ -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: " " | " diff --git a/modules.sh b/modules.sh index ff56123..64e0271 100755 --- a/modules.sh +++ b/modules.sh @@ -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}" }