When I'm connected to my metered mobile phone's wifi hotspot I would like to run a script to do things like kill the torrent downloader, stop syncthing, etc.
When I'm back on my unmetered home wifi hotspot, I'd like to automatically start those things up again.
When I connect to a new unknown hotspot, I'd like to ask the user whether it is metered or unmetered.
I would like my script to be called like:
How do I setup this trigger?
I'm on a
systemd system (Manjaro, based on Arch Linux).
... Or is there a tool out there which already does what I'm after?