Gitiles
Code Review
Sign In
git.clicks.codes
/
Coded
/
nixConfig
/
refs/heads/main
/
.
/
extensions
/
eww
/
scripts
/
getvol
blob: 4e4275d8dccc127e93f3579af6625a859f707526 [
file
] [
log
] [
blame
]
Samuel Shuert
504b0fd
2024-02-11 14:39:15 -0500
[
diff
] [
blame
]
1
#!/bin/sh
2
3
if
command
-
v pamixer
&>/
dev
/
null
;
then
4
if
[
true
==
$
(
pamixer
--
get
-
mute
)
];
then
5
echo
0
6
exit
7
else
8
pamixer
--
get
-
volume
9
fi
10
else
11
amixer
-
D pulse sget
Master
|
awk
-
F
'[^0-9]+'
'/Left:/{print $3}'
12
fi