[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Thu, 27 Jan 2011 08:30:39 +0000 (UTC)

changeset: 682:b3f7d84c55e4
tag: tip
parent: 681:c5b0d9f4737a
parent: 680:11756bbd5482
user: anselm_AT_garbe.us
date: Thu Jan 27 09:30:37 2011 +0100
description:
merge


diff -r c5b0d9f4737a -r b3f7d84c55e4 dwm.suckless.org/patches/dwm-5.8.2-swap.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/dwm-5.8.2-swap.diff Thu Jan 27 09:30:37 2011 +0100
_AT_@ -0,0 +1,54 @@
+diff -up dwm-5.8.2/config.def.h dwm-5.8.2-swap/config.def.h
+--- dwm-5.8.2/config.def.h 2010-06-04 13:39:15.000000000 +0300
++++ dwm-5.8.2-swap/config.def.h 2011-01-26 07:53:44.607195598 +0200
+_AT_@ -53,6 +53,7 @@ static Key keys[] = {
+ { MODKEY, XK_p, spawn, {.v = dmenucmd } },
+ { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
+ { MODKEY, XK_b, togglebar, {0} },
++ { MODKEY, XK_s, swapfocus, {0} },
+ { MODKEY, XK_j, focusstack, {.i = +1 } },
+ { MODKEY, XK_k, focusstack, {.i = -1 } },
+ { MODKEY, XK_h, setmfact, {.f = -0.05} },
+Only in dwm-5.8.2-swap: config.h
+diff -up dwm-5.8.2/dwm.c dwm-5.8.2-swap/dwm.c
+--- dwm-5.8.2/dwm.c 2010-06-04 13:39:15.000000000 +0300
++++ dwm-5.8.2-swap/dwm.c 2011-01-26 07:54:27.741193905 +0200
+_AT_@ -183,6 +183,7 @@ static void focus(Client *c);
+ static void focusin(XEvent *e);
+ static void focusmon(const Arg *arg);
+ static void focusstack(const Arg *arg);
++static void swapfocus();
+ static unsigned long getcolor(const char *colstr);
+ static Bool getrootptr(int *x, int *y);
+ static long getstate(Window w);
+_AT_@ -244,6 +245,7 @@ static int xerrorstart(Display *dpy, XEr
+ static void zoom(const Arg *arg);
+
+ /* variables */
++static Arg focusdirection={.i=1};
+ static const char broken[] = "broken";
+ static char stext[256];
+ static int screen;
+_AT_@ -862,6 +864,8 @@ focusmon(const Arg *arg) {
+
+ void
+ focusstack(const Arg *arg) {
++ focusdirection.i=arg->i;
++
+ Client *c = NULL, *i;
+
+ if(!selmon->sel)
+_AT_@ -886,6 +890,13 @@ focusstack(const Arg *arg) {
+ }
+ }
+
++void
++swapfocus(){
++ focusdirection.i*=-1;
++ focusstack(&focusdirection);
++}
++
++
+ unsigned long
+ getcolor(const char *colstr) {
+ Colormap cmap = DefaultColormap(dpy, screen);
diff -r c5b0d9f4737a -r b3f7d84c55e4 dwm.suckless.org/patches/swapfocus.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/swapfocus.md Thu Jan 27 09:30:37 2011 +0100
_AT_@ -0,0 +1,14 @@
+# SWAP FOCUS
+
+## Description
+
+This patch makes it possible to switch focus with one single shortcut (alt-s) instead of having to think if you should use alt-j or alt-k for reaching the last used window.
+
+## Download
+
+ * [dwm-5.8.2-swap.diff](dwm-5.8.2-swap.diff) (dwm 5.8.2)
+
+## Author
+
+ * Lasse Engblom
+
Received on Thu Jan 27 2011 - 09:30:39 CET

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:31:37 CEST