configs

configs
git clone https://git.prime8.dev/configs.git
Log | Files | Refs | README

configure-gdm-theme.sh (1112B)


      1 #!/usr/bin/env bash
      2 # Configure GDM to use WhiteSur theme and Banana cursor
      3 # Run this as root after gdm-themes RPM is installed
      4 
      5 set -euo pipefail
      6 
      7 echo "Configuring GDM theme settings..."
      8 
      9 # Get GDM user ID
     10 GDM_UID=$(id -u gdm)
     11 
     12 # Set theme and cursor using gsettings
     13 # Note: This needs to run as root but affect gdm user's settings
     14 export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$GDM_UID/bus
     15 
     16 # Set GTK theme
     17 sudo -u gdm gsettings set org.gnome.desktop.interface gtk-theme 'WhiteSur-Dark-yellow' || {
     18 	echo "Warning: Could not set GTK theme (GDM session may not be active)"
     19 }
     20 
     21 # Set icon theme (optional, but good for consistency)
     22 sudo -u gdm gsettings set org.gnome.desktop.interface icon-theme 'WhiteSur-Dark' 2>/dev/null || true
     23 
     24 # Set cursor theme
     25 sudo -u gdm gsettings set org.gnome.desktop.interface cursor-theme 'Banana' || {
     26 	echo "Warning: Could not set cursor theme (GDM session may not be active)"
     27 }
     28 
     29 # Set cursor size
     30 sudo -u gdm gsettings set org.gnome.desktop.interface cursor-size 24 || true
     31 
     32 echo "GDM theme configuration complete"
     33 echo "Note: Changes will take effect on next GDM start"