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' gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita'
fi fi
if [ "$(cat /sys/devices/virtual/dmi/id/product_name)" = "Latitude 7490" ]
then
# Put the screen to sleep early without a password (to avoid image # Put the screen to sleep early without a password (to avoid image
# retention on this crappy laptop screen). # retention on this crappy laptop screen).
gsettings set org.gnome.desktop.session idle-delay 'uint32 60' gsettings set org.gnome.desktop.session idle-delay 'uint32 60'
gsettings set org.gnome.desktop.screensaver lock-enabled false 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 # Reset the app picker layout. Will take effect after a gnome-shell restart
# (log off and on again). # (log off and on again).