You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
164 lines
5.5 KiB
164 lines
5.5 KiB
#!/bin/sh
|
|
|
|
DIR="$(realpath "$(dirname "$0")")"
|
|
|
|
if ! grep 'Pop!_OS' /etc/os-release > /dev/null 2>&1; then
|
|
echo "This is not Pop!_OS..."
|
|
fi
|
|
|
|
# script must start at home directory
|
|
cd "$HOME" || exit 1;
|
|
|
|
dependencies() {
|
|
sudo apt update -y
|
|
sudo apt install -y make curl sudo git zip unzip || exit 1
|
|
if ! (type sudo 2>&1) > /dev/null; then
|
|
echo "sudo is not installed.";
|
|
exit 1
|
|
fi
|
|
|
|
echo "Updating APT and adding PPA's"
|
|
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
|
|
sudo apt update -y || exit 1
|
|
|
|
sudo apt install -y nodejs golang cargo tmux g++ gcc stow || exit 1
|
|
}
|
|
|
|
sysinfo() {
|
|
echo "Dylan Araps scripts"
|
|
cd "$HOME" || exit 1;
|
|
mkdir -p repos
|
|
git clone https://github.com/dylanaraps/pfetch "$HOME/repos/pfetch"
|
|
git clone https://github.com/dylanaraps/neofetch "$HOME/repos/neofetch"
|
|
git clone https://github.com/dylanaraps/fff "$HOME/repos/fff"
|
|
|
|
cd "$HOME/repos/pfetch" || exit 1;
|
|
sudo make install || exit 2;
|
|
cd "$HOME" || exit 1;
|
|
|
|
cd "$HOME/repos/neofetch" || exit 1;
|
|
sudo make install || exit 2;
|
|
cd "$HOME" || exit 1;
|
|
|
|
cd "$HOME/repos/fff" || exit 1;
|
|
sudo make install || exit 2;
|
|
cd "$HOME" || exit 1;
|
|
}
|
|
|
|
browsers() {
|
|
sudo apt remove -y firefox
|
|
# install brave
|
|
sudo apt install apt-transport-https -y || exit 1
|
|
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg || exit 1
|
|
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"| sudo tee /etc/apt/sources.list.d/brave-browser-release.list
|
|
sudo apt update -y
|
|
sudo apt install brave-browser -y || exit 1
|
|
}
|
|
|
|
meetings() {
|
|
mkdir -p "$HOME/repos"
|
|
|
|
curl https://go.skype.com/skypeforlinux-64.deb -LJo "$HOME/repos/skypeforlinux.deb"
|
|
curl https://zoom.us/client/latest/zoom_amd64.deb -LJo "$HOME/repos/zoomus.deb"
|
|
curl 'https://discord.com/api/download?platform=linux&format=deb' -LJo "$HOME/repos/discord.deb"
|
|
echo 'Manually Install the skype and zoom deb packages if you want them.'
|
|
|
|
# install mt
|
|
sudo curl -LJ https://github.com/junikimm717/mt/releases/download/33627ab/mt -o /usr/local/bin/mt
|
|
sudo chmod +x /usr/local/bin/mt
|
|
}
|
|
|
|
dotfiles() {
|
|
echo "Adding zsh and tmux configs"
|
|
# zsh plugins
|
|
sudo apt install -y zsh tmux shellcheck fzf
|
|
export RUNZSH=no
|
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"
|
|
|
|
# stow dotfiles
|
|
cd "$DIR" || exit 1
|
|
rm -rf ~/.zshrc ~/.tmux.conf
|
|
./stow dots scripts || exit 1
|
|
curl -LJ https://git.junickim.me/junikimm717/vim2023/raw/branch/master/lsp.vimrc -o "$HOME/.vimrc"
|
|
|
|
# tpm
|
|
test -e ~/.tmux/plugins/tpm || git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm || exit 1
|
|
tmux start \; \
|
|
new -d \; \
|
|
run "$HOME/.tmux/plugins/tpm/scripts/install_plugins.sh" \; \
|
|
kill-session || exit 1
|
|
}
|
|
|
|
nfs() {
|
|
sudo apt install -y nfs-common cifs-utils
|
|
mkdir -p ~/nfs/rpi ~/nfs/d2
|
|
}
|
|
|
|
neovim() {
|
|
# install neovim
|
|
curl https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.deb -LJo "$HOME/repos/nvim-linux64.deb" || exit 1
|
|
sudo apt install "$HOME/repos/nvim-linux64.deb" -y || exit 1
|
|
sudo npm install -g tree-sitter-cli
|
|
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim || exit 1
|
|
git clone https://git.junickim.me/junikimm717/nvim2023 ~/.config/nvim || exit 1
|
|
nvim -c PackerSync -c 'sleep 10' -c qa --headless
|
|
echo "sleeping to compile"
|
|
nvim -c 'sleep 60' -c qa --headless
|
|
}
|
|
|
|
neovim_fonts() {
|
|
sudo apt install -y fonts-jetbrains-mono
|
|
mkdir -p "$HOME/.local/share/fonts/JB"
|
|
cd "$HOME/.local/share/fonts/JB" || exit 1
|
|
curl -LJO https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/JetBrainsMono.zip || exit 1
|
|
unzip JetBrainsMono.zip || exit 1
|
|
fc-cache -rv || exit 1
|
|
|
|
sudo add-apt-repository ppa:aslatter/ppa -y
|
|
sudo apt install alacritty -y || exit 1
|
|
}
|
|
|
|
wm() {
|
|
sudo add-apt-repository -y ppa:papirus/papirus
|
|
sudo apt update && sudo apt install -y i3 polybar nitrogen feh picom rofi stow papirus-icon-theme conky dmenu scrot
|
|
# installing siji
|
|
mkdir -p "$HOME/repos/siji"
|
|
cd "$HOME/repos/siji" || exit 1
|
|
curl -LJO https://github.com/fauno/siji/archive/master.tar.gz || exit 1
|
|
tar -xzvf ./siji-master.tar.gz || exit 1
|
|
mkdir -p "$HOME/.local/share/fonts" || exit 1
|
|
cp ./siji-master/ttf/siji.ttf "$HOME/.local/share/fonts/" || exit 1
|
|
fc-cache -rv
|
|
|
|
cd "$DIR" || exit 1
|
|
./stow wm rofi polybar term wallpaper
|
|
}
|
|
|
|
music() {
|
|
sudo apt install -y mpd ncmpcpp || return
|
|
cd "$DIR" || exit 1
|
|
./stow music || exit 1
|
|
mkdir -p ~/Music
|
|
systemctl enable --user --now mpd.service
|
|
}
|
|
|
|
berry() {
|
|
sudo apt-get install -y libx11-dev libxft-dev libxinerama-dev sxhkd || exit 1
|
|
cd "$HOME/repos" || exit 1
|
|
git clone https://github.com/JLErvin/berry
|
|
cd berry || exit 1
|
|
make && sudo make install || exit 1
|
|
cat <<EOF | sudo tee /usr/share/xsessions/berry.desktop
|
|
[Desktop Entry]
|
|
Encoding=UTF-8
|
|
Name=berry
|
|
Comment=berry - a small window manager
|
|
Exec=berry
|
|
Type=XSession
|
|
EOF
|
|
}
|
|
|
|
(dependencies && sysinfo && browsers && meetings && dotfiles && neovim && neovim_fonts && nfs && wm && music && berry) || exit 1
|
|
|
|
echo "Reboot to make all changes active."
|