implement basic first install

This commit is contained in:
desolate
2026-05-13 18:30:40 +03:00
commit eebada1bc0
67 changed files with 1144 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "bash-completion"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "bat"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "btop"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "dbus"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "emptty"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "eza"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "fuzzel"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "ghostty"
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "helix"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "less"
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
if install_package "light"; then
sudo chmod g+w /sys/class/backlight/*/brightness
sudo chgrp video /sys/class/backlight/*/brightness
fi
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
install_package "noto-fonts-ttf"
install_package "noto-fonts-cjk"
install_package "noto-fonts-emoji"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "pipewire"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "ripgrep"
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
if install_package "river"; then
if [ ! -d "/run/user/$(id -u)" ]; then
sudo mkdir "/run/user/$(id -u)"
fi
sudo chmod 700 "/run/user/$(id -u)"
fi
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "seatd"
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "stow"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "udisks2"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "usbutils"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "waylock"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "wiremix"
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
install_package "wl-clipboard"
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
install_package "yazi"
plugin="mount"
if [ -d "$HOME/.config/yazi/plugins/$plugin.yazi" ]; then
gum style --foreground 10 "✓ yazi:$plugin"
return 0
fi
if gum spin --title="Installing plugin: $plugin" --show-error -- ya pkg add "yazi-rs/plugins:$plugin"; then
gum style --foreground 10 "✓ yazi:$plugin"
else
gum style --foreground 0 "✗ yazi:$plugin"
fi
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
install_package "zsh"
install_package "zsh-completions"
install_package "zsh-autosuggestions"
install_package "zsh-syntax-highlighting"
if [ $(command -v zsh) >/dev/null 2>&1 ]; then
if [ $(basename $SHELL) != "zsh" ]; then
if ! error=$(sudo chsh -s /usr/bin/zsh $USER 2>&1); then
gum style --foreground 9 "✗ failed to change shell to zsh: $error"
else
gum style --foreground 15 "✓ changed shell to zsh"
fi
fi
fi
+34
View File
@@ -0,0 +1,34 @@
#!/bin/sh
sudo true
gum style --foreground 4 "
INSTALLING PACKAGES:
"
. "$PACKAGES_DIR/install-bash-completion.sh"
. "$PACKAGES_DIR/install-bat.sh"
. "$PACKAGES_DIR/install-btop.sh"
. "$PACKAGES_DIR/install-dbus.sh"
. "$PACKAGES_DIR/install-emptty.sh"
. "$PACKAGES_DIR/install-eza.sh"
. "$PACKAGES_DIR/install-fuzzel.sh"
. "$PACKAGES_DIR/install-ghostty.sh"
. "$PACKAGES_DIR/install-grim.sh"
. "$PACKAGES_DIR/install-helix.sh"
. "$PACKAGES_DIR/install-less.sh"
. "$PACKAGES_DIR/install-light.sh"
. "$PACKAGES_DIR/install-noto-fonts.sh"
. "$PACKAGES_DIR/install-pipewire.sh"
. "$PACKAGES_DIR/install-ripgrep.sh"
. "$PACKAGES_DIR/install-river.sh"
. "$PACKAGES_DIR/install-seatd.sh"
. "$PACKAGES_DIR/install-slurp.sh"
. "$PACKAGES_DIR/install-stow.sh"
. "$PACKAGES_DIR/install-udisks2.sh"
. "$PACKAGES_DIR/install-usbutils.sh"
. "$PACKAGES_DIR/install-waylock.sh"
. "$PACKAGES_DIR/install-wiremix.sh"
. "$PACKAGES_DIR/install-wl-clipboard.sh"
. "$PACKAGES_DIR/install-yazi.sh"
. "$PACKAGES_DIR/install-zsh.sh"