Skip to content
SOSMLGPublic

About

XFCE desktop setup for Debian and Devuan

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

banner

xfcemlg

turns a fresh devuan 6 or debian 13 install into a lean xfce desktop with graphite amber theming, alacritty, hardened firefox esr and tlp battery limits.

read the quick start

starting point works with an existing xfce install or a minimal netinst. tasksel is not touched.
install ./install.sh runs every step unattended. ./install.sh --list shows the order before you run it.
theme graphite amber from boot splash to login screen. one palette, no wallpaper-derived colors.
verify bash scripts/verifySetup.sh reads state without writing. ./install.sh --verify runs the setup first, then audits.

Quick start

On a fresh Devuan 6 (Excalibur) / Debian 13 (Trixie) install, with network up:

# 1. Clone + run
git clone <this-repo> && cd xfcemlg
./install.sh
# ~everything, then a verification report; reboot when it finishes

# 2. Reboot — LightDM gives you a themed login screen, pick "Xfce Session"

install.sh = install.sh --full --verify: every step answers yes automatically (including the optional groups: VSCodium, dev tools, heavy opt-ins, gaming, chat, PhotoGIMP). Neovim was retired — VSCodium is the editor, and 40-vscodium.sh purges it. Variants:

Command What it does
./install.sh --core Core XFCE desktop only, skips optional groups
./install.sh --yes Everything, but only the default-Y steps (no optional groups)
./install.sh --phase core,desktop Only the core + desktop phases
./install.sh --only firefox,useful-apps Just those steps (short names work)
./install.sh --no-update Skip the runner's single apt-get update

Install with bash -x ./install.sh to watch every step, if you're curious or something looks off.

Minimal netinst notes

Two things a bare netinst often lacks — the toolkit handles both, but order matters:

  • Privilege for your user. Either leave the root password empty during install (Debian then puts your user in sudo), or afterwards as root:
    apt install -y sudo opendoas && usermod -aG sudo <you>
    printf 'permit persist <you> as root\n' > /etc/doas.conf
    then relogin. The toolkit refuses to run as root and warns early if escalation can't work — 12-user-groups.sh sets up the doas persist rule so the rest of the run asks for your password once.
  • No desktop at all. That's fine — 10-xfce-core.sh installs a lean --no-install-recommends XFCE set (session, xfwm4, panel, alacritty as the default terminal, Thunar base, LightDM + gtk-greeter, polkit, gvfs) directly, deliberately bypassing task-xfce-desktop: tasksel prefers SLiM as its DM and bundles Parole/QuodLibet/Mousepad that would only be purged again. If SLiM is found anyway, it gets purged and LightDM takes the console.

What you get

