Files
dotfiles/.local/bin/wifi-mute
druckdev b1d396babd *: Use /usr/bin/env in shebangs for bash & zsh
To increase the portability (OSX for example has zsh under `/bin/zsh`).
2021-07-14 13:48:21 +02:00

10 lines
263 B
Bash
Executable File

#!/usr/bin/env bash
## This runs as a crontab every 5minutes ('*/5 * * * * /usr/local/bin/wifi-mute')
if [[ "$(nmcli -t -f name con show --active)" =~ eduroam* ]]; then # iwgetid -r
# TODO: mute only speaker, not headphones
amixer set Master mute
fi