From d789fd7080b743ab1c5813e6961ef0150677e7cf Mon Sep 17 00:00:00 2001 From: Gabubu <88589756+GabubuAvailable@users.noreply.github.com> Date: Fri, 15 Apr 2022 15:15:01 +0000 Subject: [PATCH 1/2] added module_mic_alsa --- modules.sh | 4 ++++ 1 file changed, 4 insertions(+) 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}" } From 65b617e43a23cfe0f643d46fc40a92d7edf7d57a Mon Sep 17 00:00:00 2001 From: Gabubu <88589756+GabubuAvailable@users.noreply.github.com> Date: Fri, 15 Apr 2022 15:16:33 +0000 Subject: [PATCH 2/2] added module_mic_alsa --- config.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: " " | "