diff options
author | Archie Hilton (thytom) <archie.hilton1@gmail.com> | 2019-11-06 14:25:24 +0000 |
---|---|---|
committer | Archie Hilton (thytom) <archie.hilton1@gmail.com> | 2019-11-06 14:25:24 +0000 |
commit | 13168d33d4064f75787b4644de8a727f8b303875 (patch) | |
tree | 31ea5aa10124ba330ab34ee31bef0524ca4ced9a /modules | |
parent | 20b9b4855ec88d6d0c6ed4edbd4b9c6525f77d25 (diff) |
Updated TODO and changed bc to python in volumebar
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/volumebar | 2 |
1 files changed, 1 insertions, 1 deletions
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 |