Update KARBS

This commit is contained in:
Kristofers Solo
2022-11-28 00:48:32 +02:00
parent e32f9c9561
commit e41a60963c
16 changed files with 158 additions and 123 deletions

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends "layout.html" %}
{% load static %}
{% block title %}{{ title }}{% endblock %}
{% block meta %}
@@ -27,28 +27,28 @@
<a href="https://artixlinux.org/" target="_blank">Artix</a>
Linux, make sure <code>curl</code> is installed and just run the following as the root user:
</p>
<pre><code>curl -LO krisrofers.xyz/karbs.sh
sh karbs.sh</code></pre>
<pre><code>curl -LO krisrofers.xyz/karbs
sh karbs</code></pre>
<p>
Note that the KARBS scripts will not partition any drives or wipe anything, <strong>but</strong> when it deploys the dotfiles, it will overwrite any preexisting files: e.g. the KARBS .zshrc will replace your old .zshrc, etc.
</p>
<h2>What does KARBS install?</h2>
<hr>
<p>
You can check out the programs list that KARBS parses for installation <a href="https://github.com/kristoferssolo/karbs/blob/main/pkg-files/minimal-pkgs"
You can check out the programs list that KARBS parses for installation <a href="https://github.com/kristoferssolo/karbs/blob/main/pkg-files/X11-pkgs"
target="_blank">right here</a>!
</p>
<p>Here is some idea of the programs installed:</p>
<aside>
If you don't know any of these programs and this is all Greek to you, don't worry because it's all done automatically for you and you will learn as you use the system.
</aside>
<ul class="list">
<ul class="list upper">
<li>
<a href="https://awesomewm.org/" target="_blank">awesome</a> - a highly configurable, next generation framework window manager for X
</li>
<li>
Minimalist and keyboard-centric programs for
<ul class="list">
Minimalist and keyboard-centric programs for:
<ul class="list sub">
<li>
file management (<a href="https://github.com/gokcehan/lf" target="_blank">lf</a>),
</li>

65
templates/karbs/karbs Executable file
View File

@@ -0,0 +1,65 @@
#!/bin/sh
# Kristofers Auto Rice Boostrapping Script (KARBS)
# by Kristofers Solo
# License: GNU GPLv3
echo "Choose display server (X11 / Wayland)[1/2]: "
read -r USER_INPUT
# Get display server type from user
if [ "$USER_INPUT" = 1 ]; then
DISPLAY_SERVER="X11"
elif [ "$USER_INPUT" = 2 ]; then
DISPLAY_SERVER="wayland"
else
echo "Wrong input. Please try again."
exit
fi
# Install paru
if pacman -Q paru; then
:
else
sudo pacman -S --noconfirm rust-src git wget
git clone https://aur.archlinux.org/paru-bin
cd paru-bin || exit
makepkg -si
cd ..
rm -rf paru-bin
fi
FILE="pkg-files/$DISPLAY_SERVER-pkgs"
if [ -f "$FILE" ]; then
paru -Syu --noconfirm --needed - < $FILE
else
curl -LO https://raw.githubusercontent.com/kristoferssolo/karbs/main/$FILE
paru -Syu --noconfirm --needed - < $DISPLAY_SERVER-pkgs
rm -f $DISPLAY_SERVER-pkgs
fi
git clone https://github.com/kristoferssolo/solorice "$HOME"
git clone https://github.com/kristoferssolo/SoloVim "$HOME"/.config/nvim
rm -rf "$HOME"/{LICENSE,readme.md,.gitignore}
mkdir -p "$HOME"/{Downloads,Documents,Videos,Music,Pictures/screenshots}
if [ $DISPLAY_SERVER = "wayland" ]; then
rm -rf "$HOME"/.config/{awesome,picom,sx,zsh/.zprofile-X11}
mv "$HOME"/.config/zsh/zprofile-wayland "$HOME"/.config/zsh/.zprofile
chsh -s /bin/zsh
zsh
Hyprland
else
rm -rf "$HOME"/.config/{hypr,waybar,zsh/.zprofile-wayland}
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
chsh -s /bin/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 "API-key"
echo "latitude"
echo "longitude"
echo -e "\nEverything else is ready to go. You can run 'sx' or reboot."
fi

View File

@@ -1,40 +0,0 @@
#!/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-bin
makepkg -si
cd ..
rm -rf paru-bin
fi
FILE = "pkg-files/$size-pkgs.txt"
if [[ -f "$FILE" ]]; then
paru -Syu --noconfirm --needed - < "pkg-files/$size-pkgs"
else
curl -LO "https://raw.githubusercontent.com/kristoferssolo/karbs/main/pkg-files/$size-pkgs"
paru -Syu --noconfirm --needed - < "$size-pkgs"
rm "$size"-pkgs
fi
mkdir -p "$HOME"/{repos,Downloads,Documents,Videos,Music,Pictures/screenshots}
git clone 'https://github.com/kristoferssolo/solorice' "$HOME/repos/solorice"
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 -sf "$HOME/.config/zsh/.zshenv" "$HOME"
git clone 'https://github.com/streetturtle/awesome-wm-widgets' "$HOME/.config/awesome/awesome-wm-widgets"
chsh -s /bin/zsh
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'