mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2025-08-13 04:37:43 +02:00
updated install script, new monitor config and added amd (ryzen) support to temp.sh
This commit is contained in:
27
install.sh
27
install.sh
@@ -62,8 +62,8 @@ function copyToDir {
|
||||
function install_fonts {
|
||||
mkdir -p ~/.fonts
|
||||
mkdir -p ~/.local/share/fonts
|
||||
yes | cp -rf ./fonts/* ~/.fonts
|
||||
yes | cp -rf ./fonts/* ~/.local/share/fonts
|
||||
cp -rf ./fonts/* ~/.fonts
|
||||
cp -rf ./fonts/* ~/.local/share/fonts
|
||||
}
|
||||
|
||||
# install trizen, a aur helper
|
||||
@@ -80,7 +80,7 @@ function install_config {
|
||||
|
||||
# link directories
|
||||
linkDir "$PWD"/wallpapers ~/Pictures/Wallpapers
|
||||
linkDir "$PWD"/i3/ ~/.config/i3
|
||||
linkDir "$PWD"/i3 ~/.config/i3
|
||||
linkDir "$PWD"/config/notify-osd/notify-osd ~/.notify-osd
|
||||
linkDir "$PWD"/config/terminal/xfce4-term ~/.config/xfce4/terminal
|
||||
linkDir "$PWD"/config/gtk-3.0/settings.ini ~/.config/gtk-3.0/.config
|
||||
@@ -117,7 +117,7 @@ function install_config {
|
||||
|
||||
# Installs the dependencies on Arch Linux
|
||||
function install_dependencies {
|
||||
fileToList dependencies/pacman.txt | xargs sudo pacman --noconfirm --force -S
|
||||
fileToList dependencies/pacman.txt | xargs sudo pacman --noconfirm -S
|
||||
|
||||
install_trizen
|
||||
fileToList dependencies/aur.txt | xargs trizen --force -S --noconfirm
|
||||
@@ -132,20 +132,6 @@ function install_dependencies {
|
||||
# User output functions
|
||||
# =======================================
|
||||
|
||||
# list the dependencies file
|
||||
function list_dependencies {
|
||||
echo ""
|
||||
echo "=========================="
|
||||
echo ""
|
||||
cat dependencies/pacman.txt
|
||||
cat dependencies/aur.txt
|
||||
cat dependencies/pip.txt
|
||||
cat dependencies/npm.txt
|
||||
echo ""
|
||||
echo "=========================="
|
||||
echo ""
|
||||
}
|
||||
|
||||
# Run the intro bit
|
||||
function intro {
|
||||
echo "___ ___ _ _ _ _ _ "
|
||||
@@ -197,8 +183,7 @@ intro
|
||||
ask "Do you want to continue installing my config and rice?" Y &&
|
||||
|
||||
# Ask for dependency installation
|
||||
list_dependencies
|
||||
if ask "Do you want to install the list of applications above? (might prompt for password)" Y; then
|
||||
if ask "Do you want to install the applications listen in ./dependencies? (might prompt for password)" Y; then
|
||||
install_dependencies
|
||||
fi
|
||||
|
||||
@@ -236,4 +221,4 @@ select opt in "$PWD/computers"/*; do
|
||||
done
|
||||
clear
|
||||
|
||||
echo "Enjoy using my rice! Do not forget to select i3 in GDM :)"
|
||||
echo "Enjoy using my rice! Do not forget to select i3 in GDM :)"
|
||||
|
Reference in New Issue
Block a user