sunhat/install.sh
2024-06-02 15:11:52 -07:00

22 lines
628 B
Bash

source ~/.local/share/omakub/ascii.sh
# Needed for all installers
sudo apt update -y
sudo apt upgrade -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
# Run installers
for script in ~/.local/share/omakub/install/*.sh; do source $script; done
# Revert to normal idle settings
gsettings set org.gnome.desktop.session idle-delay 300
# Reboot to pickup changes
read -p "Ready to logout for all settings to take effect? [Y/n]: " response
if [[ -z "$response" || "$response" =~ ^[Yy]$ ]]; then
gnome-session-quit --logout --no-prompt
fi