Layer Choice
Desktop XFCE 4.20 on X11 (floating, single panel) via LightDM + gtk-greeter login, themed to match
Theme Graphite-Amber (dark #16181D, amber accent #E8A33D): GTK + xfwm4 built at install from a pinned legacy upstream base (engine-free, all three variants), Zafiro dark icons fetched from zayronxio/Zafiro-icons, single bottom panel seed (items + JetBrainsMono Nerd Font clock/WM title fonts), matching Plymouth + GRUB + LightDM, curated graphite/amber wallpapers
Terminal Alacritty (GPU terminal) themed Graphite-Amber (TOML config), wired as THE terminal via x-terminal-emulator + exo helpers.rc
Shortcuts Super-based set (terminal, files, appfinder, screenshots, clipman, tiling, workspaces) + Ctrl+Alt+L lock via light-locker
First login Welcome wizard (update + Timeshift check, once) + wallpaper seeder (new monitors only, never overwrites)
Files Thunar, full set: volman automount, archive-plugin + xarchiver, media-tags, vcs, gtkhash, font-manager, gvfs-backends (Trash/MTP), tumbler thumbnails, custom actions (Terminal Here, Open as Root)
Media/docs VLC (Parole removed), Ristretto images, Atril PDFs, GNOME Disks for USB writes
Editor VSCodium (primary GUI editor; Mousepad/Geany removed — no TUI-editor detour)
Browser Firefox ESR hardened with Betterfox-derived system defaults + locked policies.json
Shell Saner bash (eza/bat, fzf/zoxide) + starship + the XFCE .bashrc additions block
Compositor xfwm4 built-in (picom removed): compositing on with subtle window/popup shadows, inactive dim, move/resize fade — no extra daemon, unredirects fullscreen
Notifications xfce4-notifyd stock (Dunst stays opt-in, matches the theme)
Capture Flameshot: Print = full screen, Super+Print = region-select with annotate/blur; xfce4-screenshooter removed
Clipboard xfce4-clipman panel plugin
Night light Redshift (geoclue-located, 6500K→4500K)
Battery TLP + 80% charge cap on supporting ThinkPads
Bluetooth Blueman applet (A2DP bridge auto-detected for Pulse/PipeWire)
Updates apt lists refresh periodically; the power-user set (24-*) runs update checks + a notifier (no panel widget)
Snapshots Timeshift

Scripts — phases in run order (./install.sh --list is authoritative)

Phase Script Default
core 10-xfce-core.sh — lean XFCE + LightDM, SLiM purge, no tasksel, single polkit agent Y
core 11-backports.sh — backports + apt pinning (priority 100) Y
core 12-user-groups.sh — input/video/render/plugdev + doas persist Y
core 13-hardware.sh — WiFi/BT/AMD firmware, microcode, fwupd, TLP battery maximizer, boot params, XFCE power profile, ThinkPad extras (thinkfan + powertop auto) Y
core 14-bluetooth.sh — Bluetooth stack + Blueman Y
core 15-codecs.sh — audio/video codecs + DVD Y
core 16-firefox.sh — Firefox ESR + Betterfox hardening Y
core 17-fonts.sh — Noto, Font Awesome, JetBrainsMono Nerd Font Y
core 18-shell-config.sh — retires pre-0.8 shell leftovers, then deploys the shell config: the vendored ButterBash payload (GPL-2.0, verbatim) to ~/.config/bash, plus this toolkit's own parts (utility functions, aliases, Nerd-Font prompt, completion/fzf/zoxide/keybind hooks) to ~/.config/xfcemlg/bash, and an override layer fixing the payload's bare-sudo and netstat defects + CLI ergonomics tools (bat, eza, fzf, zoxide, ripgrep, fd, ncdu, tree, jq, xclip, unar) Y
core 19-fastfetch.sh — Graphite-Amber fastfetch config (Devuan ASCII logo in the accent amber, curated module set), validated by fastfetch itself before it is accepted + btop Y
desktop 20-xfce-debloat.sh — trim task apps (Xfce Terminal, screenshooter), keep XFCE-native, silence beep Y
desktop 21-theme.sh — Graphite-Amber GTK/xfwm4 + Zafiro icons + xfwm4 compositor + panel/WM seed (items + fonts) + wallpapers Y
desktop 22-theme-boot.sh — Plymouth + GRUB + LightDM greeter theming Y
desktop 23-input-fix.sh — input fixes + locker + cross-WM Super shortcuts (term/codium/lock/logout/app-finder/vol/brightness/screenshots, plus the keyboard's own XF86Audio + Fn-row brightness keys) Y
desktop 24-power-user.sh — power-user commands (menu, update-check/gui, lock, suspend, health, selfupdate) + cron + login health check Y
apps 30-desktop-essentials.sh — Flatpak, portal, geoclue, CUPS, firewall, Thunar full, Clipman, Redshift Y
apps 31-timeshift.sh — Timeshift snapshots Y
apps 32-time-sync.sh — chrony NTP time sync Y
apps 33-useful-apps.sh — base tools, Python stack, Ristretto, Atril, Disks Y
apps 34-opencode-agent.sh — OpenCode AI agent + Super+A hotkey + skill file Y
apps 35-first-install.sh — welcome wizard + wallpaper seeder (autostart) Y
optional 40-vscodium.sh — VSCodium (primary editor, bundled Graphite-Amber theme) + Neovim purge Y
optional 41-dev-essentials.sh — C/C++ + Python toolchains Y
optional 43-photogimp.sh — GIMP + PhotoGIMP layout Y
optional 44-gaming.sh — Heroic/Steam/Wine Y
optional 45-chat.sh — Vesktop (Discord, bundled Graphite-Amber system24 theme) / Telegram Y
optional 46-heavy-optins.sh — Thunderbird / LibreOffice / OBS Studio Y
utils 50-maintenance.sh — apt cleanup + dead symlink tidy Y
utils 51-backup.sh — timestamped HOME config backup/restore Y
utils 52-skel-export.sh — per-user defaults into /etc/skel Y
utils 53-longrun.sh — long-run maintenance: weekly fstrim, SMART, apt autoclean, aged Trash/~/.cache trim, tmpfiles.d + fwupd drop-ins, stale xfwm4 state prune Y

Verification

./install.sh --verify        # after an install.sh run
bash scripts/verifySetup.sh   # anytime
bash scripts/verifySetup.sh --json   # machine-readable, for scripting

Prints PASS/FAIL/WARN for groups, lean-core packages, Thunar plugins, fonts, Firefox policy, Graphite-Amber markers (GTK/icons/Alacritty/picker), the LightDM greeter conf, SLiM absence, single polkit agent, and services (LightDM, TLP, Bluetooth, CUPS, chrony…). Exits non-zero on any FAIL — so it can gate CI. xfcemlg-health (deployed by 24-power-user) wraps it with a 0/1/2 exit-code contract, cron + login-run notification and a flock.

Asset bundle (content deb)

make pkg-deb builds a single data-only package with all versioned static assets (configs — wallpapers, power-user bins, agent skill; the Graphite-Amber themes/icons are fetched at install, not shipped) as build/xfcemlg-assets_$(cat VERSION)_all.deb; when installed it lands under /usr/share/xfcemlg-assets/. make check-deb inspects it (dpkg-deb --info / --contents) and runs lintian — zero errors expected. Metadata lives in packages/xfcemlg-assets/; the content tree is staged from the repo at build time (not duplicated in git), so changes to configs/ flow into the deb automatically.

After a run there's a full log at ~/.local/state/xfcemlg/last-run.log, and scripts/51-backup.sh snapshots your config into a timestamped tarball before major operations.


Maintenance & troubleshooting

  • Run-book: docs/TROUBLESHOOTING.md has the concrete failure modes — theme-fetch hash mismatch, DM races, polkit duplicate agents, debconf prompts, missing apt components, and xfcemlg-health/verifySetup exit codes.
  • Two login screens / DM fight? Exactly one display manager may own the console. This toolkit enables lightdm and purges slim; if you also enabled greetd/sddm, disable the spare (doas rc-update del greetd default) and keep LightDM.
  • Thunar Trash does nothing / USB won't mount? That's the missing gvfs/volman stack — re-run 30-desktop-essentials.sh step 5, then thunar -q to reload.
  • No network/volume/password dialogs on minimal? 10-xfce-core.sh covers network-manager-gnome (opt-in), xfce-polkit and dbus-x11 — re-run it if you skipped it the first time.
  • Wi-Fi says "device not managed"? Minimal installs leave the installer claiming interfaces in /etc/network/interfaces plus Debian's [ifupdown] managed=false default — re-run bash scripts/10-xfce-core.sh (§5 trims interfaces to loopback-only, sets managed=true, bounces NM), then pick your network in the applet.
  • Beep still there? Four independent sources are all silenced by 20-xfce-debloat.sh (pcspkr module, X11 bell, XFCE event sounds, readline). Anything left is per-app (e.g. the terminal's own bell toggle).
  • Backports: doas apt install -t excalibur-backports <pkg> — the pin (priority 100) never auto-upgrades.
  • Firefox locked policy: scripts/policies.json is placed system-wide (/usr/lib/firefox-esr/distribution/), Betterfox-derived defaults go to /etc/firefox-esr/xfcemlg.js. Both idempotent.
  • AI skill: 34-opencode-agent.sh drops scripts/skills/xfcemlg-SKILL.md to ~/.config/opencode/AGENTS.md (and ~/AGENTS.md) so coding agents know this box.

Layout

VERSION / RELEASE.md   toolkit version + changelog (tag: git tag -a "v$(cat VERSION)")
AGENTS.md         project instructions for AI coding agents
docs/BUILDING.md  live-ISO build guide (live-sdk + blend overlay)
docs/FIXES.md     recurring-issue resolution record
install.sh           ordered runner (phases: core/desktop/apps/optional/utils)
install.sh       one-command unattended wrapper
Makefile         release-preflight / pkg-deb / check-deb
scripts/
  lib/common.sh  shared helpers (XMLG_* envs, ask, pkgs, priv helper)
  10-*.sh … 52-*.sh  one step each, numbered = run order; runnable standalone
  verifySetup.sh end-state audit (install.sh --verify)
  policies.json  Firefox enterprise policy (used by 16-firefox.sh)
  skills/xfcemlg-SKILL.md   system context for AI agents
configs/         versioned static config (Thunar/uca.xml — deployed by 30-*)
  xfce4/         panel + window-manager seed (items, decorations, fonts) — 21-*
  wallpapers/    curated graphite/amber set (deployed to devuan-graphite-amber/)
  dunst/         opt-in matching Graphite-Amber dunstrc (optional)
  vesktop/       Graphite-Amber system24 theme (system24-graphite-amber.theme.css) — 45-*
  vscodium/      bundled Graphite-Amber color-theme extension — 40-*
  share/         power-user widgets (xfce-menu, xfce-update-gui)

The Graphite-Amber GTK/xfwm4 themes and Zafiro icons are **not** in the repo —
`21-theme.sh` fetches a pinned **legacy upstream base** and the icons from
`zayronxio/Zafiro-icons`, then auto-tweaks them via
`scripts/lib/graphite-amber-fetch.sh` (amber-accent remap #e78a53→#E8A33D,
variant assembly, Zafiro-icons-Dark rename + trim), so the git payload stays
~29 MB lighter. That upstream base is optional legacy plumbing only; the
installed default is Graphite-Amber. Cached
builds live in `~/.cache/xfcemlg/`.

Notes

  • Every apt action checks what's actually installed first — nothing is blindly force-installed or force-purged, so re-running any script is safe. Destructive writes (grub, initramfs, greeter confs) are backed up first (*.bak.<timestamp>).
  • Env vars honored: XMLG_ASSUME_YES=1 (unattended, take each default), XMLG_FULL=1 (full run — every ask() answers Yes automatically; set by install.sh --full / install.sh), XMLG_SKIP_APT_UPDATE=1, XMLG_PRIV=doas|sudo, plus upstream pins XFCE_GTK_REF=, XFCE_CURSOR_TAG=v2.0.0, NERD_FONT_TAG=3.4.0, BETTERFOX_TAG=150.0. Theme fetch: DM_THEME_URL= / DM_ICONS_URL= (tarball overrides), DM_THEME_SHA256= / DM_ICONS_SHA256= (upstream pins, already set to the recorded hashes by 21-theme.sh), DM_SKIP_FETCH=1 (reuse a cached fetch), DM_FETCH_DIR= (cache location, default ~/.cache/xfcemlg). Safety prompts (apt full-upgrade, backup restore, battery cap, PhotoGIMP version mismatch) use ask_no_full() and never auto-fire, even on --full. The flip side: benign optional installs (13-hardware's thinkfan and powertop) also use ask_no_full, but with a Y default, so a full run installs them automatically — the "never auto-fire" rule is about destructive/restore prompts only. install.sh additionally exports DEBIAN_FRONTEND=noninteractive, and install_pkgs installs with --force-confdef/--force-confold, so an unattended run never blocks on a debconf question and never overwrites an existing config.
  • Nothing auto-enables a firewall deny rule without the SSH-safe guard in 30-desktop-essentials.sh. Install and get out of the way.
  • Reboot (or at least log out/in) after a full run — group membership, the mousepoll fix, newly installed firmware/microcode, and theme changes all benefit from a fresh session.

License

MIT. See LICENSE. The vendored ButterBash payload in configs/butterbash/ keeps its own GPL-2.0 license.

Related repos

Repository standard

This repo follows the SOSMLG standard: contributing, security, changelog. Local workflow: English guide / Arabic guide. Visual standard: theme / الطابع البصري.

About

XFCE desktop setup for Debian and Devuan

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages