fix(gnome): Set sensible default power settings on Steam Deck hardware automatically

This commit is contained in:
Kyle Gospodnetich 2023-09-08 13:42:48 -07:00
parent bc559efeb9
commit 23347190c7

View File

@ -74,6 +74,16 @@ else
echo 'Setting mouse input profile'
gsettings set org.gnome.desktop.peripherals.mouse accel-profile "flat"
echo 'Setting default power settings'
gsettings set org.gnome.desktop.session idle-delay 0
gsettings set org.gnome.settings-daemon.plugins.power ambient-enabled true
gsettings set org.gnome.settings-daemon.plugins.power idle-dim true
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 300
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 900
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type "suspend"
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type "suspend"
gsettings set org.gnome.settings-daemon.plugins.power power-button-action "suspend"
echo 'Tweaking GNOME indexer'
mkdir -p $HOME/.steam
touch $HOME/.steam/.trackerignore