changes
This commit is contained in:
parent
f6e995fe98
commit
765fb16e7d
7 changed files with 357 additions and 98 deletions
12
util.c
12
util.c
|
@ -34,3 +34,15 @@ ecalloc(size_t nmemb, size_t size)
|
|||
die("calloc:");
|
||||
return p;
|
||||
}
|
||||
|
||||
void
|
||||
notify(const char *fmt, ...) {
|
||||
va_list ap;
|
||||
char cmd[1024] = "notify-send ";
|
||||
|
||||
va_start(ap, fmt);
|
||||
sprintf(cmd+12, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
system(cmd);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue