dots-hyprland/.config/ags/widgets/desktopbackground/main.js
2023-12-25 18:16:14 +07:00

27 lines
No EOL
799 B
JavaScript

const { Gdk, Gtk } = imports.gi;
import { App, Service, Utils, Widget } from '../../imports.js';
const { execAsync, exec } = Utils;
import TimeAndLaunchesWidget from './timeandlaunches.js'
import SystemWidget from './system.js'
import GraphWidget from './graph.js'
export default () => Widget.Window({
name: 'desktopbackground',
anchor: ['top', 'bottom', 'left', 'right'],
layer: 'background',
exclusivity: 'normal',
visible: true,
child: Widget.Overlay({
child: Widget.Box({
hexpand: true,
vexpand: true,
}),
overlays: [
// GraphWidget(),
TimeAndLaunchesWidget(),
SystemWidget(),
],
setup: (self) => self.set_overlay_pass_through(self.get_children()[1], true),
}),
});