Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

Add the LordOS wallpaper collection (Signature, Lumo, Cosmos)

Federico Pereirad32e88dae5c8
diff --git a/apps/settings/index.jsx b/apps/settings/index.jsx
index a3a25c7..3f2c88a 100644
--- a/apps/settings/index.jsx
+++ b/apps/settings/index.jsx
@@ -5,7 +5,7 @@
import {
View, Text, Image, useTheme, useSettings, themes, session, keyboard, admin, languages, setLanguage, useLocale,
reloadCatalogs, tOptional, statusText, fs, useStore, SidebarItem, Toggle, Button, TextInput, ScrollView, SearchField, Hairline, useSystemInfo, useAppWindow, useTrackpads,
- spacing, typeScale, registerDockActions, hasTouchpad,
+ spacing, typeScale, registerDockActions, hasTouchpad, findWallpaper, wallpaperThumb, WALLPAPER_CATEGORIES,
} from '@lordos/sdk';
import { useEffect, useState } from 'react';
import { SoundSettings } from './Sound.jsx';
@@ -131,37 +131,48 @@ function Appearance() {
// A theme names its wallpapers with a locale key (nameKey) and an English fallback (name).
const wallpaperName = (w) => (w.nameKey && tOptional(w.nameKey)) || w.name;
+// Grouped by category (Signature, Lumo, Cosmos, then the theme's own); grids use the thumbnails.
function Wallpapers() {
const t = useTheme();
const { t: tr } = useLocale();
const [s, set] = useSettings();
const list = t.wallpapers || [];
if (!list.length) return <Stack><Note>{tr('settings.noWallpapers')}</Note></Stack>;
- const cur = list.find((w) => w.id === s.wallpaper) || list[0];
+ const cur = findWallpaper(list, s.wallpaper);
+ const cats = [...new Set([...WALLPAPER_CATEGORIES, ...list.map((w) => w.category || 'other')])]
+ .map((c) => [c, list.filter((w) => (w.category || 'other') === c)]).filter(([, ws]) => ws.length);
+ const catName = (c) => tOptional(`settings.wallpaperCategory.${c}`) || tr('settings.wallpaperCategory.other');
return (
<Stack>
<Section>
<View style={{ flexDirection: 'row', alignItems: 'center', gap: spacing.l, paddingVertical: spacing.m }}>
- <View style={{ width: 128, height: 80, borderRadius: 8, overflow: 'hidden', border: `1px solid ${t.separator}` }}>
- <Image src={cur.src} style={{ width: '100%', height: '100%', objectFit: 'cover' }} />
+ <View style={{ width: 128, height: 72, borderRadius: 8, overflow: 'hidden', border: `1px solid ${t.separator}` }}>
+ <Image src={wallpaperThumb(cur)} style={{ width: '100%', height: '100%', objectFit: 'cover' }} />
+ </View>
+ <View style={{ flex: 1, minWidth: 0, gap: 2 }}>
+ <Text style={{ fontSize: typeScale.headline, fontWeight: 600, color: t.text, textAlign: 'start' }}>{wallpaperName(cur)}</Text>
+ <Text style={{ fontSize: typeScale.caption, color: t.textDim, textAlign: 'start' }}>{catName(cur.category || 'other')}</Text>
</View>
- <Text style={{ flex: 1, minWidth: 0, fontSize: typeScale.headline, fontWeight: 600, color: t.text, textAlign: 'start' }}>{wallpaperName(cur)}</Text>
</View>
</Section>
- <Section title={tr('settings.section.wallpaper')}>
- <View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: spacing.l, paddingVertical: spacing.m }}>
- {list.map((w) => (
- <View key={w.id} onClick={() => set({ wallpaper: w.id })} style={{ alignItems: 'center', gap: 6 }}>
- <View style={{ padding: 2, borderRadius: 10, border: `2px solid ${cur.id === w.id ? t.accent : 'transparent'}` }}>
- <View style={{ width: 112, height: 70, borderRadius: 7, overflow: 'hidden' }}>
- <Image src={w.src} style={{ width: '100%', height: '100%', objectFit: 'cover' }} />
+ {cats.map(([c, ws]) => (
+ <Section key={c} title={catName(c)}>
+ {/* 108 px items with 10 px gaps: a category of five fits on one row in the default window */}
+ <View style={{ flexDirection: 'row', flexWrap: 'wrap', gap: 10, paddingVertical: spacing.m }}>
+ {ws.map((w) => (
+ <View key={w.id} onClick={() => set({ wallpaper: w.id })} style={{ alignItems: 'center', gap: 6, width: 108 }}>
+ <View style={{ padding: 2, borderRadius: 10, border: `2px solid ${cur.id === w.id ? t.accent : 'transparent'}` }}>
+ <View style={{ width: 100, height: 56, borderRadius: 7, overflow: 'hidden', border: `1px solid ${t.separator}` }}>
+ <Image src={wallpaperThumb(w)} style={{ width: '100%', height: '100%', objectFit: 'cover' }} />
+ </View>
</View>
+ <Text style={{ fontSize: typeScale.caption, color: cur.id === w.id ? t.text : t.textDim, fontWeight: cur.id === w.id ? 600 : 400,
+ whiteSpace: 'nowrap', overflow: 'hidden', maxWidth: 108 }}>{wallpaperName(w)}</Text>
</View>
- <Text style={{ fontSize: typeScale.caption, color: cur.id === w.id ? t.text : t.textDim, fontWeight: cur.id === w.id ? 600 : 400 }}>{wallpaperName(w)}</Text>
- </View>
- ))}
- </View>
- </Section>
+ ))}
+ </View>
+ </Section>
+ ))}
</Stack>
);
}
diff --git a/assets/locales/en/settings.json b/assets/locales/en/settings.json
index 1af155a..5b3e224 100644
--- a/assets/locales/en/settings.json
+++ b/assets/locales/en/settings.json
@@ -264,5 +264,10 @@
"sharing.sshToggle": "Allow logins from the network",
"sharing.sshUserPlaceholder": "user",
"sharing.sshWhoAdminsHint": "Only administrators (the sudo group). Root can never log in.",
- "sharing.sshWhoAllHint": "Any user of this computer with a password. Root can never log in."
+ "sharing.sshWhoAllHint": "Any user of this computer with a password. Root can never log in.",
+ "wallpaperCategory.signature": "Signature",
+ "wallpaperCategory.lumo": "Lumo",
+ "wallpaperCategory.cosmos": "Cosmos",
+ "wallpaperCategory.gradients": "Gradients",
+ "wallpaperCategory.other": "Other"
}
diff --git a/assets/locales/en/shell.json b/assets/locales/en/shell.json
index 876f38c..673efb0 100644
--- a/assets/locales/en/shell.json
+++ b/assets/locales/en/shell.json
@@ -128,6 +128,17 @@
"wallpaper.ocean": "Ocean",
"wallpaper.sunset": "Sunset",
"wallpaper.graphite": "Graphite",
+ "wallpaper.crystal-crown": "Crystal Crown",
+ "wallpaper.eternal-dawn": "Eternal Dawn",
+ "wallpaper.royal-flow": "Royal Flow",
+ "wallpaper.royal-waves": "Royal Waves",
+ "wallpaper.violet-horizon": "Violet Horizon",
+ "wallpaper.lumo-aurora": "Aurora",
+ "wallpaper.lumo-celestial": "Celestial",
+ "wallpaper.event-horizon": "Event Horizon",
+ "wallpaper.infinite-galaxy": "Infinite Galaxy",
+ "wallpaper.solar-odyssey": "Solar Odyssey",
+ "wallpaper.stellar-voyage": "Stellar Voyage",
"trash.name": "Trash",
"trash.empty": "Empty Trash",
"trash.confirmTitle": "Empty the Trash?",
diff --git a/assets/locales/es/settings.json b/assets/locales/es/settings.json
index 0cc086f..207ba53 100644
--- a/assets/locales/es/settings.json
+++ b/assets/locales/es/settings.json
@@ -264,5 +264,10 @@
"sharing.sshToggle": "Permitir el inicio de sesión desde la red",
"sharing.sshUserPlaceholder": "usuario",
"sharing.sshWhoAdminsHint": "Solo administradores (el grupo sudo). Root nunca puede entrar.",
- "sharing.sshWhoAllHint": "Cualquier usuario de esta computadora con contraseña. Root nunca puede entrar."
+ "sharing.sshWhoAllHint": "Cualquier usuario de esta computadora con contraseña. Root nunca puede entrar.",
+ "wallpaperCategory.signature": "Signature",
+ "wallpaperCategory.lumo": "Lumo",
+ "wallpaperCategory.cosmos": "Cosmos",
+ "wallpaperCategory.gradients": "Degradados",
+ "wallpaperCategory.other": "Otros"
}
diff --git a/assets/locales/es/shell.json b/assets/locales/es/shell.json
index 12c054e..0487f91 100644
--- a/assets/locales/es/shell.json
+++ b/assets/locales/es/shell.json
@@ -128,6 +128,17 @@
"wallpaper.ocean": "Océano",
"wallpaper.sunset": "Atardecer",
"wallpaper.graphite": "Grafito",
+ "wallpaper.crystal-crown": "Corona de cristal",
+ "wallpaper.eternal-dawn": "Amanecer eterno",
+ "wallpaper.royal-flow": "Flujo real",
+ "wallpaper.royal-waves": "Ondas reales",
+ "wallpaper.violet-horizon": "Horizonte violeta",
+ "wallpaper.lumo-aurora": "Aurora",
+ "wallpaper.lumo-celestial": "Celestial",
+ "wallpaper.event-horizon": "Horizonte de sucesos",
+ "wallpaper.infinite-galaxy": "Galaxia infinita",
+ "wallpaper.solar-odyssey": "Odisea solar",
+ "wallpaper.stellar-voyage": "Viaje estelar",
"trash.name": "Papelera",
"trash.empty": "Vaciar Papelera",
"trash.confirmTitle": "¿Vaciar la Papelera?",
diff --git a/assets/locales/pt/settings.json b/assets/locales/pt/settings.json
index 335f1d1..baa2e5c 100644
--- a/assets/locales/pt/settings.json
+++ b/assets/locales/pt/settings.json
@@ -264,5 +264,10 @@
"sharing.sshToggle": "Permitir login pela rede",
"sharing.sshUserPlaceholder": "usuário",
"sharing.sshWhoAdminsHint": "Somente administradores (o grupo sudo). O root nunca pode entrar.",
- "sharing.sshWhoAllHint": "Qualquer usuário deste computador com senha. O root nunca pode entrar."
+ "sharing.sshWhoAllHint": "Qualquer usuário deste computador com senha. O root nunca pode entrar.",
+ "wallpaperCategory.signature": "Signature",
+ "wallpaperCategory.lumo": "Lumo",
+ "wallpaperCategory.cosmos": "Cosmos",
+ "wallpaperCategory.gradients": "Degradês",
+ "wallpaperCategory.other": "Outros"
}
diff --git a/assets/locales/pt/shell.json b/assets/locales/pt/shell.json
index 019b067..575add1 100644
--- a/assets/locales/pt/shell.json
+++ b/assets/locales/pt/shell.json
@@ -128,6 +128,17 @@
"wallpaper.ocean": "Oceano",
"wallpaper.sunset": "Pôr do sol",
"wallpaper.graphite": "Grafite",
+ "wallpaper.crystal-crown": "Coroa de cristal",
+ "wallpaper.eternal-dawn": "Amanhecer eterno",
+ "wallpaper.royal-flow": "Fluxo real",
+ "wallpaper.royal-waves": "Ondas reais",
+ "wallpaper.violet-horizon": "Horizonte violeta",
+ "wallpaper.lumo-aurora": "Aurora",
+ "wallpaper.lumo-celestial": "Celestial",
+ "wallpaper.event-horizon": "Horizonte de eventos",
+ "wallpaper.infinite-galaxy": "Galáxia infinita",
+ "wallpaper.solar-odyssey": "Odisseia solar",
+ "wallpaper.stellar-voyage": "Viagem estelar",
"trash.name": "Lixo",
"trash.empty": "Esvaziar Lixo",
"trash.confirmTitle": "Esvaziar o Lixo?",
diff --git a/assets/wallpapers/README.md b/assets/wallpapers/README.md
new file mode 100644
index 0000000..c651d7d
--- /dev/null
+++ b/assets/wallpapers/README.md
@@ -0,0 +1,62 @@
+# LordOS wallpapers
+
+Created by iPERFEX with an AI image generator; part of the LordOS brand assets.
+
+The collection that LordOS ships in `/usr/share/backgrounds/lordos/` and shows in
+**Settings → Wallpaper**, grouped by category. The default theme also keeps its four gradients
+(Aurora, Ocean, Sunset, Graphite; `themes/default/assets/`, made by `tools/gen-wallpaper.py`) as the
+"Gradients" category.
+
+| Category | File | Name (en / es / pt) |
+|---|---|---|
+| Signature | `signature/lordos-crystal-crown.jpg` | Crystal Crown / Corona de cristal / Coroa de cristal (**login screen**) |
+| Signature | `signature/lordos-eternal-dawn.jpg` | Eternal Dawn / Amanecer eterno / Amanhecer eterno |
+| Signature | `signature/lordos-royal-flow.jpg` | Royal Flow / Flujo real / Fluxo real |
+| Signature | `signature/lordos-royal-waves.jpg` | Royal Waves / Ondas reales / Ondas reais |
+| Signature | `signature/lordos-violet-horizon.jpg` | Violet Horizon / Horizonte violeta / Horizonte violeta |
+| Lumo | `lumo/lordos-lumo-aurora.jpg` | Aurora |
+| Lumo | `lumo/lordos-lumo-celestial.jpg` | Celestial (**default desktop** for new users) |
+| Cosmos | `cosmos/lordos-event-horizon.jpg` | Event Horizon / Horizonte de sucesos / Horizonte de eventos |
+| Cosmos | `cosmos/lordos-infinite-galaxy.jpg` | Infinite Galaxy / Galaxia infinita / Galáxia infinita |
+| Cosmos | `cosmos/lordos-solar-odyssey.jpg` | Solar Odyssey / Odisea solar / Odisseia solar |
+| Cosmos | `cosmos/lordos-stellar-voyage.jpg` | Stellar Voyage / Viaje estelar / Viagem estelar |
+
+The names shown in the interface come from `assets/locales/<lang>/shell.json`
+(`shell.wallpaper.<id>`) and the categories from `settings.json` (`settings.wallpaperCategory.*`).
+
+## Files
+
+- `<category>/lordos-<name>.jpg`: the wallpaper at the original's native size (1672×941 today),
+ JPEG quality 90, 4:4:4 chroma, baseline. About 4 MB for all eleven; the 2 MB PNG originals are
+ not kept in the repository (the JPEGs measure 39–46 dB PSNR against them and look the same).
+- `thumbs/<category>/lordos-<name>.jpg`: 320×180 thumbnails for Settings and the Control Center,
+ so the pickers never decode the full images.
+- `index.json`: the list (ids, categories, sizes) that the SDK bundles (`sdk/wallpapers.js`).
+
+Everything here is generated by `node tools/gen-wallpapers.mjs <folder with the PNG originals>`
+(ffmpeg and cjpeg). Don't edit the files by hand.
+
+## Higher resolutions
+
+The originals are 1672×941, so they are upscaled (bilinear, "cover" crop) on bigger screens: fine on
+1280×800 and 1920×1080, a little soft on 2560×1440 and visibly soft on 4K. To add a sharper version,
+put the PNG next to the original with its size in the name and run the generator again:
+
+```
+<originals>/lumo/[email protected] → lumo/[email protected]
+```
+
+The desktop and the login screen then pick, for each screen, the smallest variant that covers it
+(`wallpaperSrc()` in `sdk/wallpapers.js`), so a 1080p screen keeps the light base file and a 4K
+screen gets the 4K one. No code changes are needed.
+
+## License and provenance
+
+The images were created by iPERFEX with an AI image generator and are part of the LordOS brand
+assets, like the logo and Lumo. The files are distributed with LordOS under the same terms as the
+rest of the repository (MIT); the LordOS name, the crown and Lumo that appear in them are also
+covered by the LordOS trademark and brand policy (`web/content/legal/trademark.en.md`). Because
+they are AI-generated, copyright protection for the images themselves may be limited in some
+countries; the trademark policy still applies to the brand elements in them. The "Lumo" pieces are
+an artistic interpretation of the celestial fox, not the official mascot drawing (for that, use
+`assets/brand/mascot/`).
diff --git a/assets/wallpapers/cosmos/lordos-event-horizon.jpg b/assets/wallpapers/cosmos/lordos-event-horizon.jpg
new file mode 100644
index 0000000..f839942
Binary files /dev/null and b/assets/wallpapers/cosmos/lordos-event-horizon.jpg differ
diff --git a/assets/wallpapers/cosmos/lordos-infinite-galaxy.jpg b/assets/wallpapers/cosmos/lordos-infinite-galaxy.jpg
new file mode 100644
index 0000000..1774925
Binary files /dev/null and b/assets/wallpapers/cosmos/lordos-infinite-galaxy.jpg differ
diff --git a/assets/wallpapers/cosmos/lordos-solar-odyssey.jpg b/assets/wallpapers/cosmos/lordos-solar-odyssey.jpg
new file mode 100644
index 0000000..08193da
Binary files /dev/null and b/assets/wallpapers/cosmos/lordos-solar-odyssey.jpg differ
diff --git a/assets/wallpapers/cosmos/lordos-stellar-voyage.jpg b/assets/wallpapers/cosmos/lordos-stellar-voyage.jpg
new file mode 100644
index 0000000..bf82ca5
Binary files /dev/null and b/assets/wallpapers/cosmos/lordos-stellar-voyage.jpg differ
diff --git a/assets/wallpapers/index.json b/assets/wallpapers/index.json
new file mode 100644
index 0000000..cde291e
--- /dev/null
+++ b/assets/wallpapers/index.json
@@ -0,0 +1,145 @@
+[
+ {
+ "id": "crystal-crown",
+ "category": "signature",
+ "thumb": "thumbs/signature/lordos-crystal-crown.jpg",
+ "variants": [
+ {
+ "w": 1672,
+ "h": 941,
+ "file": "signature/lordos-crystal-crown.jpg"
+ }
+ ],
+ "file": "signature/lordos-crystal-crown.jpg"
+ },
+ {
+ "id": "eternal-dawn",
+ "category": "signature",
+ "thumb": "thumbs/signature/lordos-eternal-dawn.jpg",
+ "variants": [
+ {
+ "w": 1672,
+ "h": 941,
+ "file": "signature/lordos-eternal-dawn.jpg"
+ }
+ ],
+ "file": "signature/lordos-eternal-dawn.jpg"
+ },
+ {
+ "id": "royal-flow",
+ "category": "signature",
+ "thumb": "thumbs/signature/lordos-royal-flow.jpg",
+ "variants": [
+ {
+ "w": 1672,
+ "h": 941,
+ "file": "signature/lordos-royal-flow.jpg"
+ }
+ ],
+ "file": "signature/lordos-royal-flow.jpg"
+ },
+ {
+ "id": "royal-waves",
+ "category": "signature",
+ "thumb": "thumbs/signature/lordos-royal-waves.jpg",
+ "variants": [
+ {
+ "w": 1672,
+ "h": 941,
+ "file": "signature/lordos-royal-waves.jpg"
+ }
+ ],
+ "file": "signature/lordos-royal-waves.jpg"
+ },
+ {
+ "id": "violet-horizon",
+ "category": "signature",
+ "thumb": "thumbs/signature/lordos-violet-horizon.jpg",
+ "variants": [
+ {
+ "w": 1672,
+ "h": 941,
+ "file": "signature/lordos-violet-horizon.jpg"
+ }
+ ],
+ "file": "signature/lordos-violet-horizon.jpg"
+ },
+ {
+ "id": "lumo-aurora",
+ "category": "lumo",
+ "thumb": "thumbs/lumo/lordos-lumo-aurora.jpg",
+ "variants": [
+ {
+ "w": 1672,
+ "h": 941,
+ "file": "lumo/lordos-lumo-aurora.jpg"
+ }
+ ],
+ "file": "lumo/lordos-lumo-aurora.jpg"
+ },
+ {
+ "id": "lumo-celestial",
+ "category": "lumo",
+ "thumb": "thumbs/lumo/lordos-lumo-celestial.jpg",
+ "variants": [
+ {
+ "w": 1672,
+ "h": 941,
+ "file": "lumo/lordos-lumo-celestial.jpg"
+ }
+ ],
+ "file": "lumo/lordos-lumo-celestial.jpg"
+ },
+ {
+ "id": "event-horizon",
+ "category": "cosmos",
+ "thumb": "thumbs/cosmos/lordos-event-horizon.jpg",
+ "variants": [
+ {
+ "w": 1672,
+ "h": 941,
+ "file": "cosmos/lordos-event-horizon.jpg"
+ }
+ ],
+ "file": "cosmos/lordos-event-horizon.jpg"
+ },
+ {
+ "id": "infinite-galaxy",
+ "category": "cosmos",
+ "thumb": "thumbs/cosmos/lordos-infinite-galaxy.jpg",
+ "variants": [
+ {
+ "w": 1672,
+ "h": 941,
+ "file": "cosmos/lordos-infinite-galaxy.jpg"
+ }
+ ],
+ "file": "cosmos/lordos-infinite-galaxy.jpg"
+ },
+ {
+ "id": "solar-odyssey",
+ "category": "cosmos",
+ "thumb": "thumbs/cosmos/lordos-solar-odyssey.jpg",
+ "variants": [
+ {
+ "w": 1672,
+ "h": 941,
+ "file": "cosmos/lordos-solar-odyssey.jpg"
+ }
+ ],
+ "file": "cosmos/lordos-solar-odyssey.jpg"
+ },
+ {
+ "id": "stellar-voyage",
+ "category": "cosmos",
+ "thumb": "thumbs/cosmos/lordos-stellar-voyage.jpg",
+ "variants": [
+ {
+ "w": 1672,
+ "h": 941,
+ "file": "cosmos/lordos-stellar-voyage.jpg"
+ }
+ ],
+ "file": "cosmos/lordos-stellar-voyage.jpg"
+ }
+]
diff --git a/assets/wallpapers/lumo/lordos-lumo-aurora.jpg b/assets/wallpapers/lumo/lordos-lumo-aurora.jpg
new file mode 100644
index 0000000..bbae30d
Binary files /dev/null and b/assets/wallpapers/lumo/lordos-lumo-aurora.jpg differ
diff --git a/assets/wallpapers/lumo/lordos-lumo-celestial.jpg b/assets/wallpapers/lumo/lordos-lumo-celestial.jpg
new file mode 100644
index 0000000..ed3f959
Binary files /dev/null and b/assets/wallpapers/lumo/lordos-lumo-celestial.jpg differ
diff --git a/assets/wallpapers/signature/lordos-crystal-crown.jpg b/assets/wallpapers/signature/lordos-crystal-crown.jpg
new file mode 100644
index 0000000..553f967
Binary files /dev/null and b/assets/wallpapers/signature/lordos-crystal-crown.jpg differ
diff --git a/assets/wallpapers/signature/lordos-eternal-dawn.jpg b/assets/wallpapers/signature/lordos-eternal-dawn.jpg
new file mode 100644
index 0000000..3c66522
Binary files /dev/null and b/assets/wallpapers/signature/lordos-eternal-dawn.jpg differ
diff --git a/assets/wallpapers/signature/lordos-royal-flow.jpg b/assets/wallpapers/signature/lordos-royal-flow.jpg
new file mode 100644
index 0000000..5babc31
Binary files /dev/null and b/assets/wallpapers/signature/lordos-royal-flow.jpg differ
diff --git a/assets/wallpapers/signature/lordos-royal-waves.jpg b/assets/wallpapers/signature/lordos-royal-waves.jpg
new file mode 100644
index 0000000..759ff8f
Binary files /dev/null and b/assets/wallpapers/signature/lordos-royal-waves.jpg differ
diff --git a/assets/wallpapers/signature/lordos-violet-horizon.jpg b/assets/wallpapers/signature/lordos-violet-horizon.jpg
new file mode 100644
index 0000000..64add82
Binary files /dev/null and b/assets/wallpapers/signature/lordos-violet-horizon.jpg differ
diff --git a/assets/wallpapers/thumbs/cosmos/lordos-event-horizon.jpg b/assets/wallpapers/thumbs/cosmos/lordos-event-horizon.jpg
new file mode 100644
index 0000000..dafa9cd
Binary files /dev/null and b/assets/wallpapers/thumbs/cosmos/lordos-event-horizon.jpg differ
diff --git a/assets/wallpapers/thumbs/cosmos/lordos-infinite-galaxy.jpg b/assets/wallpapers/thumbs/cosmos/lordos-infinite-galaxy.jpg
new file mode 100644
index 0000000..4816084
Binary files /dev/null and b/assets/wallpapers/thumbs/cosmos/lordos-infinite-galaxy.jpg differ
diff --git a/assets/wallpapers/thumbs/cosmos/lordos-solar-odyssey.jpg b/assets/wallpapers/thumbs/cosmos/lordos-solar-odyssey.jpg
new file mode 100644
index 0000000..1f25a07
Binary files /dev/null and b/assets/wallpapers/thumbs/cosmos/lordos-solar-odyssey.jpg differ
diff --git a/assets/wallpapers/thumbs/cosmos/lordos-stellar-voyage.jpg b/assets/wallpapers/thumbs/cosmos/lordos-stellar-voyage.jpg
new file mode 100644
index 0000000..c2c3f30
Binary files /dev/null and b/assets/wallpapers/thumbs/cosmos/lordos-stellar-voyage.jpg differ
diff --git a/assets/wallpapers/thumbs/lumo/lordos-lumo-aurora.jpg b/assets/wallpapers/thumbs/lumo/lordos-lumo-aurora.jpg
new file mode 100644
index 0000000..b9642d6
Binary files /dev/null and b/assets/wallpapers/thumbs/lumo/lordos-lumo-aurora.jpg differ
diff --git a/assets/wallpapers/thumbs/lumo/lordos-lumo-celestial.jpg b/assets/wallpapers/thumbs/lumo/lordos-lumo-celestial.jpg
new file mode 100644
index 0000000..86ba6c5
Binary files /dev/null and b/assets/wallpapers/thumbs/lumo/lordos-lumo-celestial.jpg differ
diff --git a/assets/wallpapers/thumbs/signature/lordos-crystal-crown.jpg b/assets/wallpapers/thumbs/signature/lordos-crystal-crown.jpg
new file mode 100644
index 0000000..7c5cee4
Binary files /dev/null and b/assets/wallpapers/thumbs/signature/lordos-crystal-crown.jpg differ
diff --git a/assets/wallpapers/thumbs/signature/lordos-eternal-dawn.jpg b/assets/wallpapers/thumbs/signature/lordos-eternal-dawn.jpg
new file mode 100644
index 0000000..7d3c74b
Binary files /dev/null and b/assets/wallpapers/thumbs/signature/lordos-eternal-dawn.jpg differ
diff --git a/assets/wallpapers/thumbs/signature/lordos-royal-flow.jpg b/assets/wallpapers/thumbs/signature/lordos-royal-flow.jpg
new file mode 100644
index 0000000..488cc77
Binary files /dev/null and b/assets/wallpapers/thumbs/signature/lordos-royal-flow.jpg differ
diff --git a/assets/wallpapers/thumbs/signature/lordos-royal-waves.jpg b/assets/wallpapers/thumbs/signature/lordos-royal-waves.jpg
new file mode 100644
index 0000000..9764f86
Binary files /dev/null and b/assets/wallpapers/thumbs/signature/lordos-royal-waves.jpg differ
diff --git a/assets/wallpapers/thumbs/signature/lordos-violet-horizon.jpg b/assets/wallpapers/thumbs/signature/lordos-violet-horizon.jpg
new file mode 100644
index 0000000..4f18b8d
Binary files /dev/null and b/assets/wallpapers/thumbs/signature/lordos-violet-horizon.jpg differ
diff --git a/sdk/index.js b/sdk/index.js
index 8827657..4acf98f 100644
--- a/sdk/index.js
+++ b/sdk/index.js
@@ -190,3 +190,4 @@ function LocaleRoot({ children }) {
at('system', PermissionPrompt, Powerbox, KeyringPrompt, BluetoothPrompt, DisplayConfirm),
at('input', ImeOverlay));
}
+export { lordosWallpapers, wallpaperSrc, wallpaperThumb, findWallpaper, DEFAULT_WALLPAPER, GREETER_WALLPAPER, WALLPAPER_CATEGORIES } from './wallpapers.js';
diff --git a/sdk/settings.js b/sdk/settings.js
index 3ff6496..d21292d 100644
--- a/sdk/settings.js
+++ b/sdk/settings.js
@@ -1,12 +1,13 @@
// settings.js — user settings, stored in ~/.config/lordos/settings.json.
import { createStore, useStore } from './store.js';
+import { DEFAULT_WALLPAPER } from './wallpapers.js';
const DEFAULTS = {
mode: 'dark', // 'dark' | 'light'
accent: 'azul',
effects: true, // transparency with blur
reduceMotion: false, // decorative animations off (Settings → Appearance)
- wallpaper: 'aurora',
+ wallpaper: DEFAULT_WALLPAPER, // 0.8.2: Lumo Celestial (before: 'aurora', still available)
keyboard: 'latam', // before M5; now keyboards (see keyboard.js)
keyboards: null, // [{ layout, variant }] from xkb-data
keyboardIndex: 0,
diff --git a/sdk/wallpapers.js b/sdk/wallpapers.js
new file mode 100644
index 0000000..d4203b7
--- /dev/null
+++ b/sdk/wallpapers.js
@@ -0,0 +1,50 @@
+// The LordOS wallpaper collection (assets/wallpapers/, built by tools/gen-wallpapers.mjs; see its
+// README.md). Themes add it to their own wallpapers (tokens `wallpapers`), and Settings → Wallpaper
+// groups them by `category`. Each entry: { id, category, nameKey, name, src, thumb, variants }.
+// src the base image (the original size), `asset:` path
+// thumb 320×180 for grids (Settings, Control Center); never decode the full image for those
+// variants [{ w, h, src }] from small to large: wallpaperSrc() picks the one that fits a screen
+import index from '../assets/wallpapers/index.json';
+
+// The desktop of a new user (sdk/settings.js DEFAULTS) and the fallback for an unknown id.
+export const DEFAULT_WALLPAPER = 'lumo-celestial';
+// The login screen's background (themes/greeter; the remote login page serves the same image
+// through themes/greeter/assets/background.jpg, a link to it).
+export const GREETER_WALLPAPER = 'crystal-crown';
+
+// Categories in the order Settings shows them; a theme's own wallpapers come after.
+export const WALLPAPER_CATEGORIES = ['signature', 'lumo', 'cosmos', 'gradients'];
+
+// English fallback for an id: "crystal-crown" → "Crystal Crown", "lumo-celestial" → "Celestial"
+const englishName = (id) => id.replace(/^lumo-/, '').split('-').map((w) => w[0].toUpperCase() + w.slice(1)).join(' ');
+
+export const lordosWallpapers = index.map((e) => ({
+ id: e.id,
+ category: e.category,
+ nameKey: `shell.wallpaper.${e.id}`,
+ name: englishName(e.id),
+ src: `asset:wallpapers/${e.file}`,
+ thumb: `asset:wallpapers/${e.thumb}`,
+ variants: e.variants.map((v) => ({ w: v.w, h: v.h, src: `asset:wallpapers/${v.file}` })),
+}));
+
+// The image to draw a wallpaper with on an area of `width`×`height` device pixels (objectFit
+// 'cover'): the smallest variant that covers the area, or the largest one there is. With only the
+// original (1672×941 today) that is always the original; a later @3840x2160 file is used by itself
+// on screens bigger than the original.
+export function wallpaperSrc(w, width, height) {
+ const list = (w && w.variants) || [];
+ if (!list.length) return w ? w.src : null;
+ for (const v of list) {
+ const s = Math.max(width / v.w, height / v.h); // cover scale
+ if (s <= 1) return v.src;
+ }
+ return list[list.length - 1].src;
+}
+
+// The wallpaper chosen in the settings, among a theme's list.
+export const findWallpaper = (list, id) => (list || []).find((w) => w.id === id)
+ || (list || []).find((w) => w.id === DEFAULT_WALLPAPER) || (list || [])[0] || null;
+
+// The small image for a picker (falls back to the full one for theme wallpapers without a thumb).
+export const wallpaperThumb = (w) => (w && (w.thumb || w.src)) || null;
diff --git a/server/src/remote/conn.c b/server/src/remote/conn.c
index 233ca9f..6565a58 100644
--- a/server/src/remote/conn.c
+++ b/server/src/remote/conn.c
@@ -738,17 +738,17 @@ void rd_serve(SSL_CTX *ctx, int fd, const char *ip) {
if (logged) redirect("/desk", NULL); else send_login(&r);
return;
}
- if (!strcmp(r.path, "/bg.png")) { /* the login screen background */
+ if (!strcmp(r.path, "/bg.jpg")) { /* the login screen background (links to Crystal Crown) */
char p[600];
snprintf(p, sizeof p, "%s", rd_conf.greeter_theme);
char *slash = strrchr(p, '/');
- if (slash) snprintf(slash, sizeof p - (size_t)(slash - p), "/assets/background.png");
+ if (slash) snprintf(slash, sizeof p - (size_t)(slash - p), "/assets/background.jpg");
int fd = open(p, O_RDONLY | O_CLOEXEC);
struct stat st;
char *img = NULL;
if (fd >= 0 && !fstat(fd, &st) && st.st_size > 0 && st.st_size < (8 << 20) && (img = malloc((size_t)st.st_size)) &&
read(fd, img, (size_t)st.st_size) == st.st_size)
- respond(200, "OK", "image/png", NULL, img, (size_t)st.st_size);
+ respond(200, "OK", "image/jpeg", NULL, img, (size_t)st.st_size);
else respond(404, "Not Found", "text/plain", NULL, "no", 2);
free(img);
if (fd >= 0) close(fd);
diff --git a/server/src/remote/login.html b/server/src/remote/login.html
index e261238..0650f35 100644
--- a/server/src/remote/login.html
+++ b/server/src/remote/login.html
@@ -12,7 +12,7 @@
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; font: 15px/1.4 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff;
- background: #241326 url(/bg.png) center / cover no-repeat; user-select: none; }
+ background: #241326 url(/bg.jpg) center / cover no-repeat; user-select: none; }
.top { position: absolute; left: 0; right: 0; top: 8.5vh; text-align: center; }
.date { font-size: clamp(16px, 2.7vh, 26px); font-weight: 500; color: rgba(255,255,255,.88); }
.clock { font-size: clamp(64px, 17vh, 170px); font-weight: 700; line-height: 1.05; color: rgba(255,255,255,.86);
diff --git a/themes/default/assets/thumbs/aurora.jpg b/themes/default/assets/thumbs/aurora.jpg
new file mode 100644
index 0000000..c431310
Binary files /dev/null and b/themes/default/assets/thumbs/aurora.jpg differ
diff --git a/themes/default/assets/thumbs/graphite.jpg b/themes/default/assets/thumbs/graphite.jpg
new file mode 100644
index 0000000..70c3cb9
Binary files /dev/null and b/themes/default/assets/thumbs/graphite.jpg differ
diff --git a/themes/default/assets/thumbs/ocean.jpg b/themes/default/assets/thumbs/ocean.jpg
new file mode 100644
index 0000000..5ad23f4
Binary files /dev/null and b/themes/default/assets/thumbs/ocean.jpg differ
diff --git a/themes/default/assets/thumbs/sunset.jpg b/themes/default/assets/thumbs/sunset.jpg
new file mode 100644
index 0000000..6618381
Binary files /dev/null and b/themes/default/assets/thumbs/sunset.jpg differ
diff --git a/themes/default/components/ControlCenter.jsx b/themes/default/components/ControlCenter.jsx
index 3585c05..697299e 100644
--- a/themes/default/components/ControlCenter.jsx
+++ b/themes/default/components/ControlCenter.jsx
@@ -1,10 +1,19 @@
// Control Center: mode, transparency, accent, wallpaper and live CPU/RAM usage.
import {
View, Text, Image, Toggle, Slider, useSettings, useCpuUsage, useSystemInfo, formatBytes, wm, session, addListener, t as tr,
- useSound, defaultSink, sound, NowPlayingTile,
+ useSound, defaultSink, sound, NowPlayingTile, findWallpaper, wallpaperThumb,
} from '@lordos/sdk';
import { useEffect, useRef } from 'react';
+// Four wallpapers fit in the tile: the current one and a few from the collection (all of them are
+// in Settings → Wallpaper, which «Change Wallpaper…» opens).
+const QUICK = ['lumo-celestial', 'crystal-crown', 'royal-flow', 'event-horizon', 'aurora'];
+function quickWallpapers(list, cur) {
+ const current = findWallpaper(list, cur);
+ const rest = QUICK.map((id) => list.find((w) => w.id === id)).filter((w) => w && w !== current);
+ return [current, ...rest].filter(Boolean).slice(0, 4);
+}
+
function Tile({ t, children, style }) {
return <View style={[{ padding: 12, borderRadius: 12, backgroundColor: t.hover, border: `1px solid ${t.separator}` }, style]}>{children}</View>;
}
@@ -113,10 +122,10 @@ export function ControlCenter({ t, top, onClose, area = null }) {
<Tile t={t} style={{ gap: 8 }}>
<Text style={{ fontSize: 12, fontWeight: 600, color: t.text }}>{tr('shell.cc.wallpaper')}</Text>
<View style={{ flexDirection: 'row', gap: 8 }}>
- {t.wallpapers.map((w) => (
+ {quickWallpapers(t.wallpapers, s.wallpaper).map((w) => (
<View key={w.id} onClick={() => set({ wallpaper: w.id })} style={{ width: 62, height: 40, borderRadius: 6, overflow: 'hidden',
border: s.wallpaper === w.id ? `2px solid ${t.accent}` : `1px solid ${t.separator}` }}>
- <Image src={w.src} style={{ width: '100%', height: '100%', objectFit: 'cover' }} />
+ <Image src={wallpaperThumb(w)} style={{ width: '100%', height: '100%', objectFit: 'cover' }} />
</View>
))}
</View>
diff --git a/themes/default/index.jsx b/themes/default/index.jsx
index c85d5cf..d6c02b7 100644
--- a/themes/default/index.jsx
+++ b/themes/default/index.jsx
@@ -6,6 +6,7 @@ import {
useLauncherApps, launchApp, useDockEntries, dockActivate, dockMenu, dockPrefs, DOCK_LAUNCHER,
useTrash, openTrash, emptyTrash, trashMenu, ConfirmDialog,
DesktopWidgets, registerGestureActions, screenDisplays, mainDisplay, settings, Layer, PowerDialog,
+ findWallpaper, wallpaperSrc,
} from '@lordos/sdk';
import { apps } from '@lordos/apps';
import { useEffect, useRef, useState } from 'react';
@@ -122,7 +123,7 @@ function App() {
// left/right switch windows (the SDK does that). See docs/TRACKPAD.md.
useEffect(() => registerGestureActions({ up: () => setLaunchpad(true), down: () => setLaunchpad(false) }), []);
- const wallpaper = t.wallpapers.find((w) => w.id === s.wallpaper) || t.wallpapers[0];
+ const wallpaper = findWallpaper(t.wallpapers, s.wallpaper);
// Pinned and open apps; windows of the same app (Linux too) share a single icon. The app launcher
// is a Dock item too (it moves, but can't be removed).
const entries = useDockEntries(DOCK_DEFAULT, { recents: dp.dockRecents ? 3 : 0, launcher: { Icon: LaunchpadIcon, onOpen: () => setLaunchpad(true) } });
@@ -132,7 +133,7 @@ function App() {
<ThemeProvider tokens={t}>
<View style={{ width: '100%', height: '100%' }}>
{all.map((d) => (
- <Image key={d.id + ':' + d.x} src={wallpaper.src} onContextMenu={(e) => setContext({ x: e.x, y: e.y })}
+ <Image key={d.id + ':' + d.x} src={wallpaperSrc(wallpaper, d.w * (d.scale || 100) / 100, d.h * (d.scale || 100) / 100)} onContextMenu={(e) => setContext({ x: e.x, y: e.y })}
style={{ position: 'absolute', left: d.x, top: d.y, width: d.w, height: d.h, objectFit: 'cover' }} />
))}
<DesktopWidgets layer="below" />
diff --git a/themes/default/tokens.js b/themes/default/tokens.js
index e8081c9..ed3b23e 100644
--- a/themes/default/tokens.js
+++ b/themes/default/tokens.js
@@ -1,5 +1,7 @@
// Tokens of the "Lord Default" theme. The base keys (text, accent, windowBg…) are the contract
// with apps (see sdk/theme.js); the rest belongs to this theme.
+import { lordosWallpapers } from '@lordos/sdk';
+
export const accents = {
azul: '#0a84ff',
violeta: '#bf5af2',
@@ -9,13 +11,16 @@ export const accents = {
grafito: '#8e8e93',
};
-// name: English fallback; the shown name is the translation of nameKey (assets/locales/*/shell.json).
-export const wallpapers = [
- { id: 'aurora', nameKey: 'shell.wallpaper.aurora', name: 'Aurora', src: 'assets/aurora.png' },
- { id: 'ocean', nameKey: 'shell.wallpaper.ocean', name: 'Ocean', src: 'assets/ocean.png' },
- { id: 'sunset', nameKey: 'shell.wallpaper.sunset', name: 'Sunset', src: 'assets/sunset.png' },
- { id: 'graphite', nameKey: 'shell.wallpaper.graphite', name: 'Graphite', src: 'assets/graphite.png' },
+// The LordOS collection (Signature, Lumo, Cosmos; sdk/wallpapers.js) and this theme's own
+// gradients (tools/gen-wallpaper.py). name: English fallback; the shown name is the translation of
+// nameKey (assets/locales/*/shell.json). Thumbnails: assets/thumbs/ (320×180).
+const gradients = [
+ { id: 'aurora', category: 'gradients', nameKey: 'shell.wallpaper.aurora', name: 'Aurora', src: 'assets/aurora.png', thumb: 'assets/thumbs/aurora.jpg' },
+ { id: 'ocean', category: 'gradients', nameKey: 'shell.wallpaper.ocean', name: 'Ocean', src: 'assets/ocean.png', thumb: 'assets/thumbs/ocean.jpg' },
+ { id: 'sunset', category: 'gradients', nameKey: 'shell.wallpaper.sunset', name: 'Sunset', src: 'assets/sunset.png', thumb: 'assets/thumbs/sunset.jpg' },
+ { id: 'graphite', category: 'gradients', nameKey: 'shell.wallpaper.graphite', name: 'Graphite', src: 'assets/graphite.png', thumb: 'assets/thumbs/graphite.jpg' },
];
+export const wallpapers = [...lordosWallpapers, ...gradients];
export function makeTheme({ mode, accent, effects }) {
const dark = mode === 'dark';
diff --git a/themes/greeter/assets/background.jpg b/themes/greeter/assets/background.jpg
new file mode 120000
index 0000000..fea0f6c
--- /dev/null
+++ b/themes/greeter/assets/background.jpg
@@ -0,0 +1 @@
+../../../assets/wallpapers/signature/lordos-crystal-crown.jpg
\ No newline at end of file
diff --git a/themes/greeter/assets/background.png b/themes/greeter/assets/background.png
deleted file mode 100644
index b5b0a77..0000000
Binary files a/themes/greeter/assets/background.png and /dev/null differ
diff --git a/themes/greeter/index.jsx b/themes/greeter/index.jsx
index 91ebc06..82b762f 100644
--- a/themes/greeter/index.jsx
+++ b/themes/greeter/index.jsx
@@ -13,6 +13,7 @@
import { render, screen } from '@lordos/runtime';
import {
View, Text, Image, TextInput, ThemeProvider, useStore, locale, t, formatDate, formatTime, setLanguage, languages, keyboard, settings, LordOSWordmark,
+ lordosWallpapers, findWallpaper, wallpaperSrc, GREETER_WALLPAPER,
} from '@lordos/sdk';
import { useEffect, useRef, useState } from 'react';
import { createElement } from 'react';
@@ -221,7 +222,7 @@ function Greeter() {
<ThemeProvider tokens={{ mode: 'dark', accent: '#ffffff', text: '#ffffff', textDim: 'rgba(255,255,255,0.55)',
inputBg: 'rgba(255,255,255,0.16)', separator: 'rgba(255,255,255,0.22)' }}>
<View style={{ width: W, height: H, direction: 'ltr' }}>
- <Image src="assets/background.png" style={{ position: 'absolute', left: 0, top: 0, width: W, height: H, objectFit: 'cover' }} />
+ <Image src={wallpaperSrc(findWallpaper(lordosWallpapers, GREETER_WALLPAPER), W, H) || 'assets/background.jpg'} style={{ position: 'absolute', left: 0, top: 0, width: W, height: H, objectFit: 'cover' }} />
{/* date and clock */}
<View style={{ position: 'absolute', left: 0, top: Math.round(H * 0.085), width: W, alignItems: 'center' }}>
diff --git a/tools/gen-wallpapers.mjs b/tools/gen-wallpapers.mjs
new file mode 100644
index 0000000..fab729c
--- /dev/null
+++ b/tools/gen-wallpapers.mjs
@@ -0,0 +1,76 @@
+#!/usr/bin/env node
+// Builds the LordOS wallpaper collection (assets/wallpapers/) from the original PNGs.
+//
+// Usage: node tools/gen-wallpapers.mjs <source dir>
+// <source dir>/<category>/lordos-<name>.png (category: signature, lumo, cosmos)
+// <source dir>/<category>/lordos-<name>@<W>x<H>.png optional higher-resolution variant
+//
+// For each original it writes, with ffmpeg (decode, Lanczos scaling) and cjpeg (libjpeg-turbo):
+// assets/wallpapers/<category>/lordos-<name>.jpg same size and name as the original
+// assets/wallpapers/<category>/lordos-<name>@<W>x<H>.jpg each variant, at its own size
+// assets/wallpapers/thumbs/<category>/lordos-<name>.jpg 320×180 (cover crop) for Settings
+// and assets/wallpapers/index.json, which the SDK bundles (sdk/wallpapers.js) to pick, for each
+// screen, the smallest variant that covers it (or the largest one). To add a 4K version later,
+// drop lordos-<name>@3840x2160.png next to the original and run this again.
+//
+// JPEG at quality 90 with 4:4:4 chroma (the art has fine violet and gold detail that 4:2:0 blurs),
+// baseline + optimized Huffman tables. stb_image (lord-server) decodes it; WebP isn't supported.
+import { execFileSync } from 'node:child_process';
+import fs from 'node:fs';
+import os from 'node:os';
+import path from 'node:path';
+
+const root = path.resolve(path.dirname(new URL(import.meta.url).pathname), '..');
+const src = process.argv[2];
+if (!src || !fs.statSync(src, { throwIfNoEntry: false })?.isDirectory()) {
+ console.error('usage: node tools/gen-wallpapers.mjs <source dir with signature/ lumo/ cosmos/>');
+ process.exit(2);
+}
+const CATEGORIES = ['signature', 'lumo', 'cosmos'];
+const THUMB = [320, 180];
+const out = path.join(root, 'assets', 'wallpapers');
+const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'lordos-wp-'));
+
+const run = (cmd, args) => execFileSync(cmd, args, { stdio: ['ignore', 'pipe', 'pipe'] }).toString();
+function size(file) {
+ const [w, h] = run('ffprobe', ['-v', 'error', '-select_streams', 'v:0', '-show_entries', 'stream=width,height',
+ '-of', 'csv=p=0', file]).trim().split(',').map(Number);
+ return { w, h };
+}
+// ffmpeg → PPM (with an optional filter) → cjpeg
+function jpeg(input, output, vf, quality, sample) {
+ const ppm = path.join(tmp, 'frame.ppm');
+ run('ffmpeg', ['-loglevel', 'error', '-y', '-i', input, ...(vf ? ['-vf', vf] : []), '-pix_fmt', 'rgb24', ppm]);
+ fs.mkdirSync(path.dirname(output), { recursive: true });
+ run('cjpeg', ['-quality', String(quality), '-sample', sample, '-optimize', '-outfile', output, ppm]);
+}
+
+const index = [];
+for (const cat of CATEGORIES) {
+ const dir = path.join(src, cat);
+ if (!fs.existsSync(dir)) continue;
+ const pngs = fs.readdirSync(dir).filter((n) => n.endsWith('.png')).sort();
+ for (const name of pngs.filter((n) => !n.includes('@'))) {
+ const base = name.replace(/\.png$/, '');
+ if (!/^lordos-[a-z0-9-]+$/.test(base)) throw new Error(`bad wallpaper name: ${name}`);
+ const id = base.replace(/^lordos-/, '');
+ const entry = { id, category: cat, thumb: `thumbs/${cat}/${base}.jpg`, variants: [] };
+ const variants = [name, ...pngs.filter((n) => n.startsWith(`${base}@`) && /@\d+x\d+\.png$/.test(n))];
+ for (const v of variants) {
+ const file = `${cat}/${v.replace(/\.png$/, '.jpg')}`;
+ jpeg(path.join(dir, v), path.join(out, file), null, 90, '1x1');
+ const { w, h } = size(path.join(dir, v));
+ entry.variants.push({ w, h, file });
+ console.log(`${file} ${w}×${h} ${(fs.statSync(path.join(out, file)).size / 1024).toFixed(0)} KB`);
+ }
+ entry.variants.sort((a, b) => a.w - b.w);
+ entry.file = entry.variants[0].file;
+ const [tw, th] = THUMB;
+ jpeg(path.join(dir, name), path.join(out, entry.thumb),
+ `scale=${tw}:${th}:force_original_aspect_ratio=increase:flags=lanczos,crop=${tw}:${th}`, 85, '2x2');
+ index.push(entry);
+ }
+}
+fs.writeFileSync(path.join(out, 'index.json'), JSON.stringify(index, null, 1) + '\n');
+fs.rmSync(tmp, { recursive: true, force: true });
+console.log(`${index.length} wallpapers → assets/wallpapers/index.json`);
diff --git a/tools/iso/mkdeb.sh b/tools/iso/mkdeb.sh
index 4541b9e..e367b09 100755
--- a/tools/iso/mkdeb.sh
+++ b/tools/iso/mkdeb.sh
@@ -14,6 +14,8 @@
# /usr/lib/lordos/lordos-live-prep live preparation (grub language, folders)
# /usr/lib/systemd/system/lordos.service lord-sessiond on tty1
# /usr/lib/lordos/lordos-splash boot splash hand-off (Plymouth → LordOS, docs/SESSIONS.md)
+# /usr/share/backgrounds/lordos/ the wallpapers (<category>/lordos-<name>.jpg, thumbs/), linked
+# from /usr/lib/lordos/assets/wallpapers
# /usr/share/plymouth/themes/lordos/ the boot splash theme (selected by the ISO, the Raspberry Pi
# image or install.sh; the package never selects it)
# /usr/share/grub/themes/lordos/ the boot menu theme (amd64; the ISO and the disk installer)
@@ -70,6 +72,14 @@ for d in themes/*/; do
[ -d "$d/assets" ] && cp -r "$d/assets" "$L/themes/$n/"
done
cp -r assets/fonts assets/locales assets/shell assets/icons assets/mascot assets/monitor assets/help "$L/assets/"
+# the wallpaper collection (assets/wallpapers/README.md): once, in the standard place for desktop
+# backgrounds; lord-server reaches it as asset:wallpapers/… through the link. Only the JPEGs, the
+# thumbnails and the README (index.json is bundled into the SDK at build time).
+install -d "$PKG/usr/share/backgrounds/lordos"
+( cd assets/wallpapers && find . -name '*.jpg' -o -name README.md ) | while read -r f; do
+ install -D -m 644 "assets/wallpapers/$f" "$PKG/usr/share/backgrounds/lordos/$f"
+done
+ln -s /usr/share/backgrounds/lordos "$L/assets/wallpapers"
# each isolated app's process (lord-server --app) loads its runtime from here
[ -f assets/app-host.bundle.js ] || { echo "missing assets/app-host.bundle.js (npm run build)" >&2; exit 1; }
install -m 644 assets/app-host.bundle.js "$L/assets/app-host.bundle.js"
@@ -148,6 +158,13 @@ License: Expat
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+Files: usr/share/backgrounds/lordos/*
+Copyright: 2026 iPERFEX
+License: Expat
+Comment: Created by iPERFEX with an AI image generator; part of the LordOS brand
+ assets. The LordOS name, the crown and Lumo shown in them are also covered by the
+ LordOS trademark and brand policy (lordos.org).
+
Files: usr/lib/lordos/assets/fonts/*
License: OFL-1.1
Inter, JetBrains Mono and Plus Jakarta Sans: SIL Open Font License 1.1 (each