dotfiles/bin/mute

9 lines
172 B
Bash
Executable file

#!/bin/bash
case $(uname -s) in
Darwin) osascript -e "set volume output volume 0"
;;
Linux) pactl set-sink-mute @DEFAULT_SINK@ on
;;
esac