commit 07c53b30d9e5a3f2580aad1fd78dd86234524e59
parent 0fe98fa4606e2b84e62764ee459d25df7d2105d0
Author: Miles Sandlar <miles.sandlar@gmail.com>
Date: Sun, 17 Jun 2012 21:13:58 -0400
Added config files for .xinitrc and .xbindkeysrc
Changed FIFO to use O_RDWR as it was not cooperating
Diffstat:
3 files changed, 51 insertions(+), 1 deletion(-)
diff --git a/config/.xbindkeysrc b/config/.xbindkeysrc
@@ -0,0 +1,48 @@
+### Applications
+"urxvt"
+ m:0x40 + c:36
+ Mod4 + Enter
+
+
+
+### Workspaces Switching via FIFO
+"echo 'workspace 0' > /home/mil/repos/github/fifo-wm/wm-fifo"
+ m:0x40 + c:10
+ Mod4 + 1
+
+"echo 'workspace 1' > /home/mil/repos/github/fifo-wm/wm-fifo"
+ m:0x40 + c:11
+ Mod4 + 2
+
+"echo 'workspace 2' > /home/mil/repos/github/fifo-wm/wm-fifo"
+ m:0x40 + c:12
+ Mod4 + 3
+
+"echo 'workspace 3' > /home/mil/repos/github/fifo-wm/wm-fifo"
+ m:0x40 + c:13
+ Mod4 + 4
+
+"echo 'workspace 4' > /home/mil/repos/github/fifo-wm/wm-fifo"
+ m:0x40 + c:14
+ Mod4 + 5
+
+"echo 'workspace 5' > /home/mil/repos/github/fifo-wm/wm-fifo"
+ m:0x40 + c:15
+ Mod4 + 6
+
+"echo 'workspace 6' > /home/mil/repos/github/fifo-wm/wm-fifo"
+ m:0x40 + c:16
+ Mod4 + 7
+
+
+"echo 'workspace 7' > /home/mil/repos/github/fifo-wm/wm-fifo"
+ m:0x40 + c:17
+ Mod4 + 8
+
+"echo 'workspace 8' > /home/mil/repos/github/fifo-wm/wm-fifo"
+ m:0x40 + c:18
+ Mod4 + 9
+
+"echo 'workspace 9' > /home/mil/repos/github/fifo-wm/wm-fifo"
+ m:0x40 + c:19
+ Mod4 + 0
diff --git a/config/.xinitrc b/config/.xinitrc
@@ -0,0 +1,2 @@
+xbindkeys -f /home/mil/repos/github/fifo-wm/config/.xbindkeysrc &
+exec /home/mil/repos/github/fifo-wm/fifo-wm
diff --git a/fifo-wm.c b/fifo-wm.c
@@ -109,7 +109,7 @@ void handleEvents() {
FD_ZERO(&descriptors);
/* Open the FIFO FD, Add the X FD and the FIFO FD to the Set */
- fifoFd = open(FIFO, O_RDONLY | O_NONBLOCK);
+ fifoFd = open(FIFO, O_RDWR | O_NONBLOCK);
FD_SET(fifoFd, &descriptors);
FD_SET(xFd, &descriptors);