[NixOS] Fix pavolume

This commit is contained in:
2024-10-09 11:40:56 -06:00
parent e2875e1741
commit ee7c0ed11c
3 changed files with 33 additions and 33 deletions

View File

@@ -1,9 +1,7 @@
#!/usr/bin/env sh
function pavolume {
pacmd list-sinks |
awk '/^\s+name: /{indefault = $2 == "<'"$(pasink)"'>"}
/^\s+volume: / && indefault {print $5; exit}' | grep -Eo "[0-9]*"
pactl get-sink-volume $(pactl get-default-sink) | FS="/" get_cols 2 | grep -oE '[0-9]*'
}
pavolume