some tweaks to making hyprland work betterer

This commit is contained in:
Chris Cochrun 2024-07-01 16:33:47 -05:00
parent 64a0004f5c
commit 01f5aeeab8
4 changed files with 14 additions and 9 deletions

View file

@ -1,4 +1,5 @@
const notifications = await Service.import("notifications")
const laptop = Utils.exec(`hostname`) === "syl";
/** @param {import('resource:///com/github/Aylur/ags/service/notifications.js').Notification} n */
function NotificationIcon({ app_entry, app_icon, image }) {
@ -92,7 +93,7 @@ function Notification(n) {
)
}
export function NotificationPopups(monitor = 0) {
export function NotificationPopups(monitor = laptop ? 0 : 2) {
const list = Widget.Box({
vertical: true,
spacing: 4,
@ -116,7 +117,7 @@ export function NotificationPopups(monitor = 0) {
monitor,
name: `notifications${monitor}`,
class_name: "notification-popups",
anchor: ["bottom", "right"],
anchor: [laptop ? "bottom" : "top", "right"],
child: Widget.Box({
// css: "min-width: 2px; min-height: 2px;",
class_name: "notifications",