Keep computer awake during installation
This commit is contained in:
parent
612a11694f
commit
05183fad47
@ -4,9 +4,17 @@ echo -e "\e[32mINSTALLING OMAKUB\e[0m"
|
||||
sudo apt update -y
|
||||
sudo apt install -y curl git
|
||||
|
||||
# Ensure computer doesn't go to sleep while installing
|
||||
gsettings set org.gnome.desktop.session idle-delay 0
|
||||
gsettings set org.gnome.desktop.screensaver lock-enabled false
|
||||
|
||||
# Run installers
|
||||
for script in ~/.local/share/omakub/install/*.sh; do source $script; done
|
||||
|
||||
# Revert to normal idle and lock settings
|
||||
gsettings set org.gnome.desktop.session idle-delay 300
|
||||
gsettings set org.gnome.desktop.screensaver lock-enabled true
|
||||
|
||||
# Reboot to pickup changes
|
||||
read -p "Ready to reboot the system for all settings to take effect? [Y/n]: " response
|
||||
if [[ -z "$response" || "$response" =~ ^[Yy]$ ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user