implement basic first install
This commit is contained in:
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "bash-completion"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "bat"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "btop"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "dbus"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "emptty"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "eza"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "fuzzel"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "ghostty"
|
||||
Executable
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "helix"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "less"
|
||||
Executable
+6
@@ -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
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "noto-fonts-ttf"
|
||||
install_package "noto-fonts-cjk"
|
||||
install_package "noto-fonts-emoji"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "pipewire"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "ripgrep"
|
||||
Executable
+8
@@ -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
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "seatd"
|
||||
Executable
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "stow"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "udisks2"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "usbutils"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "waylock"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "wiremix"
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
install_package "wl-clipboard"
|
||||
Executable
+16
@@ -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
|
||||
Executable
+17
@@ -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
|
||||
Executable
+34
@@ -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"
|
||||
Reference in New Issue
Block a user