changeset: 2376:cdadf0439cda
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Oct 16 15:34:56 2008 -0400
files: cmd/wmii/dat.h cmd/wmii/message.c
description:
Add colmode command to /ctl
diff -r 9054ad2e3c1c -r cdadf0439cda cmd/wmii/dat.h
--- a/cmd/wmii/dat.h Thu Oct 16 14:39:36 2008 -0400
+++ b/cmd/wmii/dat.h Thu Oct 16 15:34:56 2008 -0400
@@ -58,8 +58,10 @@
};
enum {
- Coldefault, Colstack, Colmax,
+ Coldefault, Colstack, Colmax, Collast
};
+
+extern char* modes[];
#define TOGGLE(x) \
(x == On ? "On" : \
diff -r 9054ad2e3c1c -r cdadf0439cda cmd/wmii/message.c
--- a/cmd/wmii/message.c Thu Oct 16 14:39:36 2008 -0400
+++ b/cmd/wmii/message.c Thu Oct 16 15:34:56 2008 -0400
@@ -453,6 +453,11 @@
def.border = n;
view_update(screen->sel);
break;
+ case LCOLMODE:
+ s = msg_getword(m);
+ if(!setdef(&def.colmode, s, modes, Collast))
+ return Ebadvalue;
+ break;
case LDEBUG:
ret = msg_debug(m);
break;
@@ -525,6 +530,7 @@
bufclear();
bufprint("bar on %s\n", barpostab[screen->barpos]);
bufprint("border %d\n", def.border);
+ bufprint("colmode %s\n", modes[def.colmode]);
if(debugflag) {
bufprint("debug ");
printdebug(debugflag);
Received on Thu Oct 16 2008 - 19:34:58 UTC
This archive was generated by hypermail 2.2.0 : Thu Oct 16 2008 - 19:36:05 UTC