Introduction
Introduction Statistics Contact Development Disclaimer Help
tI really need column growing, now pushing upstream - dwm - [fork] customized b…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 6499fc4f938eb7e61ab3e25df3904db9c890c693
parent 04f27a54380cbd2bb24d8a86b672af34bb38d2fa
Author: Anselm R. Garbe <[email protected]>
Date: Tue, 5 Sep 2006 09:02:37 +0200
I really need column growing, now pushing upstream
Diffstat:
M config.arg.h | 1 +
M config.default.h | 1 +
M dwm.1 | 6 ++++++
M dwm.h | 1 +
M view.c | 18 ++++++++++++++++++
5 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/config.arg.h b/config.arg.h
t@@ -34,6 +34,7 @@ static Key key[] = { \
{ MODKEY, XK_k, focusprev, …
{ MODKEY, XK_Return, zoom, …
{ MODKEY, XK_m, togglemax, …
+ { MODKEY, XK_g, growcol, …
{ MODKEY|ShiftMask, XK_1, tag, …
{ MODKEY|ShiftMask, XK_2, tag, …
{ MODKEY|ShiftMask, XK_3, tag, …
diff --git a/config.default.h b/config.default.h
t@@ -29,6 +29,7 @@ static Key key[] = { \
{ MODKEY|ShiftMask, XK_Tab, focusprev, …
{ MODKEY, XK_Return, zoom, …
{ MODKEY, XK_m, togglemax, …
+ { MODKEY, XK_g, growcol, …
{ MODKEY|ShiftMask, XK_1, tag, …
{ MODKEY|ShiftMask, XK_2, tag, …
{ MODKEY|ShiftMask, XK_3, tag, …
diff --git a/dwm.1 b/dwm.1
t@@ -90,6 +90,12 @@ mode only).
Maximize current
.BR window .
.TP
+.B Mod1-g
+Grow current
+.BR column
+.RB ( tiling
+mode only).
+.TP
.B Mod1-Shift-[1..n]
Apply
.B nth tag
diff --git a/dwm.h b/dwm.h
t@@ -131,6 +131,7 @@ extern void dofloat(Arg *arg);
extern void dotile(Arg *arg);
extern void focusnext(Arg *arg);
extern void focusprev(Arg *arg);
+extern void growcol(Arg *arg);
extern Bool isvisible(Client *c);
extern void restack();
extern void togglemode(Arg *arg);
diff --git a/view.c b/view.c
t@@ -169,6 +169,24 @@ focusprev(Arg *arg)
}
}
+void
+growcol(Arg *arg)
+{
+ if(!sel || (arrange != dotile))
+ return;
+ if(sel == getnext(clients)) {
+ if(mw + arg->i > sw - 100)
+ return;
+ mw += arg->i;
+ }
+ else {
+ if(mw - arg->i < 100)
+ return;
+ mw -= arg->i;
+ }
+ arrange(NULL);
+}
+
Bool
isvisible(Client *c)
{
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.