mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-23 21:25:28 -08:00
12 lines
261 B
Bash
Executable file
12 lines
261 B
Bash
Executable file
#!/bin/sh
|
|
|
|
case $1 in
|
|
"*") command="";;
|
|
"up") command="change +4%";;
|
|
"down") command="change -4%";;
|
|
"toggle") command="mute toggle";;
|
|
esac
|
|
|
|
[ -n "$command" ] && pw-volume $command
|
|
|
|
$2 update volume=$(pw-volume status | jaq '.percentage // 10')
|