From 6d5805e66204caa599a8a2996238adf7931cb95b Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 16 Jan 2025 23:20:39 +1100 Subject: [PATCH] refactor: move popdowns to own folder And group them like osds --- app.tsx | 6 ++---- src/modules/popdowns/index.tsx | 9 +++++++++ src/modules/{ => popdowns}/notifications.tsx | 4 ++-- src/modules/{ => popdowns}/updates.tsx | 6 +++--- 4 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 src/modules/popdowns/index.tsx rename src/modules/{ => popdowns}/notifications.tsx (95%) rename src/modules/{ => popdowns}/updates.tsx (94%) diff --git a/app.tsx b/app.tsx index 97437921..66cc1cab 100644 --- a/app.tsx +++ b/app.tsx @@ -2,10 +2,9 @@ import { execAsync, GLib, writeFileAsync } from "astal"; import { App } from "astal/gtk3"; import Bar from "./src/modules/bar"; import Launcher from "./src/modules/launcher"; -import Notifications from "./src/modules/notifications"; import NotifPopups from "./src/modules/notifpopups"; import Osds from "./src/modules/osds"; -import Updates from "./src/modules/updates"; +import Popdowns from "./src/modules/popdowns"; import Monitors from "./src/services/monitors"; import Players from "./src/services/players"; @@ -26,8 +25,7 @@ App.start({ ; ; Monitors.get_default().forEach(m => ); - ; - ; + ; console.log("Caelestia started"); }, diff --git a/src/modules/popdowns/index.tsx b/src/modules/popdowns/index.tsx new file mode 100644 index 00000000..db3245b3 --- /dev/null +++ b/src/modules/popdowns/index.tsx @@ -0,0 +1,9 @@ +import Notifications from "./notifications"; +import Updates from "./updates"; + +export default () => { + ; + ; + + return null; +}; diff --git a/src/modules/notifications.tsx b/src/modules/popdowns/notifications.tsx similarity index 95% rename from src/modules/notifications.tsx rename to src/modules/popdowns/notifications.tsx index 85747ce0..bb08c137 100644 --- a/src/modules/notifications.tsx +++ b/src/modules/popdowns/notifications.tsx @@ -1,8 +1,8 @@ import { bind } from "astal"; import { Astal, Gtk } from "astal/gtk3"; import AstalNotifd from "gi://AstalNotifd"; -import Notification from "../widgets/notification"; -import PopdownWindow from "../widgets/popdownwindow"; +import Notification from "../../widgets/notification"; +import PopdownWindow from "../../widgets/popdownwindow"; const List = () => ( new MenuItem({