New functions/bin structure
This commit is contained in:
9
dotfiles/lib/functions/pavolume
Executable file
9
dotfiles/lib/functions/pavolume
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/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]*"
|
||||
}
|
||||
|
||||
pavolume
|
Reference in New Issue
Block a user