Add dotfiles directory

This directory contains my custom scripts for preparing the system to use my dotfiles.
This commit is contained in:
Harzo 2023-05-26 16:50:27 +02:00
parent 9ea0868a09
commit 6723f15651
10 changed files with 139 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#!/bin/sh
if command -v paru; then
echo "Paru already installed, skipping"
exit 0
fi
git clone https://aur.archlinux.org/paru.git /tmp/paru
CURDIR="$PWD"
trap 'cd $CURDIR' EXIT
cd /tmp/paru
makepkg -si
sed -i 's/^#Color$/Color/' /etc/pacman.conf
sed -i 's/^ParallelDownloads.*/ParallelDownloads = 5/' /etc/pacman.conf
sed -i 's/^#BottomUp$/BottomUp/' /etc/paru.conf

View File

@ -0,0 +1,10 @@
#!/bin/sh
if command -v cargo && command -v rustc; then
echo "Rust already installed, skipping"
exit 0
fi
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. $HOME/.cargo/env

View File

@ -0,0 +1,7 @@
#!/bin/sh
handlr set "image/gif" org.gnome.gThumb.desktop
handlr set "image/jpeg" org.gnome.gThumb.desktop
handlr set "image/png" org.gnome.gThumb.desktop
handlr set "image/webp" org.gnome.gThumb.desktop
handlr set "inode/directory" pcmanfm.desktop
handlr set "text/plain" nvim.desktop

View File

@ -0,0 +1,3 @@
#!/bin/sh
cat <<< '[Theme]
Current=archlinux-simplyblack' > /etc/sddm.conf

View File

@ -0,0 +1,8 @@
#!/bin/sh
CURDIR="$(dirname "$0")"
. "${CURDIR}/../helpers/root_guard.sh"
root_guard
pacman -S --needed virt-manager qemu-base
systemctl enable --now libvirtd

View File

@ -0,0 +1,8 @@
#!/bin/sh
root_guard() {
if [ "$(id -u)" -ne "0" ]; then
echo "Please run as root."
exit 3
fi
}

View File

@ -0,0 +1,25 @@
#!/bin/sh
CURDIR="$(dirname "$0")"
. "${CURDIR}/helpers/root_guard.sh"
root_guard
# Refresh package database
pacman -Sy
# Uninstall unused software
pacman -Rc - < "${CURDIR}/pkglist-remove"
# Install required packages
pacman -S --needed - < "${CURDIR}/pkglist-add"
"${CURDIR}"/core/install-rust.sh
"${CURDIR}"/core/install-paru.sh
# Install AUR packages
paru -S --needed < "${CURDIR}/pkglistaur-add"
"${CURDIR}"/core/setup-default-apps.sh
"${CURDIR}"/core/setup-sddm.sh
systemctl enable --now sddm

View File

@ -0,0 +1,40 @@
adwaita-qt5
adwaita-qt6
bottom
dunst
ffmpegthumbnailer
file-roller
firefox
fish
foot
gnome-keyring
gthumb
gvfs
handlr
imagemagick
libva
linux-headers
lsd
mako
mpv
neofetch
neovim
networkmanager
nm-connection-editor
otf-fira-sans
polkit
polkit-gnome
qt5ct
qt6ct
seatd
starship
sudo
thunar
thunderbird
ttf-jetbrains-mono-nerd
tumbler
udiskie
wl-clipboard
wofi
wpa_supplicant
yad

View File

@ -0,0 +1,3 @@
vim
htop
sway

View File

@ -0,0 +1,19 @@
archlinux-themes-sddm
as-tree
checkupdates-with-aur
downgrade
grimblast-git
hyprland-nvidia-git
hyprpicker-git
nerd-fonts-inter
nordic-theme
nvidia-dkms
papirus-icon-theme
ponymix
sddm-git
swaylock-effects
swayosd-git
ttf-ms-win11-auto
ttf-twemoji
waybar-hyprland-git
xdg-desktop-portal-hyprland-git