foo-wm

(Archived) Experimental Zooming IPC-based WM
git clone http://milesalan.com/git/foo-wm
Log | Files | Refs | Mirror | README | LICENSE

commit e06f8a2a5685b34789be5f8df50f578e61360340
parent 0a73c53f00b4efc7b77967fb310eac37617ab54d
Author: Miles Sandlar <miles.sandlar@gmail.com>
Date:   Fri, 29 Jun 2012 17:54:19 -0400

Added a way to control the WM from Dmenu

Diffstat:
Mconfig/.xbindkeysrc | 16++++++++++------
Aconfig/commands | 7+++++++
Aconfig/writefifo | 2++
Msrc/config.h | 2+-
4 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/config/.xbindkeysrc b/config/.xbindkeysrc @@ -12,28 +12,28 @@ Shift+Mod4 + q ### WM -"echo 'layout vertical set' > /home/mil/code/repos/github/fifo-wm/wm-fifo" +"echo 'layout vertical set' > /home/mil/fifos/wm-fifo" m:0x40 + c:55 Mod4 + v -"echo 'layout horizontal set' > /home/mil/code/repos/github/fifo-wm/wm-fifo" +"echo 'layout horizontal set' > /home/mil/fifos/wm-fifo" m:0x40 + c:56 Mod4 + b -"echo 'containerize set' > /home/mil/code/repos/github/fifo-wm/wm-fifo" +"echo 'containerize set' > /home/mil/fifos/wm-fifo" m:0x40 + c:33 Mod4 + p -"echo 'focus next set' > /home/mil/code/repos/github/fifo-wm/wm-fifo" +"echo 'focus next set' > /home/mil/fifos/wm-fifo" m:0x40 + c:44 Mod4 + j -"echo 'focus previous set' > /home/mil/code/repos/github/fifo-wm/wm-fifo" +"echo 'focus previous set' > /home/mil/fifos/wm-fifo" m:0x40 + c:45 Mod4 + k -"echo 'dump tree' > /home/mil/code/repos/github/fifo-wm/wm-fifo" +"echo 'dump tree' > /home/mil/fifos/wm-fifo" m:0x40 + c:28 Mod4 + t @@ -41,3 +41,7 @@ "dmenu-suggestions.rb | dmenu -h 60 -x 100 -y 400 -w 1200 -fn 'Envy Code R-20' -sb '#ffffff' -nf '#00ffd5' -nb '#1f1f1f' -sf '#000000' -b -p 'Command:' | xargs -0 -I INPUT handler INPUT" m:0x40 + c:40 Mod4 + d + +"cat /home/mil/code/repos/github/fifo-wm/config/commands | dmenu -h 60 -x 100 -y 400 -w 1200 -fn 'Envy Code R-20' -sb '#ffffff' -nf '#00ffd5' -nb '#1f1f1f' -sf '#000000' -b -p 'fifowm:' | xargs -0 -I INPUT sh /home/mil/code/repos/github/fifo-wm/config/writefifo INPUT" + m:0x40 + c:38 + Mod4 + a diff --git a/config/commands b/config/commands @@ -0,0 +1,7 @@ +containerize +dump +layout horizontal +layout vertical +focus next +focus previous +focus parent diff --git a/config/writefifo b/config/writefifo @@ -0,0 +1,2 @@ +#!/bin/bash +echo $@ set > /home/mil/fifos/wm-fifo diff --git a/src/config.h b/src/config.h @@ -1,5 +1,5 @@ // FIFO -#define FIFO "wm-fifo" +#define FIFO "/home/mil/fifos/wm-fifo" // Windows #define CLIENT_FOCUSED_COLOR "rgb:37/ff/00"