Compare commits

...

2 commits

Author SHA1 Message Date
e7fb72af67 gitconfig : nouvel alias 2024-06-10 08:58:43 +02:00
baf758cf52 config/eww : mise à jour 2024-06-10 08:58:32 +02:00
2 changed files with 10 additions and 3 deletions

View file

@ -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

View file

@ -19,5 +19,6 @@
m = merge
r = rebase
graph = log --graph --oneline
ds = diff --staged
[push]
autoSetupRemote = true