HokieGeek / snotify

Displays to the user when events occur
0 stars 0 forks source link

DESIGN #5

Closed HokieGeek closed 9 years ago

HokieGeek commented 9 years ago

There are two core ideas that will drive this:

Triggers

These kick of a notification

The notifications which will be instigated by a trigger

HokieGeek commented 9 years ago

Configuration file

system-notifier:
    triggers:
        trigger:
            id: 0
            name: Low battery level
            handler: lowbatt.sh
        trigger:
            id: 1
            name: Bluetooth connection state
            handler: bluetooth.sh
        trigger:
            id: 2
            name: Caps lock state
            handler: capslock.sh
    notifiers:
        notifier:
            id: 0
            name: OSD
            handler: osd_notifier.sh
        notifier:
            id: 1
            name: Pushbullet
            handler: pushbullet.sh
        notifier:
            id: 2
            name: Email
            handler: email.sh
        paths:
            0: [0, 1]
            1: [0]
            2: [0]

How about this instead?

hgnotifier:
    port: 9999
    color-bg: #000000
    color-fg: #FFFFFF
    triggers:
        capslock-state: [capslock-listener]
    notifiers:
        capslock-state: [capslock-osd.sh]
        bluetooth-state: [bluetooth-osd.sh]
        low-battery: [lowbattery-osd.sh, lowbattery-pb.sh]
HokieGeek commented 9 years ago

use dzen2 instead of conky because duh

HokieGeek commented 9 years ago

I would prefer to use yaml instead of json for the config file, still

http://gopkg.in/yaml.v2