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'
|
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).
|
||||||
|
|
Loading…
Reference in a new issue