Compare commits
2 commits
3c191ef7a6
...
e7fb72af67
Author | SHA1 | Date | |
---|---|---|---|
e7fb72af67 | |||
baf758cf52 |
2 changed files with 10 additions and 3 deletions
|
@ -1,7 +1,13 @@
|
|||
#!/usr/bin/env sh
|
||||
pactl subscribe | grep --line-buffered "'change'" | while read -r _unused; do
|
||||
printf '{"output-volume":%s,"input-volume":%s,"output-muted":%s}\n' \
|
||||
print_sound_status() {
|
||||
printf '{"output-volume":%s,"input-volume":%s,"output-muted":%s,"sink-name":%s}\n' \
|
||||
"$(pamixer --get-volume)" \
|
||||
"$(pamixer --get-volume --default-source)" \
|
||||
"$(pamixer --get-mute)"
|
||||
"$(pamixer --get-mute)" \
|
||||
"$(pactl --format json list sinks | jq '.[] | select(.name == "'"$(pactl get-default-sink)"'") | .description')"
|
||||
}
|
||||
|
||||
print_sound_status
|
||||
pactl subscribe | grep --line-buffered "'change'" | while read -r _unused; do
|
||||
print_sound_status
|
||||
done
|
||||
|
|
|
@ -19,5 +19,6 @@
|
|||
m = merge
|
||||
r = rebase
|
||||
graph = log --graph --oneline
|
||||
ds = diff --staged
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
|
|
Loading…
Reference in a new issue