mirror of
https://github.com/Sn3akyy1/lucid.git
synced 2026-11-17 03:41:41 +03:00
232e7ee26b
Settings > Displays > The bar on its own gains Every display (or qs ipc call -- displays bar all). On 1.20's shell.qml: the bar is a Variants with one instance unless that is picked, each bar places itself on its own display, and the dock, the screenshot windows and the capture preview move out of the bar window, where their own bindings already placed them. One bar speaks for the shell: the one on the shell's display, or the one in use. Only it turns into notification popups, raises the privacy toast, and writes which modules are away. The clock, media and workspaces ipc targets live in shell.qml and reach that bar, since every bar would otherwise register them; the overview and the dock menu still close each other, per bar. Checked on a headless wayfire with one and with two outputs: a bar on each, the popup on one, and the ipc reaching the main bar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
922 B
QML
37 lines
922 B
QML
import Quickshell
|
|
import Quickshell.Io
|
|
import qs
|
|
|
|
IpcHandler {
|
|
target: "displays"
|
|
|
|
// qs ipc call -- displays shell middle, or here, next, auto, or DP-2
|
|
function shell(where: string): string {
|
|
return Monitors.aimSurfaceLabel("shell", where);
|
|
}
|
|
|
|
// the bar and dock can sit apart from the rest; auto puts them back with it,
|
|
// and the bar alone also takes all, for one on every display
|
|
function bar(where: string): string {
|
|
return Monitors.aimSurfaceLabel("bar", where);
|
|
}
|
|
|
|
function dock(where: string): string {
|
|
return Monitors.aimSurfaceLabel("dock", where);
|
|
}
|
|
|
|
// a number on every screen, the one its box carries on the page
|
|
function identify(): void {
|
|
Monitors.identify();
|
|
}
|
|
|
|
function list(): string {
|
|
return Monitors.rundown();
|
|
}
|
|
|
|
function settings(): void {
|
|
Prefs.settingsRequested("displays");
|
|
}
|
|
|
|
}
|