Sort notifications menu
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
774f1eabdf
commit
0c2b11c2f3
1 changed files with 4 additions and 4 deletions
|
@ -3,12 +3,12 @@ NOTIFDIR="$XDG_DATA_HOME"/sxmo/notifications
|
|||
|
||||
notificationmenu() {
|
||||
CHOICES="Close Menu\nClear Notifications"
|
||||
for NOTIFFILE in "$NOTIFDIR"/*; do
|
||||
NOTIFMSG="$(tail -n+3 "$NOTIFFILE" | tr "\n^" " ")"
|
||||
NOTIFHRANDMIN="$(stat --printf %y "$NOTIFFILE" | grep -oE '[0-9]{2}:[0-9]{2}')"
|
||||
for NOTIFFILE in $(ls -tr $NOTIFDIR); do
|
||||
NOTIFMSG="$(tail -n+3 "$NOTIFDIR/$NOTIFFILE" | tr "\n^" " ")"
|
||||
NOTIFHRANDMIN="$(stat --printf %y "$NOTIFDIR/$NOTIFFILE" | grep -oE '[0-9]{2}:[0-9]{2}')"
|
||||
CHOICES="
|
||||
$CHOICES
|
||||
$NOTIFHRANDMIN - $NOTIFMSG ^ $NOTIFFILE
|
||||
$NOTIFHRANDMIN - $NOTIFMSG ^ $NOTIFDIR/$NOTIFFILE
|
||||
"
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue