Big Update
This commit is contained in:
31
build.sh
31
build.sh
@@ -18,6 +18,7 @@ pacman -Syu --noconfirm
|
||||
# === Essential tools ===
|
||||
ESSENTIAL_PACKAGES="
|
||||
python3
|
||||
vim
|
||||
neovim
|
||||
ranger
|
||||
firefox
|
||||
@@ -55,11 +56,17 @@ AUDIO_PACKAGES="
|
||||
# === Fonts & theming ===
|
||||
FONTS_AND_THEME="
|
||||
otf-font-awesome
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
ttf-jetbrains-mono
|
||||
orchis-theme
|
||||
"
|
||||
|
||||
# === Multimedia ===
|
||||
MEDIA_PACKAGES="
|
||||
mpv
|
||||
eog
|
||||
ffmpeg
|
||||
"
|
||||
|
||||
# === Install all packages ===
|
||||
@@ -75,10 +82,34 @@ pacman -S --noconfirm --needed \
|
||||
# === Enable display manager ===
|
||||
echo "Enabling SDDM..."
|
||||
systemctl enable sddm
|
||||
# === Apply GTK settings for theme and color scheme ===
|
||||
echo "Applying GTK settings..."
|
||||
|
||||
# Extract DBus address from the user's environment
|
||||
USER_DBUS_ENV=$(sudo -u "$ORIG_USER" -- dbus-launch)
|
||||
eval "$USER_DBUS_ENV"
|
||||
|
||||
export DBUS_SESSION_BUS_ADDRESS
|
||||
export XDG_RUNTIME_DIR="/run/user/$(id -u $ORIG_USER)"
|
||||
|
||||
sudo -u "$ORIG_USER" DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS" \
|
||||
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
|
||||
gsettings set org.gnome.desktop.interface gtk-theme "Orchis-Dark-Compact"
|
||||
|
||||
sudo -u "$ORIG_USER" DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS" \
|
||||
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
|
||||
gsettings set org.gnome.desktop.interface icon-theme "Orchis-Dark-Compact"
|
||||
|
||||
sudo -u "$ORIG_USER" DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS" \
|
||||
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
|
||||
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
||||
|
||||
echo "GTK settings applied successfully."
|
||||
|
||||
# === Run dotfiles setup ===
|
||||
echo "Running dotfiles setup as $ORIG_USER..."
|
||||
cd "$ORIG_PWD" || exit 1
|
||||
sudo -u "$ORIG_USER" HOME="$ORIG_HOME" python3 setup.py
|
||||
sudo -E -u "$ORIG_USER" HOME="$ORIG_HOME" mkdir -p "$ORIG_HOME/Downloads" "$ORIG_HOME/Documents" "$ORIG_HOME/Pictures" "$ORIG_HOME/Videos" "$ORIG_HOME/Repositories"
|
||||
|
||||
echo "Dotfiles installed successfully."
|
||||
|
||||
Reference in New Issue
Block a user