wireless - How to disable lock screen based on which WIFI network I'm connected to? - Ask Ubuntu


if i'm connected home wifi network, not want have lock screen when resume suspend or after x minutes of inactivity.

if i'm not connected wifi network or name of wifi network different home network, want lock screen active.

how can that?

#!/bin/sh  essid="name-here"  while : ausgabe=$(iwconfig wlan0 2> /dev/null | awk -f\" '{print $2}' | awk '{ print $1 }') if [ "$essid" = "$ausgabe" ]  gsettings set org.gnome.desktop.lockdown disable-lock-screen true echo 1 else gsettings set org.gnome.desktop.lockdown disable-lock-screen false echo 2 fi sleep 60 done 

try :

sudo gedit  /etc/network/interfaces 

add under wlan0

post-up sh /path/to/script 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User