Add scripts collection

Add a couple of utility scripts.
This commit is contained in:
2020-06-24 16:56:47 +02:00
parent 31a4bc0768
commit e7427ba925
5 changed files with 110 additions and 0 deletions

9
.local/bin/wifi-mute Executable file
View File

@@ -0,0 +1,9 @@
#!/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