From 4d85e85a8db2fcf07341bc331f603cc3d6312e24 Mon Sep 17 00:00:00 2001 From: Gabubu <88589756+GabubuAvailable@users.noreply.github.com> Date: Thu, 14 Apr 2022 15:45:15 +0000 Subject: [PATCH 1/2] Update config.sh --- config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.sh b/config.sh index 96230b0..a26d8ac 100755 --- a/config.sh +++ b/config.sh @@ -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: " " | " From 649bf3ea84a64c5da2bc781858a02958152c912c Mon Sep 17 00:00:00 2001 From: Gabubu <88589756+GabubuAvailable@users.noreply.github.com> Date: Thu, 14 Apr 2022 15:46:22 +0000 Subject: [PATCH 2/2] modified module_vol_alsa thanks speedie for the command :> --- modules.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.sh b/modules.sh index 2f678d3..ff56123 100755 --- a/modules.sh +++ b/modules.sh @@ -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() {