dotfiles/bin/mute

9 lines
172 B
Plaintext
Raw Permalink Normal View History

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