Fix install script

This commit is contained in:
Thomas Avé 2024-03-06 11:22:40 +01:00
parent 34b1bb772e
commit 607a2e4eca
2 changed files with 11 additions and 10 deletions

View File

@ -4,14 +4,15 @@ env = TERMINAL,alacritty
$scripts = /home/user/.config/scripts
exec-once=hyprpaper
monitor=DP-2,preferred,0x550,1
monitor=DP-1,preferred,1920x0,1,bitdepth,10
monitor=HDMI-A-1,preferred,5760x550,1
exec-once=hyprpaper
exec-once=wl-paste --type text --watch cliphist store
exec-once=wl-paste --type image --watch cliphist store
exec-once=sleep 2 && hyprctl dispatch workspace 11
exec-once=/usr/lib/mate-polkit/polkit-mate-authentication-agent-1
exec-once=/usr/lib/kdeconnectd
exec-once=sleep 2 && hyprctl dispatch workspace 11
workspace=DP-1,11
workspace=DP-2,21

View File

@ -39,14 +39,14 @@ fi
if $NVIM; then
dependencies="neovim git unzip fzf cmake gcc make curl wget ripgrep npm"
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
$SUDO pacman -Sy --needed --noconfirm "$dependencies" npm go fd dotnet-sdk
$SUDO pacman -Sy --needed --noconfirm $dependencies npm go fd dotnet-sdk
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 curl -sL https://deb.nodesource.com/setup_21.x | $SUDO bash -
$SUDO apt update
$SUDO apt install -y "$dependencies" python3-venv nodejs golang fd-find
$SUDO apt install -y $dependencies python3-venv nodejs golang fd-find
fi
ln -s "$PWD"/nvim "$XDG_CONFIG_HOME"/nvim
@ -63,11 +63,11 @@ if $ZSH; then
PROFILE=true
dependencies="fzf zsh curl zoxide"
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
$SUDO pacman -Sy --needed --noconfirm "$dependencies" zsh-autosuggestions
$SUDO pacman -Sy --needed --noconfirm $dependencies zsh-autosuggestions
echo "Please manually install yay"
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
$SUDO apt update
$SUDO apt install -y "$dependencies"
$SUDO apt install -y $dependencies
fi
ln -s "$PWD"/zsh "$XDG_CONFIG_HOME"/zsh
@ -95,10 +95,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
$SUDO 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
$SUDO apt install -y $dependencies awesome-extra
fi
ln -s "$PWD"/awesome "$XDG_CONFIG_HOME"/awesome
@ -149,14 +149,14 @@ fi
if $TMUX; then
dependencies="tmux git zsh xdg-utils"
if [[ $OS == "NAME=\"Arch Linux\"" ]]; then
$SUDO pacman -Sy --needed --noconfirm "$dependencies"
$SUDO pacman -Sy --needed --noconfirm $dependencies
ln -s "$PWD"/tmux "$XDG_CONFIG_HOME"/tmux
git clone https://github.com/tmux-plugins/tpm "$XDG_DATA_HOME"/tmux/plugins/tpm
"$XDG_DATA_HOME"/tmux/plugins/tpm/bin/install_plugins
elif [[ $OS == "NAME=\"Ubuntu\"" ]]; then
$SUDO apt update
$SUDO apt install -y "$dependencies"
$SUDO apt install -y $dependencies
ln -s "$PWD"/tmux "$HOME"/.tmux
ln -s "$PWD"/tmux/tmux.conf "$HOME"/.tmux.conf