This commit is contained in:
2025-09-16 22:01:00 +02:00
parent d4a18ea187
commit c7991ffd5c
3 changed files with 39 additions and 40 deletions

View File

@@ -33,8 +33,8 @@ ESSENTIAL_PACKAGES="
SYSTEM_TOOLS="
vim
neovim
ranger
htop
nnn
btop
"
DISPLAY_MANAGER="
@@ -60,7 +60,8 @@ WAYLAND_ENVIRONMENT="
wl-clipboard
wl-clip-persist
wayland-utils
xorg-xwayland
xorg-xwayland
xdg-desktop-portal-hyprland
"
AUDIO_PACKAGES="
@@ -148,25 +149,23 @@ install_system_files() {
}
apply_gtk_settings() {
:
# 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"
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 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
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() {