This commit is contained in:
2026-09-13 21:35:41 +06:00
parent 0f05d3bb54
commit f724db9119
42 changed files with 270 additions and 2034 deletions
+17 -90
View File
@@ -82,7 +82,7 @@ sudo apk add \
curl \
cmake \
libcurl \
libcurl-dev \
curl-dev \
opencv \
opencv-dev \
waybar \
@@ -98,12 +98,20 @@ sudo apk add \
wireplumber \
alsa-utils \
networkmanager \
nm-applet \
pcmanfm-gtk3 \
network-manager-applet \
pcmanfm \
firefox \
swaylock \
swaylock-effects \
playerctl \
font-jetbrains-mono
font-jetbrains-mono \
ristretto \
grim \
bluez \
pavucontrol \
brightnessctl \
networkmanager-tui \
blueman \
htop
success "all packages installed"
@@ -126,61 +134,7 @@ else
fi
# 5. Build zenith-cli
if [ -d "$HOME/zenith-cli/.git" ]; then
info "zenith-cli already exists, updating..."
cd "$HOME/zenith-cli"
git pull
else
if [ -e "$HOME/zenith-cli" ]; then
error "$HOME/zenith-cli exists but is not a git repository"
exit 1
fi
info "cloning zenith-cli repository..."
git clone \
https://zenithcode.duckdns.org/s13bby/zenith-cli.git \
"$HOME/zenith-cli"
fi
if [ ! -f "$HOME/zenith-cli/build.sh" ]; then
error "zenith-cli/build.sh not found"
exit 1
fi
info "making build script executable..."
chmod +x "$HOME/zenith-cli/build.sh"
info "building zenith-cli..."
sh "$HOME/zenith-cli/build.sh"
if [ ! -f "$HOME/zenith-cli/zenith-cli" ]; then
error "zenith-cli binary was not created"
exit 1
fi
info "installing zenith-cli to ~/.local/bin..."
mkdir -p "$HOME/.local/bin"
cp "$HOME/zenith-cli/zenith-cli" "$HOME/.local/bin/zenith-cli"
chmod +x "$HOME/.local/bin/zenith-cli"
if ! grep -Fq 'export PATH="$HOME/.local/bin:$PATH"' "$HOME/.profile" 2>/dev/null; then
echo 'export PATH="$HOME/.local/bin:$PATH"' >> "$HOME/.profile"
success "added ~/.local/bin to PATH in .profile"
fi
# Make zenith-cli available in the current shell
export PATH="$HOME/.local/bin:$PATH"
success "zenith-cli ready to work"
# 6. Copy configs
# 5. Copy configs
info "creating config directory..."
@@ -188,7 +142,7 @@ mkdir -p "$HOME/.config"
info "copying dotfiles..."
for config in hypr labwc waybar wofi qt6ct alacritty; do
for config in alacritty swaylock labwc waybar wofi; do
if [ -d "$HOME/labwc-alpine/configs/$config" ]; then
cp -r "$HOME/labwc-alpine/configs/$config" "$HOME/.config/"
else
@@ -196,37 +150,10 @@ for config in hypr labwc waybar wofi qt6ct alacritty; do
exit 1
fi
done
if [ -d "$HOME/labwc-alpine/palettes" ]; then
cp -r "$HOME/labwc-alpine/palettes" "$HOME/.config/"
else
error "palettes directory not found"
exit 1
fi
success "dotfiles copied"
# 7. Copy fonts
info "creating fonts directory..."
mkdir -p "$HOME/.local/share/fonts"
if [ -d "$HOME/labwc-alpine/fonts" ]; then
cp -r "$HOME/labwc-alpine/fonts/"* "$HOME/.local/share/fonts/"
else
error "fonts directory not found"
exit 1
fi
info "updating font cache..."
fc-cache -fv >/dev/null
success "fonts copied"
# 8. Copy backgrounds
# 6. Copy backgrounds
info "creating backgrounds directory..."
@@ -242,7 +169,7 @@ fi
success "backgrounds copied"
# 9. Done
# 7. Done
echo
echo "┌──────────────────────────────────────┐"