From 8383207c0fbbc6eea0634baa0256b2a4f4c9d06a Mon Sep 17 00:00:00 2001 From: Gabubu <88589756+GabubuAvailable@users.noreply.github.com> Date: Sun, 10 Apr 2022 09:50:10 +0000 Subject: [PATCH] Update modules.sh --- modules.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules.sh b/modules.sh index d8c58ed..0c651ee 100755 --- a/modules.sh +++ b/modules.sh @@ -23,11 +23,7 @@ module_user() { } module_vol() { - # Un-comment this if you use ALSA - #export bar="${bar}${1}$(amixer sget Master | awk -F'[][]' '/Mono:/ { print $2 }')${2}" - - # Un-comment this if you use PulseAudio - #export bar="${bar}${1}$(pamixer --get-volume)${2}" + export bar="${bar}${1}$(if command -v pamixer > NULL; then pamixer --get-volume; else amixer sget Master | awk -F'[][]' '/Mono:/ { print $2 }'; fi)${2}" } module_kernel() {