mirror of
https://github.com/aljazceru/omakub.git
synced 2025-12-17 12:34:21 +01:00
17
install.sh
17
install.sh
@@ -1,13 +1,11 @@
|
|||||||
# Exit immediately if a command exits with a non-zero status
|
# Exit immediately if a command exits with a non-zero status
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Desktop software and tweaks will only be installed if we're running Gnome
|
|
||||||
RUNNING_GNOME=$([[ "$XDG_CURRENT_DESKTOP" == *"GNOME"* ]] && echo true || echo false)
|
|
||||||
|
|
||||||
# Check the distribution name and version and abort if incompatible
|
# Check the distribution name and version and abort if incompatible
|
||||||
source ~/.local/share/omakub/install/check-version.sh
|
source ~/.local/share/omakub/install/check-version.sh
|
||||||
|
|
||||||
if $RUNNING_GNOME; then
|
# Desktop software and tweaks will only be installed if we're running Gnome
|
||||||
|
if [[ "$XDG_CURRENT_DESKTOP" == *"GNOME"* ]]; then
|
||||||
# Ensure computer doesn't go to sleep or lock while installing
|
# Ensure computer doesn't go to sleep or lock while installing
|
||||||
gsettings set org.gnome.desktop.screensaver lock-enabled false
|
gsettings set org.gnome.desktop.screensaver lock-enabled false
|
||||||
gsettings set org.gnome.desktop.session idle-delay 0
|
gsettings set org.gnome.desktop.session idle-delay 0
|
||||||
@@ -17,18 +15,17 @@ if $RUNNING_GNOME; then
|
|||||||
source ~/.local/share/omakub/install/first-run-choices.sh
|
source ~/.local/share/omakub/install/first-run-choices.sh
|
||||||
|
|
||||||
echo "Installing terminal and desktop tools..."
|
echo "Installing terminal and desktop tools..."
|
||||||
else
|
|
||||||
echo "Only installing terminal tools..."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install terminal tools
|
# Install terminal tools
|
||||||
source ~/.local/share/omakub/install/terminal.sh
|
source ~/.local/share/omakub/install/terminal.sh
|
||||||
|
|
||||||
if $RUNNING_GNOME; then
|
|
||||||
# Install desktop tools and tweaks
|
# Install desktop tools and tweaks
|
||||||
source ~/.local/share/omakub/install/desktop.sh
|
source ~/.local/share/omakub/install/desktop.sh
|
||||||
|
|
||||||
# Revert to normal idle and lock settings
|
# Revert to normal idle and lock settings
|
||||||
gsettings set org.gnome.desktop.screensaver lock-enabled true
|
gsettings set org.gnome.desktop.screensaver lock-enabled true
|
||||||
gsettings set org.gnome.desktop.session idle-delay 300
|
gsettings set org.gnome.desktop.session idle-delay 300
|
||||||
|
else
|
||||||
|
echo "Only installing terminal tools..."
|
||||||
|
source ~/.local/share/omakub/install/terminal.sh
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user