From 607a2e4eca8178fcbf9cba7a2f90fadc7e17f423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Wed, 6 Mar 2024 11:22:40 +0100 Subject: [PATCH] Fix install script --- hypr/hyprland.conf | 5 +++-- install.sh | 16 ++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 594b5f6..0ec271f 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -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 diff --git a/install.sh b/install.sh index 8d3dba2..ff0cd9f 100755 --- a/install.sh +++ b/install.sh @@ -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