OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
 
main @ 30 LINES
 
[ HISTORY ]  [ UP ]
 

pragma Singleton

import Quickshell
import Quickshell.Services.Notifications

// owns the org.freedesktop.Notifications dbus service (mako must be disabled)
Singleton {
    id: root

    readonly property alias list: server.trackedNotifications

    NotificationServer {
        id: server
        keepOnReload: true
        bodySupported: true
        bodyMarkupSupported: false // we render plain monospace, markup would brea
k the ascii grid
        imageSupported: true // screenshots / album art etc.
        actionsSupported: true
        actionIconsSupported: false

        // notifications are discarded unless tracked. also append every one to
        // the json log for later categorization / per-type styling.
        onNotification: notification => {
            notification.tracked = true;
            if (Config.notifLogCmd)
                Quickshell.execDetached([Config.notifLogCmd, notification.appName,
 notification.summary, notification.body, ["low", "normal", "critical"][notificati
on.urgency] ?? "normal", notification.appIcon, notification.desktopEntry]);
        }
    }
}

pragma Singleton

import Quickshell
import Quickshell.Services.Notifications

// owns the org.freedesktop.Notifications db
us service (mako must be disabled)
Singleton {
    id: root

    readonly property alias list: server.tra
ckedNotifications

    NotificationServer {
        id: server
        keepOnReload: true
        bodySupported: true
        bodyMarkupSupported: false // we ren
der plain monospace, markup would break the 
ascii grid
        imageSupported: true // screenshots 
/ album art etc.
        actionsSupported: true
        actionIconsSupported: false

        // notifications are discarded unles
s tracked. also append every one to
        // the json log for later categoriza
tion / per-type styling.
        onNotification: notification => {
            notification.tracked = true;
            if (Config.notifLogCmd)
                Quickshell.execDetached([Con
fig.notifLogCmd, notification.appName, notif
ication.summary, notification.body, ["low", 
"normal", "critical"][notification.urgency] 
?? "normal", notification.appIcon, notificat
ion.desktopEntry]);
        }
    }
}
 
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET