1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-30 14:32:08 -05:00

Update script to use new config files

This commit is contained in:
Jack 2017-08-01 20:07:30 -07:00
parent 211e5e9e23
commit 97a088ccb8
Signed by: foltik
GPG Key ID: 303F88F996E95541

View File

@ -25,6 +25,7 @@ ln() {
} }
install_i3() { install_i3() {
# Install Packages
if ! (pacman -Q i3-gaps >/dev/null 2>&1); if ! (pacman -Q i3-gaps >/dev/null 2>&1);
then then
lnh "Installing i3-gaps from AUR..." lnh "Installing i3-gaps from AUR..."
@ -56,12 +57,28 @@ install_i3() {
pacman -S compton --noconfirm pacman -S compton --noconfirm
fi; fi;
### Configuration Files ### Install Service Files
lnh "Installing Services"
# Suspend locker
lnf
sudo cp -v cfg/systemd/system/suspend@.service /etc/systemd/system/
# Auto locker
lnf
sudo cp -v cfg/systemd/user/locker.service /etc/systemd/user
sudo systemctl daemon-reload
lnh "Enabling Services"
lnf
sudo systemctl enable suspend@$USER.service
lnf
systemctl --user enable locker.service
### Install Configuration Files
lnh "Installing General Configuration Files" lnh "Installing General Configuration Files"
# Compton # Compton
lnf lnf
cp -v cfg/compton/config ~/.config/compton/config cp -v cfg/compton/config ~/.config/compton/config
# NCMPCPP config # NCMPCPP ws10 config
lnf lnf
cp -v cfg/termite/ncmpcpp_config ~/.config/termite/ncmpcpp_config cp -v cfg/termite/ncmpcpp_config ~/.config/termite/ncmpcpp_config
@ -75,21 +92,6 @@ install_i3() {
cp -v cfg/wallpapers/wallpaper* ~/Pictures/ cp -v cfg/wallpapers/wallpaper* ~/Pictures/
lnfbe lnfbe
### Install Service Files
lnh "Installing Services"
# Suspend locker
lnf
sudo cp -v cfg/systemd/system/suspend@.service /etc/systemd/system/
# Auto locker
lnf
sudo cp -v cfg/systemd/user/locker.service /etc/systemd/user
sudo systemctl daemon-reload
lnh "Enabling Services"
lnf
sudo systemctl enable suspend@$USER.service
lnf
systemctl --user enable locker.service
lnh "Select a Platform" lnh "Select a Platform"
platform_opt=("Desktop" "Laptop") platform_opt=("Desktop" "Laptop")
select opt in "${platform_opt[@]}" select opt in "${platform_opt[@]}"
@ -118,7 +120,21 @@ install_i3_laptop() {
lnfb lnfb
cp -v cfg/i3blocks/laptop/blocks/* ~/.config/i3blocks/blocks/ cp -v cfg/i3blocks/laptop/blocks/* ~/.config/i3blocks/blocks/
lnfbe lnfbe
}
configure_common() {
lnh "Installing Common Configuration Files"
# ZSH
lnf
cp -v cfg/zshrc ~/.zshrc
# VIM
lnf
cp -v cfg/vimrc ~/.vimrc
# Install Vim Plugins
vim +PlugInstall +qall
# MPD + NCMPCPP
} }
echo "Select a Window Manager" echo "Select a Window Manager"
@ -134,6 +150,6 @@ do
install_i3 install_i3
break break
;; ;;
*) echo "Invalid Option";; *) echo "Invalid Option";;
esac esac
done done