@domicile-desktop/manganese 0.0.0-alpha-e1a71faac2bd → 0.0.0-alpha-e03923384ae2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +36 -36
- package/src/Desktop.tsx +17 -1
- package/src/Manganese.tsx +4 -0
- package/src/Shell.tsx +6 -0
- package/src/index.tsx +15 -0
package/package.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@cprussin/option-result": "^2.0.1",
|
|
4
|
-
"@domicile-desktop/component-library": "0.0.0-alpha-
|
|
5
|
-
"@domicile-desktop/manganese-bar": "0.0.0-alpha-
|
|
6
|
-
"@domicile-desktop/manganese-bar-module-battery": "0.0.0-alpha-
|
|
7
|
-
"@domicile-desktop/manganese-bar-module-bluetooth": "0.0.0-alpha-
|
|
8
|
-
"@domicile-desktop/manganese-bar-module-brightness": "0.0.0-alpha-
|
|
9
|
-
"@domicile-desktop/manganese-bar-module-cast": "0.0.0-alpha-
|
|
10
|
-
"@domicile-desktop/manganese-bar-module-clock": "0.0.0-alpha-
|
|
11
|
-
"@domicile-desktop/manganese-bar-module-downloads": "0.0.0-alpha-
|
|
12
|
-
"@domicile-desktop/manganese-bar-module-gmail": "0.0.0-alpha-
|
|
13
|
-
"@domicile-desktop/manganese-bar-module-google-messages": "0.0.0-alpha-
|
|
14
|
-
"@domicile-desktop/manganese-bar-module-idle-inhibitor": "0.0.0-alpha-
|
|
15
|
-
"@domicile-desktop/manganese-bar-module-keymap": "0.0.0-alpha-
|
|
16
|
-
"@domicile-desktop/manganese-bar-module-launcher-button": "0.0.0-alpha-
|
|
17
|
-
"@domicile-desktop/manganese-bar-module-network": "0.0.0-alpha-
|
|
18
|
-
"@domicile-desktop/manganese-bar-module-notifications": "0.0.0-alpha-
|
|
19
|
-
"@domicile-desktop/manganese-bar-module-sharing": "0.0.0-alpha-
|
|
20
|
-
"@domicile-desktop/manganese-bar-module-theme-switch": "0.0.0-alpha-
|
|
21
|
-
"@domicile-desktop/manganese-bar-module-tray": "0.0.0-alpha-
|
|
22
|
-
"@domicile-desktop/manganese-bar-module-volume": "0.0.0-alpha-
|
|
23
|
-
"@domicile-desktop/manganese-bar-module-workspace-switcher": "0.0.0-alpha-
|
|
24
|
-
"@domicile-desktop/manganese-clipboard": "0.0.0-alpha-
|
|
25
|
-
"@domicile-desktop/manganese-host": "0.0.0-alpha-
|
|
26
|
-
"@domicile-desktop/manganese-inbox-gmail": "0.0.0-alpha-
|
|
27
|
-
"@domicile-desktop/manganese-inbox-google-messages": "0.0.0-alpha-
|
|
28
|
-
"@domicile-desktop/manganese-launcher": "0.0.0-alpha-
|
|
29
|
-
"@domicile-desktop/manganese-lock": "0.0.0-alpha-
|
|
30
|
-
"@domicile-desktop/manganese-notifications": "0.0.0-alpha-
|
|
31
|
-
"@domicile-desktop/manganese-quick-settings": "0.0.0-alpha-
|
|
32
|
-
"@domicile-desktop/manganese-wallpaper": "0.0.0-alpha-
|
|
33
|
-
"@domicile-desktop/manganese-window-management": "0.0.0-alpha-
|
|
34
|
-
"@domicile-desktop/react": "0.0.0-alpha-
|
|
35
|
-
"@domicile-desktop/sdk": "0.0.0-alpha-
|
|
36
|
-
"@domicile-desktop/system-apps": "0.0.0-alpha-
|
|
37
|
-
"@domicile-desktop/system-audio": "0.0.0-alpha-
|
|
38
|
-
"@domicile-desktop/system-backlight": "0.0.0-alpha-
|
|
4
|
+
"@domicile-desktop/component-library": "0.0.0-alpha-e03923384ae2",
|
|
5
|
+
"@domicile-desktop/manganese-bar": "0.0.0-alpha-e03923384ae2",
|
|
6
|
+
"@domicile-desktop/manganese-bar-module-battery": "0.0.0-alpha-e03923384ae2",
|
|
7
|
+
"@domicile-desktop/manganese-bar-module-bluetooth": "0.0.0-alpha-e03923384ae2",
|
|
8
|
+
"@domicile-desktop/manganese-bar-module-brightness": "0.0.0-alpha-e03923384ae2",
|
|
9
|
+
"@domicile-desktop/manganese-bar-module-cast": "0.0.0-alpha-e03923384ae2",
|
|
10
|
+
"@domicile-desktop/manganese-bar-module-clock": "0.0.0-alpha-e03923384ae2",
|
|
11
|
+
"@domicile-desktop/manganese-bar-module-downloads": "0.0.0-alpha-e03923384ae2",
|
|
12
|
+
"@domicile-desktop/manganese-bar-module-gmail": "0.0.0-alpha-e03923384ae2",
|
|
13
|
+
"@domicile-desktop/manganese-bar-module-google-messages": "0.0.0-alpha-e03923384ae2",
|
|
14
|
+
"@domicile-desktop/manganese-bar-module-idle-inhibitor": "0.0.0-alpha-e03923384ae2",
|
|
15
|
+
"@domicile-desktop/manganese-bar-module-keymap": "0.0.0-alpha-e03923384ae2",
|
|
16
|
+
"@domicile-desktop/manganese-bar-module-launcher-button": "0.0.0-alpha-e03923384ae2",
|
|
17
|
+
"@domicile-desktop/manganese-bar-module-network": "0.0.0-alpha-e03923384ae2",
|
|
18
|
+
"@domicile-desktop/manganese-bar-module-notifications": "0.0.0-alpha-e03923384ae2",
|
|
19
|
+
"@domicile-desktop/manganese-bar-module-sharing": "0.0.0-alpha-e03923384ae2",
|
|
20
|
+
"@domicile-desktop/manganese-bar-module-theme-switch": "0.0.0-alpha-e03923384ae2",
|
|
21
|
+
"@domicile-desktop/manganese-bar-module-tray": "0.0.0-alpha-e03923384ae2",
|
|
22
|
+
"@domicile-desktop/manganese-bar-module-volume": "0.0.0-alpha-e03923384ae2",
|
|
23
|
+
"@domicile-desktop/manganese-bar-module-workspace-switcher": "0.0.0-alpha-e03923384ae2",
|
|
24
|
+
"@domicile-desktop/manganese-clipboard": "0.0.0-alpha-e03923384ae2",
|
|
25
|
+
"@domicile-desktop/manganese-host": "0.0.0-alpha-e03923384ae2",
|
|
26
|
+
"@domicile-desktop/manganese-inbox-gmail": "0.0.0-alpha-e03923384ae2",
|
|
27
|
+
"@domicile-desktop/manganese-inbox-google-messages": "0.0.0-alpha-e03923384ae2",
|
|
28
|
+
"@domicile-desktop/manganese-launcher": "0.0.0-alpha-e03923384ae2",
|
|
29
|
+
"@domicile-desktop/manganese-lock": "0.0.0-alpha-e03923384ae2",
|
|
30
|
+
"@domicile-desktop/manganese-notifications": "0.0.0-alpha-e03923384ae2",
|
|
31
|
+
"@domicile-desktop/manganese-quick-settings": "0.0.0-alpha-e03923384ae2",
|
|
32
|
+
"@domicile-desktop/manganese-wallpaper": "0.0.0-alpha-e03923384ae2",
|
|
33
|
+
"@domicile-desktop/manganese-window-management": "0.0.0-alpha-e03923384ae2",
|
|
34
|
+
"@domicile-desktop/react": "0.0.0-alpha-e03923384ae2",
|
|
35
|
+
"@domicile-desktop/sdk": "0.0.0-alpha-e03923384ae2",
|
|
36
|
+
"@domicile-desktop/system-apps": "0.0.0-alpha-e03923384ae2",
|
|
37
|
+
"@domicile-desktop/system-audio": "0.0.0-alpha-e03923384ae2",
|
|
38
|
+
"@domicile-desktop/system-backlight": "0.0.0-alpha-e03923384ae2",
|
|
39
39
|
"@pandacss/dev": "^1.12.1",
|
|
40
40
|
"@phosphor-icons/react": "^2.1.10",
|
|
41
41
|
"react": "^19.2.8",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"watch:css": "panda cssgen --watch --silent"
|
|
109
109
|
},
|
|
110
110
|
"type": "module",
|
|
111
|
-
"version": "0.0.0-alpha-
|
|
111
|
+
"version": "0.0.0-alpha-e03923384ae2"
|
|
112
112
|
}
|
package/src/Desktop.tsx
CHANGED
|
@@ -51,7 +51,9 @@ import type { NotificationsDrawer } from "@domicile-desktop/manganese-notificati
|
|
|
51
51
|
import { NotificationsContext } from "@domicile-desktop/manganese-notifications/notifications-context";
|
|
52
52
|
import { useNotifications } from "@domicile-desktop/manganese-notifications/useNotifications";
|
|
53
53
|
import { useNow } from "@domicile-desktop/manganese-notifications/useNow";
|
|
54
|
+
import { useWallpapers } from "@domicile-desktop/manganese-wallpaper/useWallpapers";
|
|
54
55
|
import { Wallpaper } from "@domicile-desktop/manganese-wallpaper/Wallpaper";
|
|
56
|
+
import type { Wallpapers } from "@domicile-desktop/manganese-wallpaper/wallpapers";
|
|
55
57
|
import { desktopClientIcons } from "@domicile-desktop/manganese-window-management/client-icons";
|
|
56
58
|
import type { Direction } from "@domicile-desktop/manganese-window-management/direction";
|
|
57
59
|
import type { FloatingRules } from "@domicile-desktop/manganese-window-management/floating/floating-rules";
|
|
@@ -117,6 +119,9 @@ import { NoScreens } from "./screens/NoScreens";
|
|
|
117
119
|
import { showsSharing } from "./shows-sharing";
|
|
118
120
|
import { deskVirtualMonitors } from "./virtual-monitors";
|
|
119
121
|
|
|
122
|
+
/** No photographs, while the config's folders are listed. */
|
|
123
|
+
const NO_WALLPAPERS: Wallpapers = { dark: [], light: [] };
|
|
124
|
+
|
|
120
125
|
type Props = {
|
|
121
126
|
/** What the launcher offers beside files. */
|
|
122
127
|
applications: ApplicationsConfig;
|
|
@@ -128,6 +133,8 @@ type Props = {
|
|
|
128
133
|
inboxes: readonly Inbox[];
|
|
129
134
|
/** The keys this desktop binds, merged under the config's. */
|
|
130
135
|
keybindings: ShellKeybindings;
|
|
136
|
+
/** Each theme's wallpaper photographs. */
|
|
137
|
+
wallpapers: Wallpapers;
|
|
131
138
|
};
|
|
132
139
|
|
|
133
140
|
/**
|
|
@@ -144,6 +151,7 @@ export const Desktop = ({
|
|
|
144
151
|
floating,
|
|
145
152
|
inboxes,
|
|
146
153
|
keybindings,
|
|
154
|
+
wallpapers,
|
|
147
155
|
}: Props) => {
|
|
148
156
|
const domicile = useDomicile();
|
|
149
157
|
const displays = useDisplays();
|
|
@@ -183,6 +191,8 @@ export const Desktop = ({
|
|
|
183
191
|
const portalWallpaper = usePortalWallpaper(domicile);
|
|
184
192
|
const backgroundPicture = usePictureUrl(files, portalWallpaper.background);
|
|
185
193
|
const lockPicture = usePictureUrl(files, portalWallpaper.lockscreen);
|
|
194
|
+
// The config's folders listed.
|
|
195
|
+
const listedWallpapers = useWallpapers(files, wallpapers);
|
|
186
196
|
// Installed apps, the inboxes and bookmarks, read through the desktop.
|
|
187
197
|
// Memoized because it holds what was read and the bookmarks' icons.
|
|
188
198
|
const apps = useMemo(
|
|
@@ -594,7 +604,13 @@ export const Desktop = ({
|
|
|
594
604
|
First, so it paints under everything. It does not wait for the
|
|
595
605
|
desktop to connect.
|
|
596
606
|
*/}
|
|
597
|
-
<Wallpaper
|
|
607
|
+
<Wallpaper
|
|
608
|
+
files={files}
|
|
609
|
+
held={flipping}
|
|
610
|
+
photos={listedWallpapers ?? NO_WALLPAPERS}
|
|
611
|
+
picture={backgroundPicture}
|
|
612
|
+
theme={theme}
|
|
613
|
+
/>
|
|
598
614
|
{/*
|
|
599
615
|
Every display the desktop has taken up. A new display appears one
|
|
600
616
|
render after the host reports it, once the reducer gives it a
|
package/src/Manganese.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import { applyAppearance } from "@domicile-desktop/component-library/appearance"
|
|
|
5
5
|
import type { BarLayout } from "@domicile-desktop/manganese-bar/bar-layout";
|
|
6
6
|
import type { ApplicationsConfig } from "@domicile-desktop/manganese-launcher/applications-config";
|
|
7
7
|
import type { Inbox } from "@domicile-desktop/manganese-notifications/inbox";
|
|
8
|
+
import type { Wallpapers } from "@domicile-desktop/manganese-wallpaper/wallpapers";
|
|
8
9
|
import type { FloatingRules } from "@domicile-desktop/manganese-window-management/floating/floating-rules";
|
|
9
10
|
import { useAppearance } from "@domicile-desktop/react/appearance";
|
|
10
11
|
import { useDomicile } from "@domicile-desktop/react/domicile-provider";
|
|
@@ -20,6 +21,7 @@ type Props = {
|
|
|
20
21
|
readonly floating: FloatingRules;
|
|
21
22
|
readonly inboxes?: readonly Inbox[] | undefined;
|
|
22
23
|
readonly keybindings?: ShellKeybindings | undefined;
|
|
24
|
+
readonly wallpapers?: Wallpapers | undefined;
|
|
23
25
|
};
|
|
24
26
|
|
|
25
27
|
/** Manganese, from `runManganese`'s parsed options. */
|
|
@@ -29,6 +31,7 @@ export const Manganese = ({
|
|
|
29
31
|
floating,
|
|
30
32
|
inboxes,
|
|
31
33
|
keybindings,
|
|
34
|
+
wallpapers,
|
|
32
35
|
}: Props) => {
|
|
33
36
|
const domicile = useDomicile();
|
|
34
37
|
// Once per desktop: the theme provider re-registers when the source changes.
|
|
@@ -47,6 +50,7 @@ export const Manganese = ({
|
|
|
47
50
|
inboxes={inboxes}
|
|
48
51
|
keybindings={keybindings}
|
|
49
52
|
theme={theme}
|
|
53
|
+
wallpapers={wallpapers}
|
|
50
54
|
/>
|
|
51
55
|
);
|
|
52
56
|
};
|
package/src/Shell.tsx
CHANGED
|
@@ -4,6 +4,8 @@ import type { ThemeSource } from "@domicile-desktop/component-library/theme-sour
|
|
|
4
4
|
import type { BarLayout } from "@domicile-desktop/manganese-bar/bar-layout";
|
|
5
5
|
import type { ApplicationsConfig } from "@domicile-desktop/manganese-launcher/applications-config";
|
|
6
6
|
import type { Inbox } from "@domicile-desktop/manganese-notifications/inbox";
|
|
7
|
+
import { DEFAULT_WALLPAPERS } from "@domicile-desktop/manganese-wallpaper/photos";
|
|
8
|
+
import type { Wallpapers } from "@domicile-desktop/manganese-wallpaper/wallpapers";
|
|
7
9
|
import type { FloatingRules } from "@domicile-desktop/manganese-window-management/floating/floating-rules";
|
|
8
10
|
import { DEFAULT_KEYBINDINGS } from "@domicile-desktop/manganese-window-management/keyboard/commands";
|
|
9
11
|
import { hostDisplays } from "@domicile-desktop/manganese-window-management/screens/host-displays";
|
|
@@ -33,6 +35,8 @@ type Props = {
|
|
|
33
35
|
* Must be stable: the provider re-registers when its identity changes.
|
|
34
36
|
*/
|
|
35
37
|
theme: ThemeSource;
|
|
38
|
+
/** Each theme's wallpaper photographs. Defaults to manganese's. */
|
|
39
|
+
wallpapers?: Wallpapers | undefined;
|
|
36
40
|
};
|
|
37
41
|
|
|
38
42
|
/**
|
|
@@ -47,6 +51,7 @@ export const Shell = ({
|
|
|
47
51
|
inboxes = NO_INBOXES,
|
|
48
52
|
keybindings = DEFAULT_SHELL_KEYBINDINGS,
|
|
49
53
|
theme,
|
|
54
|
+
wallpapers = DEFAULT_WALLPAPERS,
|
|
50
55
|
}: Props) => {
|
|
51
56
|
const domicile = useDomicile();
|
|
52
57
|
// Once per desktop: the provider re-registers when the source changes.
|
|
@@ -60,6 +65,7 @@ export const Shell = ({
|
|
|
60
65
|
floating={floating}
|
|
61
66
|
inboxes={inboxes}
|
|
62
67
|
keybindings={keybindings}
|
|
68
|
+
wallpapers={wallpapers}
|
|
63
69
|
/>
|
|
64
70
|
</DisplayProvider>
|
|
65
71
|
</Provider>
|
package/src/index.tsx
CHANGED
|
@@ -10,6 +10,8 @@ import type { BarLayout } from "@domicile-desktop/manganese-bar/bar-layout";
|
|
|
10
10
|
import type { ApplicationsOptions } from "@domicile-desktop/manganese-launcher/applications-config";
|
|
11
11
|
import { applicationsConfigSchema } from "@domicile-desktop/manganese-launcher/applications-config";
|
|
12
12
|
import type { Inbox } from "@domicile-desktop/manganese-notifications/inbox";
|
|
13
|
+
import type { WallpapersOptions } from "@domicile-desktop/manganese-wallpaper/wallpapers";
|
|
14
|
+
import { wallpapersSchema } from "@domicile-desktop/manganese-wallpaper/wallpapers";
|
|
13
15
|
import type { FloatingOptions } from "@domicile-desktop/manganese-window-management/floating/floating-rules";
|
|
14
16
|
import { floatingRulesSchema } from "@domicile-desktop/manganese-window-management/floating/floating-rules";
|
|
15
17
|
import { mount } from "@domicile-desktop/react/mount";
|
|
@@ -26,6 +28,10 @@ import "@domicile-desktop/component-library/fonts/inter.css";
|
|
|
26
28
|
// rules it repeats in its own order.
|
|
27
29
|
import "../styled-system/styles.css";
|
|
28
30
|
|
|
31
|
+
export {
|
|
32
|
+
commonsPhoto,
|
|
33
|
+
DEFAULT_WALLPAPERS,
|
|
34
|
+
} from "@domicile-desktop/manganese-wallpaper/photos";
|
|
29
35
|
export { DEFAULT_BAR } from "./default-bars";
|
|
30
36
|
/** Read by the builder into `options.json`, for the Settings app. */
|
|
31
37
|
export { options } from "./options";
|
|
@@ -61,6 +67,13 @@ export type ManganeseOptions = {
|
|
|
61
67
|
* `DEFAULT_KEYBINDINGS` (sway's, on Meta).
|
|
62
68
|
*/
|
|
63
69
|
readonly keybindings?: ShellKeybindings;
|
|
70
|
+
/**
|
|
71
|
+
* Each theme's wallpaper photographs, `dark` and `light`: web addresses,
|
|
72
|
+
* and paths to images or folders of them.
|
|
73
|
+
* A theme left out keeps `DEFAULT_WALLPAPERS`. See
|
|
74
|
+
* `@domicile-desktop/manganese-wallpaper`'s `docs/WALLPAPER.md`.
|
|
75
|
+
*/
|
|
76
|
+
readonly wallpapers?: WallpapersOptions;
|
|
64
77
|
};
|
|
65
78
|
|
|
66
79
|
/** Build a `Shell` that mounts manganese with `options`. */
|
|
@@ -68,6 +81,7 @@ export const runManganese = (options: ManganeseOptions = {}): ShellModule => {
|
|
|
68
81
|
// Parsed when the config is built, so a bad bookmark or pattern fails it.
|
|
69
82
|
const applications = applicationsConfigSchema.parse(options.applications);
|
|
70
83
|
const floating = floatingRulesSchema.parse(options.floating);
|
|
84
|
+
const wallpapers = wallpapersSchema.parse(options.wallpapers);
|
|
71
85
|
const App = () => (
|
|
72
86
|
<Manganese
|
|
73
87
|
applications={applications}
|
|
@@ -75,6 +89,7 @@ export const runManganese = (options: ManganeseOptions = {}): ShellModule => {
|
|
|
75
89
|
floating={floating}
|
|
76
90
|
inboxes={options.inboxes}
|
|
77
91
|
keybindings={options.keybindings}
|
|
92
|
+
wallpapers={wallpapers}
|
|
78
93
|
/>
|
|
79
94
|
);
|
|
80
95
|
return (root, domicile) => {
|