home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
187073f
)
Set volume only for default sink
author
Siraaj Khandkar
<siraaj@khandkar.net>
Thu, 7 Mar 2019 13:36:46 +0000
(08:36 -0500)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Thu, 7 Mar 2019 13:36:46 +0000
(08:36 -0500)
bin/vol_set
patch
|
blob
|
blame
|
history
diff --git
a/bin/vol_set
b/bin/vol_set
index
85f3f00
..
5b7bf03
100755
(executable)
--- a/
bin/vol_set
+++ b/
bin/vol_set
@@
-9,8
+9,6
@@
else
value="50%"
fi
-for sink in $(pactl list sinks | grep '^Sink #' | awk -F\# '{print $2}')
-do
- pactl set-sink-mute "$sink" false
- pactl set-sink-volume "$sink" "$value"
-done
+sink="$(pactl info | awk '/^Default Sink:/ {print $3; exit 0}')"
+pactl set-sink-mute "$sink" false
+pactl set-sink-volume "$sink" "$value"
This page took
0.022896 seconds
and
4
git commands to generate.