This repository has been archived on 2026-02-02. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
dotfiles/bin/mute

8 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