From 5ca5106ba972d2ecb73cd8c29480ae601b252b38 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Thu, 7 Jul 2022 15:51:52 +0300 Subject: [PATCH] Minor changes --- karbs.sh | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/karbs.sh b/karbs.sh index 93da5b3..3852567 100755 --- a/karbs.sh +++ b/karbs.sh @@ -1,16 +1,16 @@ #!/bin/sh - echo 'Choose installation size: minimal or full' read size if pacman -Q paru; then echo else + sudo pacman -S --noconfirm rust git clone 'https://aur.archlinux.org/paru-bin' - cd paru + cd paru-bin makepkg -si cd .. - rm -rf paru + rm -rf paru-bin fi FILE = "pkg-files/$size-pkgs.txt" @@ -25,11 +25,19 @@ else rm "$size"-pkgs.txt fi -mkdir -p ~/{repos,Downloads,Documents,Videos,Music,Pictures/screenshots} -git clone 'https://github.com/kristoferssolo/solorice' '~/repos/solorice' +mkdir -p "$HOME"/{repos,Downloads,Documents,Videos,Music,Pictures/screenshots} +git clone 'https://github.com/kristoferssolo/solorice' "$HOME/repos/solorice" -cp -rf '~/repos/solorice/.config' ~ -rm -rf '~/.config/awesome/desktop' -cp -rf '~/repos/solorice/.local' ~ -mv '~/.config/zsh/.zshenv' ~ -git clone 'https://github.com/streetturtle/awesome-wm-widgets' '~/.config/awesome/awesome-wm-widgets' +cp -rf "$HOME/repos/solorice/.config" "$HOME" +rm -rf "$HOME/.config/awesome/desktop" +touch "$HOME/.config/awesome/weather" +cp -rf "$HOME/repos/solorice/.local" "$HOME" +ln -rfs "$HOME/.config/zsh/.zshenv" "$HOME" +git clone 'https://github.com/streetturtle/awesome-wm-widgets' "$HOME/.config/awesome/awesome-wm-widgets" + +chsh -s /bin/zsh +sudo chmod +s /usr/bin/reboot + +echo +echo +echo -e '\033[1;31m For weather widget to work, enter API-key from https://openweathermap.org, latitude and logitude in `~/.config/awesome/weather` file, each on seperate line. \033[0m'