20 lines
459 B
TypeScript
20 lines
459 B
TypeScript
import gtk from 'gi://Gtk?version=3.0';
|
|
import gdk from 'gi://Gdk';
|
|
import { range } from 'lib';
|
|
import themeInit from 'theme';
|
|
import bar from 'widgets/bar/bar';
|
|
|
|
const forMonitors = (widget: (monitor: number) => gtk.Window) => {
|
|
const n = gdk.Display.get_default()?.get_n_monitors() || 1;
|
|
return range(n, 0).flatMap(widget);
|
|
};
|
|
|
|
App.config({
|
|
style: themeInit(),
|
|
windows: [
|
|
...forMonitors(bar),
|
|
]
|
|
});
|
|
|
|
Utils.execAsync('systemd-notify --ready')
|