[wiki] [sites] fifo for dwmstatus. Please correct it, or throw stones. || Thuban

From: <git_AT_suckless.org>
Date: Fri, 21 Jun 2013 15:01:08 +0200

commit c0caee8b9bb9e26a7db021e87f01dd99f109c415
Author: Thuban <thuban_AT_singularity.fr>
Date: Fri Jun 21 15:01:05 2013 +0200

    fifo for dwmstatus. Please correct it, or throw stones.

diff --git a/dwm.suckless.org/dwmstatus/fifo.c b/dwm.suckless.org/dwmstatus/fifo.c
new file mode 100644
index 0000000..48b53ad
--- /dev/null
+++ b/dwm.suckless.org/dwmstatus/fifo.c
_AT_@ -0,0 +1,41 @@
+/*
+ * send anything in dwm status bar with fifo
+ * example : echo "hello" >> /tmp/dwm.fifo
+ * Author: Xavier Cartron (XC), thuban_AT_yeuxdelibad.net
+*/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <fcntl.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <errno.h>
+
+#define FIFO "/tmp/dwm.fifo"
+
+char *
+snotif()
+{
+ char buf[BUFSIZ];
+ buf[0] = '
Received on Fri Jun 21 2013 - 15:01:08 CEST

This archive was generated by hypermail 2.3.0 : Fri Jun 21 2013 - 15:12:12 CEST