mirror of
https://github.com/elkowar/eww.git
synced 2024-08-16 23:30:34 +03:00
make getvol use pamixer
This commit is contained in:
parent
dc3129aee2
commit
44fa18367e
@ -1,7 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if command -v pactl &>/dev/null; then
|
if command -v pamixer &>/dev/null; then
|
||||||
pactl get-sink-volume $(pactl get-default-sink) | awk -F '[^0-9]+' '/left:/{print $3}'
|
if [ true == $(pamixer --get-mute) ]; then
|
||||||
|
echo 0
|
||||||
|
exit
|
||||||
|
else
|
||||||
|
pamixer --get-volume
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
amixer -D pulse sget Master | awk -F '[^0-9]+' '/Left:/{print $3}'
|
amixer -D pulse sget Master | awk -F '[^0-9]+' '/Left:/{print $3}'
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user