2 # Set the correct value as any other AWK variable:
4 # khatus_actuate_alert_to_notify_send -v Display="$CORRECT_DISPLAY"
6 Display = Display ? Display
: ":0"
13 split(key
, key_parts
, Kfs
)
14 priority = key_parts
[2]
15 subject = key_parts
[3]
17 # Not just using $6 for body - because body might contain a character
20 len_head =
length($
1 FS $
2 FS $
3 FS $
4 FS $
5 FS)
21 len_body = len_line
- len_head
22 body =
substr($
0, len_head
+ 1, len_body
)
24 sep = body ?
"\n" : ""
25 body = body sep
"--" src
27 sub("hi" , "critical", urgency
)
28 sub("med", "normal" , urgency
)
32 "DISPLAY=%s notify-send -u %s %s \" %s\"",
33 Display
, urgency
, subject
, body \