Separate wallpaper and lockscreen by host

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-04-23 22:52:04 +02:00
parent 14e80e6bf2
commit b4b02847dd
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
13 changed files with 83 additions and 49 deletions

39
install
View file

@ -13,24 +13,25 @@
#
# USAGE:
# ./install
. ./system/.config/custom/env
. ./system/.local/bin/utils
###############################################################################
# Configuration variables #
###############################################################################
# The user for the installation
USER="severin"
HOST="$(hostname)"
# Directories which should be created
DIRECTORIES=(
".local/log"
"Build"
"Downloads"
"Keys"
"Music"
"Pictures"
"Projects"
"Tasks"
"Videos"
"Pictures"
"Music"
)
# Files which should be symlinked in the home folder
@ -95,20 +96,15 @@ SYSTEMD_SERVICES=(
"NetworkManager"
"org.cups.cupsd"
"suspend"
"xboxdrv"
)
#######################################
# Main code
#######################################
###############################################################################
# Install package manager and packages #
###############################################################################
print_section "Installing requirements"
sudo pacman -S git base-devel --noconfirm --needed
print_section "Creating directories"
for dir in "${DIRECTORIES[@]}"
do
create_directory "${dir}"
done
print_section "Installing yay"
is_yay_installed=$(command -v yay)
@ -128,8 +124,17 @@ fi
print_section "Installing packages"
package_count=$(< "${PACKAGES_DIR}/packages.list" wc -l)
print_log "Installing ${package_count} packages"
# Install packages
#yay -S --noconfirm $(cat "${PACKAGES_DIR}/packages.list")
yay -S --noconfirm --needed $(cat "${PACKAGES_DIR}/packages.list")
###############################################################################
# Create directories and symlinks #
###############################################################################
print_section "Creating directories"
for dir in "${DIRECTORIES[@]}"
do
create_directory "${dir}"
done
print_section "Creating symlinks"
for file in "${LINKED_FILES_HOME[@]}";
@ -180,6 +185,10 @@ do
copy_sudoers_content "${file}"
done
print_section "Set lockscreen image"
echo "${DOTFILES}/assets/lockscreen.${HOST}.jpg"
betterlockscreen -u "${DOTFILES}/assets/lockscreen.${HOST}.jpg"
print_section "Create issue file"
{
echo '\e{red}';