2023-02-17 16:11:48 +00:00
|
|
|
#!/bin/bash
|
2023-02-26 15:29:26 +00:00
|
|
|
# ___ _____ ___ _ _____
|
|
|
|
# / _ \_ _|_ _| | | ____|
|
|
|
|
# | | | || | | || | | _|
|
|
|
|
# | |_| || | | || |___| |___
|
|
|
|
# \__\_\|_| |___|_____|_____|
|
|
|
|
#
|
|
|
|
# by Stephan Raabe (2023)
|
2023-02-17 16:11:48 +00:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Install Script for Qtile
|
|
|
|
# ------------------------------------------------------
|
|
|
|
|
2023-04-12 10:27:35 +00:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Confirm Start
|
|
|
|
# ------------------------------------------------------
|
|
|
|
clear
|
|
|
|
echo " ___ _____ ___ _ _____ "
|
|
|
|
echo " / _ \_ _|_ _| | | ____| "
|
|
|
|
echo "| | | || | | || | | _| "
|
|
|
|
echo "| |_| || | | || |___| |___ "
|
|
|
|
echo " \__\_\|_| |___|_____|_____| "
|
|
|
|
echo " "
|
|
|
|
echo "by Stephan Raabe (2023)"
|
|
|
|
echo "------------------------------------------------------"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
while true; do
|
|
|
|
read -p "DO YOU WANT TO START THE INSTALLATION NOW? (Yy/Nn): " yn
|
|
|
|
case $yn in
|
|
|
|
[Yy]* )
|
|
|
|
echo "Installation started."
|
|
|
|
break;;
|
|
|
|
[Nn]* )
|
|
|
|
exit;
|
|
|
|
break;;
|
|
|
|
* ) echo "Please answer yes or no.";;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
echo ""
|
2023-02-17 16:11:48 +00:00
|
|
|
|
|
|
|
# ------------------------------------------------------
|
|
|
|
# Install required packages
|
|
|
|
# ------------------------------------------------------
|
2023-05-12 12:19:19 +00:00
|
|
|
sudo pacman -S --noconfirm qtile
|
2023-02-17 16:11:48 +00:00
|
|
|
|
|
|
|
# ------------------------------------------------------
|
|
|
|
# Create symbolic links
|
|
|
|
# ------------------------------------------------------
|
2023-04-12 10:27:35 +00:00
|
|
|
echo "-> Create symbolic link for startx"
|
2023-02-17 16:11:48 +00:00
|
|
|
rm ~/.xinitrc
|
2023-02-18 15:33:27 +00:00
|
|
|
ln -s ~/dotfiles/qtile/.xinitrc ~/.xinitrc
|
2023-02-17 16:11:48 +00:00
|
|
|
|
|
|
|
echo "DONE!"
|