If I'm connected to my home wifi network, I do not want to have a lock screen when I resume from suspend or after X minutes of inactivity.
If I'm not connected to any wifi network or the name of the wifi network is different than my home network, I want the lock screen to be active.
How can I do that?
Best Answer
You can use this shell script. Check this to get the info of your WiFi.
Edit this file as root:
add under wlan0 (or your Wifi interface,
ls /sys/class/net | grep -o "wl[^\t]\+"
):