Black/Gold theme
This commit is contained in:
102
build.sh
102
build.sh
@@ -34,7 +34,7 @@ SYSTEM_TOOLS="
|
||||
vim
|
||||
neovim
|
||||
ranger
|
||||
bashtop
|
||||
htop
|
||||
"
|
||||
|
||||
DISPLAY_MANAGER="
|
||||
@@ -148,23 +148,25 @@ install_system_files() {
|
||||
}
|
||||
|
||||
apply_gtk_settings() {
|
||||
log_info "Applying GTK settings..."
|
||||
export XDG_RUNTIME_DIR="/run/user/$(id -u "$ORIG_USER")"
|
||||
DBUS_ADDR="unix:path=${XDG_RUNTIME_DIR}/bus"
|
||||
:
|
||||
# JUST CHECKING IF .config/gtk4.0/settings.ini ACTUALLY WORKS
|
||||
# log_info "Applying GTK settings..."
|
||||
# export XDG_RUNTIME_DIR="/run/user/$(id -u "$ORIG_USER")"
|
||||
# DBUS_ADDR="unix:path=${XDG_RUNTIME_DIR}/bus"
|
||||
|
||||
for setting in \
|
||||
"org.gnome.desktop.interface gtk-theme Orchis-Dark-Compact" \
|
||||
"org.gnome.desktop.interface icon-theme Orchis-Dark-Compact" \
|
||||
"org.gnome.desktop.interface color-scheme prefer-dark"
|
||||
do
|
||||
if sudo -u "$ORIG_USER" \
|
||||
DBUS_SESSION_BUS_ADDRESS="$DBUS_ADDR" \
|
||||
gsettings set $setting; then
|
||||
log_success "Set $setting"
|
||||
else
|
||||
log_warn "Failed to set $setting"
|
||||
fi
|
||||
done
|
||||
# for setting in \
|
||||
# "org.gnome.desktop.interface gtk-theme Graphite-Dark-compact" \
|
||||
# "org.gnome.desktop.interface icon-theme Tela-grey-dark" \
|
||||
# "org.gnome.desktop.interface color-scheme prefer-dark"
|
||||
# do
|
||||
# if sudo -u "$ORIG_USER" \
|
||||
# DBUS_SESSION_BUS_ADDRESS="$DBUS_ADDR" \
|
||||
# gsettings set $setting; then
|
||||
# log_success "Set $setting"
|
||||
# else
|
||||
# log_warn "Failed to set $setting"
|
||||
# fi
|
||||
# done
|
||||
}
|
||||
|
||||
enable_sddm() {
|
||||
@@ -197,6 +199,56 @@ install_sddm_theme() {
|
||||
log_success "SDDM theme installed and repo removed."
|
||||
}
|
||||
|
||||
install_gtk_theme() {
|
||||
log_info "Installing GTK theme..."
|
||||
|
||||
if [ -d "$ORIG_HOME/.themes/Graphite-Dark-compact" ]; then
|
||||
log_success "GTK theme already installed."
|
||||
return
|
||||
fi
|
||||
|
||||
sudo -u "$ORIG_USER" mkdir -p "$ORIG_HOME/Repositories"
|
||||
cd "$ORIG_HOME/Repositories" || return
|
||||
|
||||
if [ ! -d "graphite-gtk" ]; then
|
||||
sudo -u "$ORIG_USER" git clone https://github.com/vinceliuice/Graphite-gtk-theme.git graphite-gtk
|
||||
else
|
||||
log_warn "Theme repo already exists, skipping clone."
|
||||
fi
|
||||
|
||||
cd "$ORIG_HOME/Repositories/graphite-gtk" || return
|
||||
sudo -u "$ORIG_USER" ./install.sh -c dark --tweaks rimless --size compact --round 0px
|
||||
|
||||
log_info "Cleaning up theme repository..."
|
||||
rm -rf "$ORIG_HOME/Repositories/graphite-gtk"
|
||||
log_success "GTK theme installed and repo removed."
|
||||
}
|
||||
|
||||
install_gtk_icons() {
|
||||
log_info "Installing Tela icons..."
|
||||
|
||||
if [ -d "$ORIG_HOME/.local/share/icons/Tela-grey-dark" ]; then
|
||||
log_success "GTK theme already installed."
|
||||
return
|
||||
fi
|
||||
|
||||
sudo -u "$ORIG_USER" mkdir -p "$ORIG_HOME/Repositories"
|
||||
cd "$ORIG_HOME/Repositories" || return
|
||||
|
||||
if [ ! -d "tela-icons" ]; then
|
||||
sudo -u "$ORIG_USER" git clone https://github.com/vinceliuice/Tela-icon-theme.git tela-icons
|
||||
else
|
||||
log_warn "Theme repo already exists, skipping clone."
|
||||
fi
|
||||
|
||||
cd "$ORIG_HOME/Repositories/tela-icons" || return
|
||||
sudo -u "$ORIG_USER" ./install.sh -c grey
|
||||
|
||||
log_info "Cleaning up icons repository..."
|
||||
rm -rf "$ORIG_HOME/Repositories/tela-icons"
|
||||
log_success "Tela icons installed and repo removed."
|
||||
}
|
||||
|
||||
run_dotfiles_setup() {
|
||||
log_info "Running dotfiles setup..."
|
||||
cd "$ORIG_PWD"
|
||||
@@ -244,14 +296,16 @@ run_dotfiles_setup() {
|
||||
}
|
||||
|
||||
# === Main flow ===
|
||||
update_system
|
||||
install_packages
|
||||
install_nvidia_drivers
|
||||
apply_gtk_settings
|
||||
install_sddm_theme
|
||||
install_system_files
|
||||
# update_system
|
||||
# install_packages
|
||||
# install_nvidia_drivers
|
||||
# install_gtk_theme
|
||||
# install_gtk_icons
|
||||
# apply_gtk_settings
|
||||
# install_sddm_theme
|
||||
# install_system_files
|
||||
run_dotfiles_setup
|
||||
enable_sddm
|
||||
# enable_sddm
|
||||
|
||||
log_success "Setup completed successfully."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user