Add bar spots beside the notch, and Caffeine and Night Light modules

Notch mode gets two more module lists, notch.innerLeft and
notch.innerRight: spots right beside the notch at the same distance on
both sides. They follow the notch's edges as it springs wider for media,
never draw pills (plugins and the tray drop theirs there), and fade out
while the notch is open or widened. Picking a module for one of the four
side spots in Settings -> Notch moves it there from the others.

Caffeine and Night Light are now bar modules too; Night Light polls its
state every 30 s while only the bar watches it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-29 23:27:01 +01:00
1 parent 3f0e31b116
commit bc197339fa
12 files changed
+169 -13

No files matched your search

+6 -3
View File
@@ -16,8 +16,9 @@ Singleton {
return [];
return hasOwn(screenName) ? screens[screenName].modules : ConfigService.data.bar.modules;
}
// Entries for a notch module list ("left", "right" or "strip"). Each reuses
// the module's bar entry for its options when the layout has one.
// Entries for a notch module list ("left", "right", "innerLeft",
// "innerRight" or "strip"). Each reuses the module's bar entry for its
// options when the layout has one.
function notchModules(screenName, key) {
if (!ConfigService.ready || !ConfigService.data.notch)
return [];
@@ -28,7 +29,9 @@ Singleton {
id: id,
enabled: true,
notch: true,
position: key === "right" ? "right" : key === "left" ? "left" : "center"
// The spots beside the notch never draw pills.
bare: key === "innerLeft" || key === "innerRight",
position: key === "right" || key === "innerRight" ? "right" : key === "left" || key === "innerLeft" ? "left" : "center"
}));
}
// Saves to the screen's own layout when it has one, else the shared layout.