Customization & Theming

The safe override architecture, single source of truth TOML theming, 3-layer wallpaper engine, and the custom Negen Icons font.

Updated Oct 4, 2026·7 min read
Source

NEJEN is built on a strict separation between system defaults and user customizations.

In conventional dotfile setups, running an update or pulling upstream changes inevitably causes merge conflicts or overwrites your personal configuration. NEJEN eliminates this problem with an explicit override architecture and a single source of truth for design tokens.


The Safe Override Architecture

Configuration files in NEJEN are divided into two distinct tiers:

1. Generated System Defaults (Managed)

Files like ~/.config/hypr/hyprland.conf, ~/.config/waybar/style.css, and application configurations are generated by the installer and theme engine. They carry a prominent header:

# Generated by NEJEN. DO NOT EDIT directly.
# Place user customizations in overrides.conf / overrides.css

These files are safely rewritten whenever you change themes or run nejen update.

2. User Overrides (Untouched)

Every subsystem sources a dedicated override file last. These files reside in standard user paths and are never modified, overwritten, or deleted by NEJEN updates:

Target SubsystemOverride LocationHow It Is Loaded
Hyprland~/.config/hypr/overrides.confSourced at the very end of hyprland.conf
Waybar~/.config/waybar/overrides.css@imported at the end of style.css
Keybindings~/.config/nejen/keymap.tomlMerged into keymap.toml during keymap render
The Hub~/.config/nejen/hub.tomlMerged into the central menu hierarchy
Alacritty~/.config/alacritty/overrides.tomlImported in alacritty.toml
Hyprlock~/.config/hypr/hyprlock-overrides.confSourced inside the lock configuration
Bash Shell~/.config/nejen/bash-overridesSourced after standard NEJEN aliases
nejen updateor a theme changehyprland.confgenerated, rewritten each timeoverrides.confyoursno update or themechange writes hereHYPRLANDread firstsourced last, so it wins
The two tiers for Hyprland. Every other subsystem in the table works the same way.

Example: Custom Hyprland Keybinds

To bind specialized function keys without risking upstream conflicts, add them to ~/.config/hypr/overrides.conf:

# ~/.config/hypr/overrides.conf
# Custom keyboard backlight control
bind = , F4, exec, ~/.local/bin/logi-kbd-backlight off
bind = , F5, exec, ~/.local/bin/logi-kbd-backlight on

Changing the UI Color

The quickest way to recolor the desktop is the hub. Theme › Tweak colors lists the palette slots you can change, and each one opens a color picker:

Super+N › Theme › Tweak colors

NEJEN › THEME › TWEAK COLORS (PICKER): main theme color (mono), background, foreground (text), border (dim), error (red), warning (yellow)

The picker

The Pick main color dialog: a grid of preset swatches, a Custom button, and Cancel / Select

Choose a color and press Select. NEJEN writes it into your theme, re-renders every templated config, and confirms with a notification. Here the main color goes from the shipped slate to #d8a15e and back:

Hub itemPalette keys it sets
Main Theme Color (Mono)accent, border and cursor, all to the one color
Background Colorbackground
Foreground (Text) Colorforeground
Border Color (Dim)border
Error Color (Red)error
Warning Color (Yellow)warning

The same thing from a terminal, with the hex value given up front so no picker opens:

nejen theme tweak main '#d8a15e'
nejen theme tweak background '#0b0b10'

A few details worth knowing:

  • Shipped themes are never edited. If the active theme is one NEJEN ships (such as the default nejen), the first tweak clones it to ~/.config/nejen/themes/<name>-custom, switches to the clone, and changes that. The clone opens its theme.toml in your editor first; close it and the tweak carries on.
  • What follows the palette: Hyprland window borders, both Waybars, the Alacritty and Ghostty palettes (and with them fastfetch and btop), bluetuith, and the Hyprlock screen.
  • What keeps the shipped slate: Mako notifications, the SwayOSD meter, the Walker menus and Neovim carry the Nejen colors in their own config, so they look the same in every theme.
  • Going back is Theme › Pick theme › nejen, or nejen theme set nejen. Your -custom theme stays in ~/.config/nejen/themes/ for next time.

Universal TOML Theming

Rather than requiring you to synchronize hex color codes across CSS, TOML, Lua, and shell scripts, NEJEN defines themes in a single declarative file: theme.toml.

Semantic Color Palette

Every theme declares a semantic 10-color palette. The default theme (Nejen) features the signature NEJEN slate-blue aesthetic:

[meta]
name = "Nejen"
dark = true

[palette]
background = "#08080a"           # Main background, ANSI black
foreground = "#c7d0ff"           # Main text, ANSI white
accent     = "#7f87df"           # Glowing slate blue: cursor, active states
border     = "#4a4f8a"           # Dim slate blue: container outlines, active border
muted      = "#767ca0"           # Inactive text, secondary labels
error      = "#ff3030"           # Hot red: alerts, traps, battery critical
warning    = "#d59a5a"           # Amber: notifications, warnings
magenta    = "#7c6aa6"           # Auxiliary accent
cyan       = "#6f8fbf"           # Auxiliary accent
cursor     = "#7f87df"           # Text caret
selection_background = "#2b315f"
selection_foreground = "#c7d0ff"

[wallpaper]
default = "backgrounds/default.jpg"

