Wrap lines at 80 columns where appropriate and I had the energy to think about how/where to wrap. There are still lines longer than that, which I plan to wrap in the future. But that is enough for now.
11 lines
264 B
Bash
Executable File
11 lines
264 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
|
|
|