Minor fixes

This commit is contained in:
Kristofers Solo 2022-11-28 00:11:52 +02:00
parent 5952f875a1
commit 7c1c62a75d

View File

@ -22,39 +22,39 @@ fi
if pacman -Q paru; then if pacman -Q paru; then
: :
else else
sudo pacman -S --noconfirm rust-src sudo pacman -S --noconfirm rust-src git wget
git clone "https://aur.archlinux.org/paru-bin" git clone https://aur.archlinux.org/paru-bin
cd paru-bin || exit cd paru-bin || exit
makepkg -si makepkg -si
cd .. cd ..
rm -rf paru-bin rm -rf paru-bin
fi fi
FILE="pkg-files/$DISPLAY_SERVER-pkgs.txt" FILE="pkg-files/$DISPLAY_SERVER-pkgs"
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
paru -Syu --noconfirm --needed - < "pkg-files/$DISPLAY_SERVER-pkgs" paru -Syu --noconfirm --needed - < $FILE
else else
curl -LO "https://raw.githubusercontent.com/kristoferssolo/karbs/main/pkg-files/$DISPLAY_SERVER-pkgs" curl -LO https://raw.githubusercontent.com/kristoferssolo/karbs/main/$FILE
paru -Syu --noconfirm --needed - < "$DISPLAY_SERVER-pkgs" paru -Syu --noconfirm --needed - < $DISPLAY_SERVER-pkgs
rm -f "$DISPLAY_SERVER-pkgs" rm -f $DISPLAY_SERVER-pkgs
fi fi
git clone "https://github.com/kristoferssolo/solorice" "$HOME" git clone https://github.com/kristoferssolo/solorice "$HOME"
git clone "https://github.com/kristoferssolo/SoloVim" "$HOME/.config/nvim" git clone https://github.com/kristoferssolo/SoloVim "$HOME"/.config/nvim
rm -rf "$HOME/{LICENSE,readme.md}" rm -rf "$HOME"/{LICENSE,readme.md,.gitignore}
mkdir -p "$HOME/{Downloads,Documents,Videos,Music,Pictures/screenshots}" mkdir -p "$HOME"/{Downloads,Documents,Videos,Music,Pictures/screenshots}
if [ $DISPLAY_SERVER = "wayland" ]; then if [ $DISPLAY_SERVER = "wayland" ]; then
rm -rf "$HOME/.config/{awesome,picom,sx,zsh/.zprofile-X11}" rm -rf "$HOME"/.config/{awesome,picom,sx,zsh/.zprofile-X11}
mv "$HOME/.config/zsh/zprofile-wayland" "$HOME/.config/zsh/.zprofile" mv "$HOME"/.config/zsh/zprofile-wayland "$HOME"/.config/zsh/.zprofile
chsh -s /bin/zsh chsh -s /bin/zsh
zsh zsh
Hyprland Hyprland
else else
rm -rf "$HOME/.config/{hypr,waybar,zsh/.zprofile-wayland}" rm -rf "$HOME"/.config/{hypr,waybar,zsh/.zprofile-wayland}
mv "$HOME/.config/zsh/zprofile-X11" "$HOME/.config/zsh/.zprofile" mv "$HOME"/.config/zsh/zprofile-X11 "$HOME"/.config/zsh/.zprofile
git clone "https://github.com/streetturtle/awesome-wm-widgets" "$HOME/.config/awesome/awesome-wm-widgets" git clone https://github.com/streetturtle/awesome-wm-widgets "$HOME"/.config/awesome/awesome-wm-widgets
chsh -s /bin/zsh chsh -s /bin/zsh
zsh zsh
echo -e "\n\n\033[1;31mFor weather widget to work, enter API-key from https://openweathermap.org, latitude and longitude in '~/.config/awesome/weather' file, each on seperate line.\033[0m" echo -e "\n\n\033[1;31mFor weather widget to work, enter API-key from https://openweathermap.org, latitude and longitude in '~/.config/awesome/weather' file, each on seperate line.\033[0m"