Only reduce screen timeout on Latitude 7490
This commit is contained in:
parent
06880e3d47
commit
4588cf86b9
1 changed files with 10 additions and 4 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue