#!/bin/bash
sudo rm /var/lib/pacman/db.lck -f
echo '[options]
HoldPkg     = pacman glibc
Architecture = auto
Color
SigLevel = Never
LocalFileSigLevel = Optional
ParallelDownloads = 5

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

[multilib]
Include = /etc/pacman.d/mirrorlist

[koompi]
SigLevel = Never
Server = https://dev.koompi.org/koompi' | sudo tee /etc/pacman.conf
echo 'Server = https://mirror.osbeck.com/archlinux/$repo/os/$arch' | sudo tee /etc/pacman.d/mirrorlist
yes | sudo pacman -Scc
yes | sudo pacman -Syy archlinux-keyring
sudo pacman -Syu --noconfirm --overwrite="*" &&
yes | sudo pacman -Sy anydesk-bin networkmanager-iwd iwd linux linux-headers  &&
echo -e "[General]\nName=KOOMPI OS\nPRETTY_NAME=KOOMPI OS\nLogoPath=/usr/share/icons/koompi/koompi.svg\nWebsite=http://www.koompi.com\nVersion=2.7.1\nVariant=Rolling Release\nUseOSReleaseVersion=false" | sudo tee /etc/xdg/kcm-about-distrorc >/dev/null 2>&1 &&
echo -e 'NAME="KOOMPI OS"\nPRETTY_NAME="KOOMPI OS"\nID=koompi\nBUILD_ID=rolling\nANSI_COLOR="38;2;23;147;209"\nHOME_URL="https://www.koompi.com/"\nDOCUMENTATION_URL="https://wiki.koompi.org/"\nSUPPORT_URL="https://t.me/koompi"\nBUG_REPORT_URL="https://t.me/koompi"\nLOGO=/usr/share/icons/koompi/koompi.svg' | sudo tee /etc/os-release >/dev/null 2>&1
