Gitiles
Code Review
Sign In
git.clicks.codes
/
Coded
/
nixConfig
/
504b0fd818092294aa6adea4d72c2df6db7a7abe
/
.
/
extensions
/
eww
/
scripts
/
getvol
blob: 4e4275d8dccc127e93f3579af6625a859f707526 [
file
] [
log
] [
blame
]
#!/bin/sh
if
command
-
v pamixer
&>/
dev
/
null
;
then
if
[
true
==
$
(
pamixer
--
get
-
mute
)
];
then
echo
0
exit
else
pamixer
--
get
-
volume
fi
else
amixer
-
D pulse sget
Master
|
awk
-
F
'[^0-9]+'
'/Left:/{print $3}'
fi