Compare commits
No commits in common. "e7fb72af67aa146994b23a8bfbabbbd56675cccb" and "3c191ef7a69a01d378e000c43823007325385e80" have entirely different histories.
e7fb72af67
...
3c191ef7a6
2 changed files with 3 additions and 10 deletions
|
@ -1,13 +1,7 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
print_sound_status() {
|
pactl subscribe | grep --line-buffered "'change'" | while read -r _unused; do
|
||||||
printf '{"output-volume":%s,"input-volume":%s,"output-muted":%s,"sink-name":%s}\n' \
|
printf '{"output-volume":%s,"input-volume":%s,"output-muted":%s}\n' \
|
||||||
"$(pamixer --get-volume)" \
|
"$(pamixer --get-volume)" \
|
||||||
"$(pamixer --get-volume --default-source)" \
|
"$(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
|
done
|
||||||
|
|
|
@ -19,6 +19,5 @@
|
||||||
m = merge
|
m = merge
|
||||||
r = rebase
|
r = rebase
|
||||||
graph = log --graph --oneline
|
graph = log --graph --oneline
|
||||||
ds = diff --staged
|
|
||||||
[push]
|
[push]
|
||||||
autoSetupRemote = true
|
autoSetupRemote = true
|
||||||
|
|
Loading…
Reference in a new issue