Created
March 23, 2025 02:49
-
-
Save grahamhelton/6e36f9c86bbd67e181377ceea6c42e92 to your computer and use it in GitHub Desktop.
Run to set darkmode for i3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create GTK settings directories if they don't exist | |
mkdir -p ~/.config/gtk-3.0 | |
mkdir -p ~/.config/gtk-4.0 | |
# Set GTK3 to dark mode | |
echo "[Settings] | |
gtk-application-prefer-dark-theme=1" > ~/.config/gtk-3.0/settings.ini | |
# Set GTK4 to dark mode (for newer applications like Nautilus) | |
echo "[Settings] | |
gtk-application-prefer-dark-theme=1" > ~/.config/gtk-4.0/settings.ini | |
# Force Nautilus to use the dark theme | |
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' | |
# Set GNOME interface theme to a dark variant | |
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark' | |
# Setup environment variables for the current session and future logins | |
echo "export GTK_THEME=Adwaita:dark" >> ~/.profile | |
echo "Dark mode configuration complete! Please log out and log back in (or restart Nautilus with 'nautilus -q' followed by launching it again)." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment