Files
hyprland/config/ags/widget/hyprsplash/Window.js
T
2024-05-18 15:14:03 +05:45

22 lines
540 B
JavaScript

import { isVertical } from "../../functions/utils.js";
import { configs } from "../../vars.js";
const Text = () =>
Widget.Label({
class_name: "splash-text",
label: Utils.exec("hyprctl splash"),
});
export default () =>
Widget.Window({
name: "hyprsplash__window",
layer: "bottom",
anchor: configs.theme.bar.position
.bind()
.as((v) => (v === "bottom" ? ["top"] : ["bottom"])),
margins: configs.theme.window.margin
.bind()
.as((v) => v.split(",").map(Number)),
child: Text(),
});