Compare commits
No commits in common. "c74d9b1a5b36e7a52e9849c769fe36fde3d82919" and "7037ac3cbe99dcaf4b2b0ac1ec14de67fa6198cc" have entirely different histories.
c74d9b1a5b
...
7037ac3cbe
61
install.sh
61
install.sh
|
@ -1,21 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Headless
|
||||
NVIM=false
|
||||
ZSH=false
|
||||
PROFILE=false
|
||||
TMUX=false
|
||||
NVIM=true
|
||||
ZSH=true
|
||||
PROFILE=true
|
||||
TMUX=true
|
||||
|
||||
# GUI
|
||||
AWESOME=false
|
||||
ALACRITTY=false
|
||||
MPV=false
|
||||
|
||||
SUDO="sudo"
|
||||
|
||||
if [[ $(whoami) == "root" ]]; then
|
||||
SUDO=""
|
||||
fi
|
||||
|
||||
#################################################
|
||||
# Basic Preparation #
|
||||
|
@ -39,13 +34,13 @@ fi
|
|||
if $NVIM; then
|
||||
dependencies="neovim git npm unzip fzf cmake gcc make curl wget"
|
||||
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
|
||||
$SUDO pacman -Sy --needed --noconfirm $dependencies
|
||||
pacman -Sy --needed --noconfirm $dependencies
|
||||
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
|
||||
$SUDO apt update
|
||||
$SUDO apt install -y software-properties-common
|
||||
$SUDO add-apt-repository ppa:neovim-ppa/unstable -y
|
||||
$SUDO apt update
|
||||
$SUDO apt install -y $dependencies
|
||||
apt update
|
||||
apt install -y software-properties-common
|
||||
add-apt-repository ppa:neovim-ppa/unstable -y
|
||||
apt update
|
||||
apt install -y $dependencies python-venv
|
||||
fi
|
||||
|
||||
ln -s $PWD/nvim $XDG_CONFIG_HOME/nvim
|
||||
|
@ -61,11 +56,11 @@ if $ZSH; then
|
|||
PROFILE=true
|
||||
dependencies="fzf zsh curl"
|
||||
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
|
||||
$SUDO pacman -Sy --needed --noconfirm $dependencies
|
||||
pacman -Sy --needed --noconfirm $dependencies
|
||||
echo "Please manually install yay and autojump-rs"
|
||||
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
|
||||
$SUDO apt update
|
||||
$SUDO apt install -y $dependencies autojump
|
||||
apt update
|
||||
apt install -y $dependencies autojump
|
||||
fi
|
||||
|
||||
ln -s $PWD/zsh $XDG_CONFIG_HOME/zsh
|
||||
|
@ -89,10 +84,10 @@ fi
|
|||
if $AWESOME; then
|
||||
dependencies="awesome picom numlockx xcape rofi"
|
||||
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
|
||||
$SUDO pacman -Sy --needed --noconfirm $dependencies network-manager-applet xorg-xmodmap adobe-source-code-pro-fonts noto-fonts ttf-nerd-fonts-symbols
|
||||
pacman -Sy --needed --noconfirm $dependencies network-manager-applet xorg-xmodmap adobe-source-code-pro-fonts noto-fonts ttf-nerd-fonts-symbols
|
||||
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
|
||||
$SUDO apt update
|
||||
$SUDO apt install -y $dependencies awesome-extra
|
||||
apt update
|
||||
apt install -y $dependencies awesome-extra
|
||||
fi
|
||||
|
||||
ln -s $PWD/awesome $XDG_CONFIG_HOME/awesome
|
||||
|
@ -108,13 +103,13 @@ fi
|
|||
if $ALACRITTY; then
|
||||
dependencies="alacritty"
|
||||
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
|
||||
$SUDO pacman -Sy --needed --noconfirm $dependencies
|
||||
pacman -Sy --needed --noconfirm $dependencies
|
||||
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
|
||||
$SUDO apt update
|
||||
$SUDO apt install -y software-properties-common
|
||||
$SUDO add-apt-repository ppa:aslatter/ppa -y
|
||||
$SUDO apt update
|
||||
$SUDO apt install -y $dependencies
|
||||
apt update
|
||||
apt install -y software-properties-common
|
||||
add-apt-repository ppa:aslatter/ppa -y
|
||||
apt update
|
||||
apt install -y $dependencies
|
||||
fi
|
||||
|
||||
ln -s $PWD/alacritty $XDG_CONFIG_HOME/alacritty
|
||||
|
@ -127,10 +122,10 @@ fi
|
|||
if $MPV; then
|
||||
dependencies="mpv"
|
||||
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
|
||||
$SUDO pacman -Sy --needed --noconfirm $dependencies
|
||||
pacman -Sy --needed --noconfirm $dependencies
|
||||
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
|
||||
$SUDO apt update
|
||||
$SUDO apt install -y $dependencies
|
||||
apt update
|
||||
apt install -y $dependencies
|
||||
fi
|
||||
|
||||
ln -s $PWD/mpv $XDG_CONFIG_HOME/mpv
|
||||
|
@ -143,10 +138,10 @@ fi
|
|||
if $TMUX; then
|
||||
dependencies="tmux git zsh xdg-utils"
|
||||
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
|
||||
$SUDO pacman -Sy --needed --noconfirm $dependencies
|
||||
pacman -Sy --needed --noconfirm $dependencies
|
||||
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
|
||||
$SUDO apt update
|
||||
$SUDO apt install -y $dependencies
|
||||
apt update
|
||||
apt install -y $dependencies
|
||||
fi
|
||||
|
||||
ln -s $PWD/tmux $XDG_CONFIG_HOME/tmux
|
||||
|
|
|
@ -14,4 +14,3 @@ export PYTHONSTARTUP="${XDG_CONFIG_HOME}/python/pythonrc"
|
|||
export SQLITE_HISTORY="$XDG_CACHE_HOME"/sqlite_history
|
||||
export WINEPREFIX="$XDG_DATA_HOME"/wine
|
||||
export ZDOTDIR="$XDG_CONFIG_HOME"/zsh
|
||||
export XDG_CURRENT_DESKTOP=GNOME
|
||||
|
|
Loading…
Reference in New Issue