-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinstall.sh
executable file
·33 lines (27 loc) · 1.07 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
# shellcheck disable=SC1090
source ~/.dotfiles/log.sh "${BASH_SOURCE[0]}"
# Check the distribution name and version and abort if incompatible
# shellcheck disable=SC1090
source ~/.dotfiles/install/check-os.sh
# Desktop software and tweaks will only be installed if we're running Gnome
if [[ "$XDG_CURRENT_DESKTOP" == *"GNOME"* ]]; then
# Ensure computer does not go to sleep or lock while installing
gsettings set org.gnome.desktop.screensaver lock-enabled false
gsettings set org.gnome.desktop.session idle-delay 0
echolog "Installing terminal and desktop tools..."
# Install terminal tools
# shellcheck disable=SC1090
source ~/.dotfiles/install/terminal.sh
# Install desktop tools and tweaks
# shellcheck disable=SC1090
source ~/.dotfiles/install/desktop.sh
# Revert to normal idle and lock settings
gsettings set org.gnome.desktop.screensaver lock-enabled true
gsettings set org.gnome.desktop.session idle-delay 300
else
echolog "Only installing terminal tools..."
# shellcheck disable=SC1090
source ~/.dotfiles/install/terminal.sh
fi