first commit

This commit is contained in:
2025-06-14 20:26:14 +02:00
commit 1edfd60dbd
351 changed files with 34592 additions and 0 deletions

18
.utils/live_mount.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
device="/dev/nvme0n1"
efi_part="${device}p3"
boot_part="${device}p4"
btrfs_part="${device}p5"
umount /mnt -R
mount $btrfs_part -o subvol=@ /mnt
mount $btrfs_part -o subvol=@home /mnt/home
mount $btrfs_part -o subvol=@log /mnt/var/log
mount $btrfs_part -o subvol=@cache /mnt/var/cache
mount $btrfs_part -o subvol=@tmp /mnt/tmp
mount $btrfs_part -o subvol=@swap /mnt/swap
mount $boot_part /mnt/boot
mount $efi_part /mnt/boot/efi
swapon /mnt/swap/swapfile

16
.utils/truecolor-test.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Based on: https://gist.github.com/XVilka/8346728
awk -v term_cols="${width:-$(tput cols || echo 80)}" 'BEGIN{
s="/\\";
for (colnum = 0; colnum<term_cols; colnum++) {
r = 255-(colnum*255/term_cols);
g = (colnum*510/term_cols);
b = (colnum*255/term_cols);
if (g>255) g = 510-g;
printf "\033[48;2;%d;%d;%dm", r,g,b;
printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b;
printf "%s\033[0m", substr(s,colnum%2+1,1);
}
printf "\n";
}'