This commit is contained in:
Arthur Khachaturov 2024-07-04 13:49:10 +03:00
parent f6e995fe98
commit 765fb16e7d
7 changed files with 357 additions and 98 deletions

12
util.c
View file

@ -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);
}