diff --git a/TODO.org b/TODO.org index 899fb63..b4a2f6d 100644 --- a/TODO.org +++ b/TODO.org @@ -10,10 +10,7 @@ Each module writes to stdout. /home/$USER/.config/dwmbar/modules/ * Todo List -- Delay in archupdates module (if minutes divisible by 5/4) -- python3 instead of bc -- User can specify the separator between each module -- Fix weather module +nothing :D Bugs to fix: none diff --git a/modules/volumebar b/modules/volumebar index f2a9fa0..219428d 100755 --- a/modules/volumebar +++ b/modules/volumebar @@ -18,7 +18,7 @@ get_volume(){ active_sink=$(pacmd list-sinks | awk '/* index:/{print $3}') curStatus=$(pacmd list-sinks | grep -A 15 "index: $active_sink$" | awk '/muted/{ print $2}') volume=$(pacmd list-sinks | grep -A 15 "index: $active_sink$" | grep 'volume:' | grep -E -v 'base volume:' | awk -F : '{print $3}' | grep -o -P '.{0,3}%'| sed s/.$// | tr -d ' ') - slider_position=$(echo "scale=scale(1.0); x = ($volume / 100) * $VOLUME_WIDTH; scale=scale(1); x / 1" | bc) + slider_position=$(python -c "print(($volume / 100) * $VOLUME_WIDTH)") if [ "${curStatus}" = 'yes' ] then