added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
27
nyx/homes/notashelf/services/wayland/ags/js/imports.js
Normal file
27
nyx/homes/notashelf/services/wayland/ags/js/imports.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
export const require = async (file) => (await import(resource(file))).default;
|
||||
export const resource = (file) => `resource:///com/github/Aylur/ags/${file}.js`;
|
||||
export const fromService = async (file) => await require(`service/${file}`);
|
||||
export const requireCustom = async (/** @type {string} */ path) =>
|
||||
(await import(path)).default;
|
||||
|
||||
export const App = await require("app");
|
||||
export const GLib = await requireCustom("gi://GLib");
|
||||
export const Gtk = await requireCustom("gi://Gtk?version=3.0");
|
||||
export const Service = await require("service");
|
||||
export const Utils = await import(resource("utils"));
|
||||
export const Variable = await require("variable");
|
||||
export const Widget = await require("widget");
|
||||
|
||||
// Services
|
||||
export const Battery = await fromService("battery");
|
||||
export const Bluetooth = await fromService("bluetooth");
|
||||
export const Hyprland = await fromService("hyprland");
|
||||
export const Mpris = await fromService("mpris");
|
||||
export const Network = await fromService("network");
|
||||
export const Applications = await fromService("applications");
|
||||
export const Audio = await fromService("audio");
|
||||
export const Notifications = await fromService("notifications");
|
||||
export const SystemTray = await fromService("systemtray");
|
||||
|
||||
// Extras
|
||||
export const Icons = await requireCustom("./utils/icons.js");
|
Loading…
Add table
Add a link
Reference in a new issue