From c69300dbe4c0780d6a5ef321b72959168326afc3 Mon Sep 17 00:00:00 2001 From: Gabubu <88589756+GabubuAvailable@users.noreply.github.com> Date: Sun, 10 Apr 2022 09:24:42 +0000 Subject: [PATCH] modified module_alsa to module_vol + Modified the module name + Added PulseAudio volume (need to notify the user to un-comment one of these 2 lines, depending on what he uses) --- modules.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules.sh b/modules.sh index de2d411..d8c58ed 100755 --- a/modules.sh +++ b/modules.sh @@ -22,8 +22,12 @@ module_user() { export bar="${bar}${1}$(whoami)@$(cat /proc/sys/kernel/hostname)${2}" } -module_alsa() { - export bar="${bar}${1}$(amixer sget Master | awk -F'[][]' '/Mono:/ { print $2 }')${2}" +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}" } module_kernel() {