some tweaks to making hyprland work betterer
This commit is contained in:
parent
64a0004f5c
commit
01f5aeeab8
4 changed files with 14 additions and 9 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue