mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-23 05:09:32 -08:00
13 lines
261 B
Text
13 lines
261 B
Text
|
#!/bin/sh
|
||
|
|
||
|
case $1 in
|
||
|
"*") command="";;
|
||
|
"up") command="change +2%";;
|
||
|
"down") command="change -1.5%";;
|
||
|
"toggle") command="mute toggle";;
|
||
|
esac
|
||
|
|
||
|
[ -n "$command" ] && pw-volume $command
|
||
|
|
||
|
$2 update volume=$(pw-volume status | jq '.percentage // 0')
|