As someone commented already you can use a personal automation to trigger when you leave a specific location. In case you are using a focus mode for work (which can be location and/or time based) you can use the activation and deactivation of this focus mode to trigger an automation as well!
Is it the white unibody MacBook? I have installed LMDE on it and am absolutely satisfied with it so far. Thinking about selling my 2016 Intel MacBook Pro now!