Skip to content

Instantly share code, notes, and snippets.

@bathtime
Created March 16, 2019 22:32
Show Gist options
  • Save bathtime/47dc7f96380950a4ecbbb4ca6a45517c to your computer and use it in GitHub Desktop.
Save bathtime/47dc7f96380950a4ecbbb4ca6a45517c to your computer and use it in GitHub Desktop.
/*
Config file: /home/pi/.config/dunst/dunstrc
gcc -o notify `pkg-config --cflags --libs libnotify` notify.c
*/
#include <libnotify/notify.h>
int main(int argc, char **argv) {
notify_init ("Hello world!");
NotifyNotification * Hello = notify_notification_new (argv[1], argv[2], argv[3]);
notify_notification_show (Hello, NULL);
g_object_unref(G_OBJECT(Hello));
notify_uninit();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment