Only reduce screen timeout on Latitude 7490

This commit is contained in:
Anthony Rose 2024-06-06 10:53:09 +01:00
parent 06880e3d47
commit 4588cf86b9

View file

@ -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).