I have a laptop I use at home and at work. When at work, I generally use one printer, and at home I use my home printer. Is there a way to automatically set the default printer to a specific printer based on the network I'm connected to?
Linux Mint lets me automatically connect to a specific VPN if I connect to a certain wifi network. Is there some sort of hook in linux that fires when a specific network connected is activated?
I would prefer an application or similar that already if it exists, but I'm open to writing a script if need be.
If there is no current functionality like this, what events/hooks would I need to use to detect the change in network connectivity, and what command would I then use to change the default printer?