Files
dotfiles/.local/bin/wifi-mute
druckdev e7427ba925 Add scripts collection
Add a couple of utility scripts.
2020-06-24 16:56:47 +02:00

10 lines
255 B
Bash
Executable File

#!/bin/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