minor changes

This commit is contained in:
Solomon Laing 2021-08-29 19:50:59 +09:30
parent 8317f7b249
commit 366223d09c
3 changed files with 16 additions and 12 deletions

View File

@ -47,12 +47,12 @@ xterm
flameshot flameshot
simple-mtpfs simple-mtpfs
micro micro
mpv
DEPENDENCIES_END DEPENDENCIES_END
DEPENDENCIES_LAPTOP_START DEPENDENCIES_LAPTOP_START
backlight_control backlight_control
powerkit powerkit
mpv
DEPENDENCIES_LAPTOP_END DEPENDENCIES_LAPTOP_END
DEFAULTS_START DEFAULTS_START

View File

@ -33,7 +33,11 @@ function config {
git clone --bare https://gitlab.inkletblot.com/inkletblot/config.git $HOME/.cfg git clone --bare https://gitlab.inkletblot.com/inkletblot/config.git $HOME/.cfg
echo "The script will now attempt to install the configs, if configs have been installed using the method found here: https://www.atlassian.com/git/tutorials/dotfiles, there will be issues." echo "
The script will now attempt to install the configs, if configs have been installed using the method found here: https://www.atlassian.com/git/tutorials/dotfiles, there will be issues.
"
echo "There are configs for laptops, my personal desktop, and a general config. Which would you like to intsall?" echo "There are configs for laptops, my personal desktop, and a general config. Which would you like to intsall?"
echo "Standard, 1" echo "Standard, 1"
@ -43,13 +47,13 @@ read -r -p "Choose one (default=1): " choice
case $choice in case $choice in
3) 3)
checkout arch-desktop config checkout arch-desktop
;; ;;
2) 2)
checkout arch-laptop config checkout arch-laptop
;; ;;
*) *)
checkout main config checkout main
;; ;;
esac esac
@ -58,18 +62,18 @@ if [ $? = 0 ]; then
else else
echo "Backing up pre-existing dot files."; echo "Backing up pre-existing dot files.";
mkdir -p .config-backup mkdir -p .config-backup
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{} config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv $HOME/{} .config-backup/{}
fi; fi;
case $choice in case $choice in
3) 3)
checkout arch-desktop config checkout arch-desktop
;; ;;
2) 2)
checkout arch-laptop config checkout arch-laptop
;; ;;
*) *)
checkout main config checkout main
;; ;;
esac esac

View File

@ -1,12 +1,12 @@
#!/bin/sh #!/bin/sh
#----------------------------------- #-----------------------------------
# Name: install-yay # Name: install-misc
# Version: 1.0.0 # Version: 1.0.0
# Author: Solomon Laing # Author: Solomon Laing
# Description: # Description:
# Installs the AUR helper yay on the # Installs all of my misc programs to
# system. # the system.
#----------------------------------- #-----------------------------------
clear clear