Hi guys, I recently installed Linux mint on a spare laptop I had to check if I can daily drive this and since I run Syncthing Windows setup on this device before and I essentially want to replicate that setup here which means Syncthing starts up automatically on login but with the condition that the device should be connected to ac power and if it gets disconnected kill the process right away. I could easily have this in Windows setup and also in Syncthing-fork for Android with a simple toggle. How can I replicate this Linux mint as well?
what desktop are you using? on kde/plasma, go to the power settings and it gives you an option to run a script when the battery is connected/disconnected
u can use that to systemctl --user start/stop syncthing
i use syncthing all the time on some 100gb of data. it’s not much of a battery drain. ymmv
Cinnamon