Implement layout options

This commit is contained in:
Jas Singh
2024-07-24 09:46:38 -07:00
parent e90fd7cd29
commit 21393c122a
37 changed files with 1288 additions and 644 deletions

View File

@@ -11,13 +11,16 @@ const { position } = options.notifications;
export default () => {
notifs.popupTimeout = 7000;
const getPosition = (pos) => {
return pos.split(" ");
}
return Widget.Window({
name: "notifications-window",
class_name: "notifications-window",
monitor: 2,
layer: "top",
anchor: position.bind("value"),
anchor: position.bind("value").as(v => getPosition(v)),
exclusivity: "ignore",
child: Widget.Box({
class_name: "notification-card-container",