diff --git a/roles/home-gui/files/gnome-setup.sh b/roles/home-gui/files/gnome-setup.sh index 0d842ab..a3be3a1 100644 --- a/roles/home-gui/files/gnome-setup.sh +++ b/roles/home-gui/files/gnome-setup.sh @@ -179,10 +179,16 @@ set_misc_preferences () { gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita' fi - # Put the screen to sleep early without a password (to avoid image - # retention on this crappy laptop screen). - gsettings set org.gnome.desktop.session idle-delay 'uint32 60' - gsettings set org.gnome.desktop.screensaver lock-enabled false + if [ "$(cat /sys/devices/virtual/dmi/id/product_name)" = "Latitude 7490" ] + then + # Put the screen to sleep early without a password (to avoid image + # retention on this crappy laptop screen). + gsettings set org.gnome.desktop.session idle-delay 'uint32 60' + gsettings set org.gnome.desktop.screensaver lock-enabled false + else + gsettings set org.gnome.desktop.session idle-delay 'uint32 300' + gsettings set org.gnome.desktop.screensaver lock-enabled true + fi # Reset the app picker layout. Will take effect after a gnome-shell restart # (log off and on again).