Created
March 16, 2019 22:32
-
-
Save bathtime/47dc7f96380950a4ecbbb4ca6a45517c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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