A lightweight, zero-dependency Terminal User Interface (TUI) and automation engine designed to solve desktop theming fragmentation across Cinnamon Shell, GTK 3, GTK 4 / Libadwaita, Cursor Themes, and Flatpak applications.
Modern Linux desktops — particularly Linux Mint Cinnamon running a mixture of native and sandboxed Flatpak apps — suffer from four distinct layers of theming isolation:
┌────────────────────────────────────────────────────────────────────────┐
│ Cinnamon Desktop Shell │
│ (Panel, Start Menu, Workspace Switcher, Applets) │
├───────────────────────────────────┬────────────────────────────────────┤
│ GTK 3 Applications │ GTK 4 / Libadwaita Apps │
│ (Nemo, Xed, Celluloid, etc.) │ (Easy Effects, TubeConverter, │
│ Reads: org.cinnamon.desktop.gtk │ Flatseal, modern GNOME apps) │
│ and ~/.config/gtk-3.0/ │ Ignores classic GTK themes; │
│ │ requires ~/.config/gtk-4.0/ CSS │
├───────────────────────────────────┴────────────────────────────────────┤
│ Flatpak Container Sandboxes │
│ (Cannot see ~/.themes, ~/.icons, or GTK configs unless permitted; │
│ often fall back to default white/black cursors and Adwaita styles) │
├────────────────────────────────────────────────────────────────────────┤
│ Cursor Synchronization │
│ (Root X11 window reads ~/.icons/default/index.theme; │
│ Flatpaks require XCURSOR_THEME & XCURSOR_SIZE environment vars) │
└────────────────────────────────────────────────────────────────────────┘
Linux Mint Uniform Themer bridges all these layers simultaneously in a single keystroke.
- Zero Pip Dependencies: Built strictly using Python's standard library (
curses,subprocess,urllib,tarfile,zipfile). Runs natively on stock Linux Mint without setting up virtual environments or installing pip packages. - Dynamic Virtual Scrolling: Effortlessly browses long lists of theme suites with automatic viewport scrolling, position indicators, and support for
↑/↓,Page Up,Page Down,Home, andEnd. - Complete Libadwaita & Modern App Alignment: Automatically links theme
gtk-4.0stylesheets and dynamically injects Libadwaita color variables (@window_bg_color,@accent_color,@headerbar_bg_color,@card_bg_color, etc.) for themes that lack native Libadwaita tokens (such as Nordic, Dracula, Sweet, Mint-Y). Modern Libadwaita apps (Bazaar, Amberol, Flatseal, etc.) render in the exact theme palette instead of falling back to stock GNOME Adwaita defaults. - Comprehensive Flatpak Overrides: Automatically grants read-only container access to host themes (
xdg-data/themes,~/.themes,~/.icons,xdg-config/gtk-3.0,xdg-config/gtk-4.0), exportsXCURSOR_THEME,XCURSOR_SIZE, andQT_QPA_PLATFORMTHEME, and safely preventsGTK_THEMEenvironment collisions that break modern Libadwaita apps. - Window Controls, Metacity Borders & Layout Alignment (X11 & Wayland): Synchronizes window manager border themes (
org.cinnamon.desktop.wm.preferences theme) for native SSD apps (Nemo, Xed) and styles GTK 4 / Libadwaita CSDwindowcontrolswith matching circular colored buttons (Red, Yellow, Green with subtle hover glyphs) for Flatpaks, ensuring complete window titlebar consistency under both X11 and Wayland environments. - System-Wide Cursor Synchronization: Keeps cursor themes uniform across Cinnamon GSettings, GNOME GSettings, GTK3 INI, X11 root window, and Flatpaks.
- Subpixel Font Anti-Blur & High-DPI Scaling (X11 & Wayland): Eliminates blurry text inside Flatpaks by generating user subpixel fontconfig rules (
rgba=rgb,hintstyle=hintfull,lcddefault), sharingxdg-config/fontconfig:rowith all containers, synchronizing XFT font rendering keys in GTK 3 & 4settings.ini, and injecting crisp font antialiasing and native Ozone platform flags into Electron/Chromium Flatpaks (Brave, VSCodium, etc.). - Instant Safety Fallback (
[b]): Pressbat any time to instantly restore stockMint-Y-Dark, defaultMint-Yicons, andBibata-Modern-Classiccursors while safely clearing any active overrides. - Automated Error Recovery: If any upstream theme download or compilation fails, the system automatically catches the failure and reverts safely to
Mint-Y-Darkso the desktop is never left in a broken state.
Only themes with proven upstream support for GTK 3, GTK 4, Cinnamon, and high-DPI icon integration are included:
| Suite | Style / Mode | Upstream Provider | Included Assets |
|---|---|---|---|
| Linux Mint Default | Dark | Linux Mint | [SAFETY FALLBACK] Stock Mint-Y-Dark, Mint-Y icons & pure Adwaita |
| Nordic | Dark & Polar (Light) | EliverLara | Nordic arctic palette with matching Nordzy icon packs & Bibata cursor |
| Gruvbox Retro | Dark | vinceliuice (Colloid) | Warm earthy retro-groove theme with Cinnamon panel & Libadwaita styling |
| Everforest Nature | Dark | vinceliuice (Colloid) | Nature-inspired green-grey tones with Libadwaita stylesheet & Cinnamon assets |
| Graphite Minimal | Dark | vinceliuice | Refined monochrome minimalist dark design with Cinnamon shell & GTK4 styling |
| Sweet Cyberpunk | Dark | EliverLara | Vibrant neon gradient dark aesthetic with Cinnamon & GTK4 window assets |
| Dracula Official | Dark | dracula | Iconic high-contrast dark gothic theme with official Dracula cursors |
| Tokyo Night | Dark & Light | Fausto-Korpsvart | Downtown Tokyo aesthetic with bundled Tokyonight icon sets & Libadwaita |
| macOS WhiteSur | Dark & Light | vinceliuice | macOS Big Sur/Sonoma styling + WhiteSur icons & ful1e5 macOS cursor |
| Catppuccin | Mocha & Latte | vinceliuice & catppuccin | Soothing pastel dark & light palettes with Catppuccin cursors |
| Orchis Modern | Dark & Light | vinceliuice | Material-inspired rounded design with Cinnamon shell integration |
git clone https://github.com/auarunkumar1/linux-mint-uniform-themer.git ~/Documents/pyscripts/cinna-theme
cd ~/Documents/pyscripts/cinna-theme
./install.shThe installer:
- Links the executable to
~/.local/bin/cinna-theme. - Installs the desktop entry into
~/.local/share/applications/so you can launch Cinnamon Theme Sync directly from your Cinnamon application menu.
Launch the TUI from any terminal:
cinna-theme| Key | Action |
|---|---|
↑ / ↓ or k / j |
Navigate items and scroll smoothly through the suite list |
Page Up / Page Down |
Jump 4 items up or down |
Home / End |
Jump directly to the top or bottom of the preset list |
Tab or ← / → |
Switch tabs (Curated Suites, Custom Components, Flatpak & Libadwaita, Help) |
Enter |
1-Click download (if needed) and apply system-wide |
f |
Toggle Font Anti-Blur: Toggles subpixel RGB rendering & Flatpak Ozone flags |
b |
Emergency Safety Fallback: Instantly restores Mint-Y-Dark system-wide |
s |
Force re-sync Flatpak sandboxes to active host theme |
r |
Refresh live desktop & sandbox status |
q / Esc |
Quit the application |
# Check current system-wide theme, cursor, and Flatpak status (with blurriness warning)
cinna-theme --status
# Fix Flatpak text blurriness (Enforce subpixel RGB & High-DPI fontconfig)
cinna-theme --fix-blur
# Toggle subpixel font anti-blur and Flatpak overrides on/off
cinna-theme --toggle-antiblur
# List all available presets with installation status
cinna-theme --list
# Apply any preset headless
cinna-theme --apply nordic-dark
cinna-theme --apply gruvbox-dark
cinna-theme --apply everforest-dark
cinna-theme --apply sweet-dark
cinna-theme --apply graphite-dark
cinna-theme --apply dracula
cinna-theme --apply tokyo-night-dark
cinna-theme --apply whitesur-dark
# Force re-sync Flatpaks to your active desktop theme
cinna-theme --sync-flatpak
# Instant safety fallback to Linux Mint defaults (Mint-Y-Dark)
cinna-theme --fallback
# or
cinna-theme --resetWhen you apply a theme, cinna-theme automates the following steps:
- Cinnamon Shell & GTK3:
gsettings set org.cinnamon.desktop.interface gtk-theme <theme>gsettings set org.cinnamon.desktop.interface icon-theme <icons>gsettings set org.cinnamon.desktop.interface cursor-theme <cursor>gsettings set org.cinnamon.theme name <theme>
- XDG Desktop Portal & Libadwaita:
gsettings set org.cinnamon.desktop.interface color-scheme "prefer-dark"(or"prefer-light")gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"- Links
<theme_path>/gtk-4.0/gtk.cssandassetsto~/.config/gtk-4.0/.
- GTK 3 & GTK 4 Settings Files:
- Generates and synchronizes both
~/.config/gtk-3.0/settings.iniand~/.config/gtk-4.0/settings.iniwith cursor definitions (gtk-cursor-theme-name,gtk-cursor-theme-size) and window controls layout (gtk-decoration-layout = :minimize,maximize,close). - Keeps
gtk-theme-namefor GTK 3 while ensuring GTK 4 / Libadwaita retains its native stylesheet engine (styling customized cleanly viagtk.css), avoiding stripped buttons and corrupted headerbars.
- Generates and synchronizes both
- User-Space Theme & Cursor Shadowing + X11 Sync:
- Theme & Cursor Shadowing: Flatpak sandboxes cannot access
/usr/share/themes/or/usr/share/icons/from the host because the/usrhierarchy is reserved by Flatpak runtimes.cinna-themeautomatically detects when the active desktop theme or cursor pack resides in/usr/share/and shadows it into~/.themes/<theme>and~/.icons/<cursor>so all sandboxed applications have direct filesystem access. - X11 Resources (
xrdb): MergesXcursor.themeandXcursor.sizedynamically into the active X11 server viaxrdb -mergeand updates~/.Xresources. - Root Window: Updates
~/.icons/default/index.themeso legacy, root-level, and desktop boundary windows inherit the cursor.
- Theme & Cursor Shadowing: Flatpak sandboxes cannot access
- Flatpak Sandbox Overrides:
- Grants read-only filesystem permissions for themes, icons, and GTK 3/4 configurations (
xdg-data/themes,xdg-data/icons,~/.themes,~/.icons,xdg-config/gtk-3.0,xdg-config/gtk-4.0). - Explicitly avoids global
GTK_THEMEenvironment injection (which crashes Libadwaita's style engine into bare unstyled text), while settingXCURSOR_THEME,XCURSOR_SIZE, andQT_QPA_PLATFORMTHEME=qt5ct.
- Grants read-only filesystem permissions for themes, icons, and GTK 3/4 configurations (
- The Issue: A common workaround in customization scripts is forcing themes onto Flatpaks via
--env=GTK_THEME=<theme_name>. - Why It Fails: Modern Flatpak apps (e.g., Flatseal, Bottles, EasyEffects, Amberol, TubeConverter) are built using GTK 4 and Libadwaita. Libadwaita explicitly bypasses legacy GTK 3 theme engines and relies on its own internal Adwaita stylesheet. When
GTK_THEMEis passed via the environment, GTK 4 attempts to load that theme name. Because Flatpak runtimes do not contain host system themes (and legacy GTK 3 themes lack GTK 4 CSS rules), GTK 4's CSS parser crashes and falls back to a raw unstyled skeleton:- Window headerbars fail to render or disappear completely.
- Buttons lose all background fills, borders, and padding, rendering as bare unstyled text.
- The Solution in
cinna-theme: Global user overrides explicitly unsetGTK_THEMEandICON_THEME. GTK 3 applications read the theme safely through~/.config/gtk-3.0/settings.ini, while GTK 4 / Libadwaita apps load custom styling gracefully via~/.config/gtk-4.0/gtk.csswithout breaking their core styling engine.
- The Issue: Sandboxed GTK 4 / Libadwaita apps running under Linux Mint Cinnamon often lose their minimize and maximize buttons, leaving only a close button or no controls at all.
- Why It Fails: Cinnamon uses
:minimize,maximize,closefor window controls, butxdg-desktop-portal-xappandxdg-desktop-portal-gtkdo not always broadcast GNOME Shell window manager preferences into Flatpak containers. - The Solution in
cinna-theme: Automatically queries Cinnamon's active button layout fromorg.cinnamon.desktop.wm.preferences button-layoutand injectsgtk-decoration-layout = :minimize,maximize,closeinto both~/.config/gtk-3.0/settings.iniand~/.config/gtk-4.0/settings.ini.
- The Issue: Flatpaks ignore host cursor themes and system themes like
Mint-Y-Dark, defaulting to white X11 cursors or standard Adwaita. - Why It Fails: Flatpak explicitly forbids sharing
/usr/share/themesor/usr/share/iconswith sandboxes (Path "/usr" is reserved by Flatpak). - The Solution in
cinna-theme: Automatically shadows system themes and cursors from/usr/share/into user space (~/.themesand~/.icons). Because Flatpak overrides grant read-only access to user directories (~/.themes:roand~/.icons:ro), sandboxed apps immediately gain access to the complete theme and cursor assets.
- The Issue: Applications like Readest, Spotify, or VSCodium may stay in light mode even when the desktop is dark.
- Why It Happens: These applications use Chromium Embedded Framework (CEF) or Electron, where the main interface is an internal web application rather than GTK widgets. If the application's internal configuration (such as Readest's
globalViewSettings.theme) is hardcoded to"light", it overrides the system appearance portal. - The Solution: Ensure the system portal provides
color-scheme = 1(dark), shadow the GTK 3 theme so CEF's file dialogs match, and set the application's internal appearance toggle to"auto"or"dark".
Huge thanks to the upstream designers and maintainers whose work makes desktop customization on Linux beautiful:
- EliverLara (Nordic, Sweet)
- vinceliuice (WhiteSur, Colloid, Orchis, Graphite, Tela Icons)
- MolassesLover (Nordzy Icon Theme)
- Fausto-Korpsvart (Tokyo Night GTK)
- dracula (Dracula Theme Organization)
- ful1e5 (Apple Cursor)
- Papirus Development Team (Papirus Icons)
Distributed under the MIT License.