[hyprland]
inactive_border = "rgba(2a2a2aaa)"

[icons]
theme = "Yaru-blue"

The Template Engine

When you switch themes (nejen theme set <name>), the dispatcher executes nejen theme render:

  1. It reads theme.toml from ~/.config/nejen/themes/<name>/ or $NEJEN_PATH/themes/<name>/.
  2. It processes Go template files from $NEJEN_PATH/templates/*.tmpl.
  3. It emits native configuration files into ~/.local/state/nejen/theme/:
    • hyprland.conf (active and inactive window borders)
    • waybar.css (color variables for both bars)
    • alacritty.toml and ghostty.conf (16-color ANSI terminal palette)
    • btop.theme and bluetuith.conf (TUI colors)
    • hyprlock.conf (lock screen colors)
    • icons.theme and vscode.json (icon theme and editor color theme names)
    • mako.ini, swayosd.css and neovim.lua (override slots, empty in the shipped theme: those apps carry the Nejen colors in their own config)
  4. It applies the result without ending your session: Hyprland reloads its config, Waybar restarts, Mako reloads, btop is signalled to re-read its theme, and the SwayOSD service and wallpaper are refreshed.
theme.tomlone palettetemplates/*.tmplone per programnejen theme renderhyprland.confwaybar.cssalacritty.tomlbtop.themehyprlock.confand seven more
One theme file in, a native config for every program out.

Creating & Cloning Themes

Creating a custom look takes seconds:

# Clone the current theme into ~/.config/nejen/themes/my-theme
nejen theme clone my-theme

# Tweak colors with the picker (or pass a hex value to skip it)
nejen theme tweak main
nejen theme tweak background '#0b0b10'

# Apply immediately
nejen theme set my-theme

The 3-Layer Wallpaper Hierarchy

Wallpapers in NEJEN are resolved dynamically across three distinct directories, with earlier layers taking precedence:

1~/.config/nejen/backgrounds/your own collection: checked first,and never erased by a theme changefalls back to2~/.config/nejen/themes/<name>/backgrounds/the wallpapers of a themeyou made yourselffalls back to3$NEJEN_PATH/themes/<name>/backgrounds/the defaults thatship with NEJEN
The three places a wallpaper can come from, in the order they are checked.

Because personal wallpapers live in Layer 1, switching themes will never delete or reset your chosen wallpaper.

The wallpaper picker: Arch Theme, Arch Theme Dark, Arch Theme Wood and Default (current) on the left, a live preview of the highlighted image on the right

Wallpaper Management Commands

ActionShortcutCommand
Browse with previewsSuper+Shift+Wnejen theme bg pick
Next wallpaperSuper+Ctrl+Wnejen theme bg next
Previous wallpaperSuper+Ctrl+Shift+Wnejen theme bg prev
Random wallpaper—nejen theme bg random
Set specific image—nejen theme bg set "Misty Ridge"
Add images to library—nejen theme bg add ~/Pictures/*.jpg
Show active wallpaper—nejen theme bg current

Tip: You can symlink an existing wallpaper folder into place before running the desktop: ln -s ~/Pictures/Wallpapers ~/.config/nejen/backgrounds.


Shipped Custom Font: NegenIcons.ttf

Most Linux ricing setups rely on sprawling, inconsistent Nerd Font patches where glyph coordinates frequently shift between font releases.

NEJEN ships its own dedicated icon typeface: Negen Icons (config/fonts/NegenIcons.ttf), linked to ~/.local/share/fonts/.

Plane 16 Private Use Area (U+100000 ... U+10FFFF)
┌──────────────────────────────────────────────────────────────┐
│ U+100019  Ring (workspace)      U+100044  Charging Bolt      │
│ U+100037  Lock (caffeine off)   U+100059  Coffee (caffeine)  │
│ U+10005B  Battery 0%            U+10005E  Battery 100%       │
│ U+10006E  Wi-Fi Low             U+100070  Wi-Fi High         │
│ U+100073  Bell (notifications)  U+100074  Bell Off (DND)     │
│ U+100075  Keyboard              U+100076  Keyboard Off       │
│ U+100077  Recording Dot         U+10000D  Moon (nightlight)  │
└──────────────────────────────────────────────────────────────┘

Architectural Benefits

  1. Isolated Plane: All glyphs sit in Unicode Plane 16 (from U+100000 upwards). No other icon font or system font touches this range, eliminating font collisions entirely.
  2. Native Font Fallback: Desktop notifications, terminal lines, and lock screens render icons seamlessly without special markup.
  3. Waybar Precision: In Waybar configurations, glyphs are wrapped explicitly with <span font='Negen Icons'>...</span>, preserving the primary bar font for numerical and label typography.

Custom Waybar Modules

NEJEN's top and bottom Waybar instances are designed to integrate seamlessly with custom telemetry daemons. Modules communicate via standard JSON:

{
  "text": "154.20 USD",
  "alt": "AAPL",
  "tooltip": "Apple Inc. (Market Open)",
  "class": "gain"
}

The bottom bar includes ready-to-run modules for independent Go tools:

  • custom/vpn: Tracks NordVPN connectivity status and active exit nodes (waybar-nordvpn-go).
  • custom/tradingview: Real-time crypto, stock, and forex tickers with Pango-styled percentage gains.
  • network: Real-time interface bandwidth stats with fallback disconnect icons.