Add scripts collection
Add a couple of utility scripts.
This commit is contained in:
9
.local/bin/wifi-mute
Executable file
9
.local/bin/wifi-mute
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user