From c6163358090bc5c4123f634f3bdd91c987c78aa4 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 10 Jul 2021 17:11:33 +0100 Subject: (Scripts/status)~few minor edits for functionality and cleanliness Status scripts needed some updating for dwmblocks, so did it. --- Scripts/.local/scripts/status/volume | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'Scripts/.local/scripts/status/volume') diff --git a/Scripts/.local/scripts/status/volume b/Scripts/.local/scripts/status/volume index cbbafbe..eedd657 100755 --- a/Scripts/.local/scripts/status/volume +++ b/Scripts/.local/scripts/status/volume @@ -1,11 +1,2 @@ #!/usr/bin/env bash -sinks="$(pactl list sinks)" -vol="$(echo "$sinks" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")" -mute="$(echo "$sinks" | grep "Mute: " | sed "s/.*Mute: //g")" -case "$mute" in - "no") - printf "";; - "yes") - printf "";; -esac -echo " $vol%" +echo "" $(pamixer --get-volume-human) -- cgit v1.2.3-13-gbd6f