From iressa to ~mil/sxmo-devel
--- configs/appcfg/dunst.conf | 2 + scripts/core/sxmo_appmenu.sh | 13 ++++++- scripts/core/sxmo_notificationmonitor.sh | 48 ++++++++++++++++++++++++ scripts/core/sxmo_notifications.sh | 16 ++++++++ scripts/core/sxmo_notificationwrite.sh | 15 ++++++++ scripts/core/sxmo_xinit.sh | 1 + scripts/modem/sxmo_modemmonitor.sh | 25 +++++------- 7 files changed, 103 insertions(+), 17 deletions(-) create mode 100755 scripts/core/sxmo_notificationmonitor.sh create mode 100755 scripts/core/sxmo_notifications.sh create mode 100755 scripts/core/sxmo_notificationwrite.sh diff --git a/configs/appcfg/dunst.conf b/configs/appcfg/dunst.conf [message trimmed]
From iressa to ~mil/sxmo-devel
Notifications v3 rewritten, notable changes- -LED/dunst/ringing logic consolidated to sxmo_notificationmontior.sh -Notification file format modified to work with newlines instead of tabs -Applied Maarten van Gompel's fix for shellcheck pass -Timestamps are no longer written into the notification file's contents. sxmo_notifications.sh relies on the filename for reading time. Also, if two notifications have the same description, the timestamp is used to distinguish one from the other. -Simplified work done in sxmo_modemmonitor.sh to send a notification. Fixed issue where two contacts getting caught by grep could cause a broken notification. iressa (1): Notification patch v4
From iressa to ~mil/sxmo-devel
--- configs/appcfg/dunst.conf | 2 ++ scripts/core/sxmo_appmenu.sh | 13 ++++++-- scripts/core/sxmo_notifications.sh | 13 ++++++++ scripts/core/sxmo_notificationservice.sh | 40 ++++++++++++++++++++++++ scripts/core/sxmo_notificationwrite.sh | 30 ++++++++++++++++++ scripts/core/sxmo_xinit.sh | 1 + scripts/modem/sxmo_modemmonitor.sh | 32 ++++++++++--------- 7 files changed, 114 insertions(+), 17 deletions(-) create mode 100755 scripts/core/sxmo_notifications.sh create mode 100755 scripts/core/sxmo_notificationservice.sh create mode 100755 scripts/core/sxmo_notificationwrite.sh diff --git a/configs/appcfg/dunst.conf b/configs/appcfg/dunst.conf [message trimmed]
From iressa to ~mil/sxmo-devel
Notification service scripts / modifications rewritten for grammar and style. -Timestamps will appear in the notifications.sh menu now. -Corrected LED behavior when starting the notification service. iressa (1): Notification service v3 configs/appcfg/dunst.conf | 2 ++ scripts/core/sxmo_appmenu.sh | 13 ++++++-- scripts/core/sxmo_notifications.sh | 13 ++++++++ scripts/core/sxmo_notificationservice.sh | 40 ++++++++++++++++++++++++ scripts/core/sxmo_notificationwrite.sh | 30 ++++++++++++++++++
From iressa to ~mil/sxmo-devel
--- configs/appcfg/dunst.conf | 2 ++ scripts/core/sxmo_appmenu.sh | 13 ++++++-- scripts/core/sxmo_notifications.sh | 13 ++++++++ scripts/core/sxmo_notificationservice.sh | 40 ++++++++++++++++++++++++ scripts/core/sxmo_notificationwrite.sh | 30 ++++++++++++++++++ scripts/core/sxmo_xinit.sh | 1 + scripts/modem/sxmo_modemmonitor.sh | 31 +++++++++--------- 7 files changed, 113 insertions(+), 17 deletions(-) create mode 100755 scripts/core/sxmo_notifications.sh create mode 100755 scripts/core/sxmo_notificationservice.sh create mode 100755 scripts/core/sxmo_notificationwrite.sh diff --git a/configs/appcfg/dunst.conf b/configs/appcfg/dunst.conf [message trimmed]
From iressa to ~mil/sxmo-devel
I did a quick rewrite of what I submitted before, with support for call notifications under the same notification service, and for notifications that don't generate with sxmo_notificationwrite.sh. I've consolidated the scripts a bit, so they're easier to understand. I've also added a watcher service to xinit. The only issue I see is that launching surf with the power button triggers the green LED, which throws off the notification light until there's another notification. iressa (1): Notification service v2 configs/appcfg/dunst.conf | 2 ++ scripts/core/sxmo_appmenu.sh | 13 ++++++-- scripts/core/sxmo_notifications.sh | 13 ++++++++
From iressa to ~mil/sxmo-devel
--- configs/appcfg/dunst.conf | 2 ++ scripts/core/sxmo_appmenu.sh | 11 ++++++++- scripts/core/sxmo_notifications.sh | 13 ++++++++++ scripts/core/sxmo_notificationstart.sh | 10 ++++++++ scripts/core/sxmo_notificationwatch.sh | 11 +++++++++ scripts/core/sxmo_notificationwrite.sh | 33 ++++++++++++++++++++++++++ scripts/modem/sxmo_modemmonitor.sh | 23 +++++++++--------- 7 files changed, 91 insertions(+), 12 deletions(-) create mode 100755 scripts/core/sxmo_notifications.sh create mode 100755 scripts/core/sxmo_notificationstart.sh create mode 100755 scripts/core/sxmo_notificationwatch.sh create mode 100755 scripts/core/sxmo_notificationwrite.sh [message trimmed]
From iressa to ~mil/sxmo-devel
This adds interactive notification support through a set of separate notification watcher scripts, with an implementation added for SMS messages in modemmonitor.sh. Any script that wants to send notifications should do it through sxmo_notificationwrite.sh. This allows for a general and hackable interface for notifications. There are a few key parts to a "notification": sxmo_notifications.sh: This is a menu application that appears in the appmenu.sh context menu when it detects that there are files in the NOTIFDIR directory. Accessing a notification through this will launch whatever program the notification-sender intended. sxmo_notificationwrite.sh: This is what applications can use to write notifications to the system. Notifications are first fed through Dunst
From iressa to ~mil/sxmo-devel
--- configs/dunst.conf | 2 ++ scripts/core/sxmo_appmenu.sh | 10 +++++- scripts/core/sxmo_notifications.sh | 15 +++++++++ scripts/modem/sxmo_modemmonitor.sh | 52 ++++++++++++++++++++++-------- 4 files changed, 65 insertions(+), 14 deletions(-) create mode 100755 scripts/core/sxmo_notifications.sh diff --git a/configs/dunst.conf b/configs/dunst.conf index a7f9323..b2bddee 100644 --- a/configs/dunst.conf +++ b/configs/dunst.conf @@ -32,6 +32,8 @@ title = Dunst [message trimmed]
From iressa to ~mil/sxmo-devel
This patch adds support for text message notifications with dunst and read/unread awareness with inotify. A notifications.sh script is added to show up as a member of the contect menu when there are unread text messages. Unread messages are stored on the modem's flash, and they are deleted when the sender's message log is accessed. Note that this patch modifies modemmonitor.sh so that the LED should be green as long as there are unread messages. Dunst notifications can also be tapped to view the sender message log, and thus dismiss the unread alert for that message. iressa (1):