commit 1a70c10f61efbe494ee22cac36ed92b18a5eab5f
parent 6a1bc592c4e0269908a6d2ee1aee2ed3a998804d
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date: Sun, 13 Nov 2011 12:05:18 +0100
Moved focusatom dwm patch to historical/. It's no longer needed as dwm supports _NET_ACTIVE_WINDOW (since April!). Feel free to remove altogether.
Diffstat:
3 files changed, 44 insertions(+), 42 deletions(-)
diff --git a/dwm.suckless.org/patches/focusatom.md b/dwm.suckless.org/patches/focusatom.md
@@ -1,42 +0,0 @@
-# FOCUS SETTING ATOM
-
-## Description
-
-With this patch, dwm monitors the content of the `_DWM_FOCUS` property in the
-root window (a 32-bit cardinal) and sets the focus accordingly, selecting the
-client tags and monitor if needed.
-
-## Usage
-
-After patching, you can use a modified verwion of lsw to print the window id:
-
- diff -up lsw-0.1/lsw.c lsw.new/lsw.c
- --- lsw-0.1/lsw.c 2006-10-13 11:09:18.000000000 +0200
- +++ lsw.new/lsw.c 2010-02-23 15:15:41.468637549 +0100
- @@ -63,7 +63,7 @@ main(int argc, char *argv[]) {
- continue;
- getname(wins[i]);
- if(buf[0])
- - fprintf(stdout, "%s\n", buf);
- + fprintf(stdout, "%s - %i\n", buf, wins[i]);
- }
- }
- if(wins)
-
-And then call dmenu to choose a window by title, xprop to set it:
-
- win="$(lsw | grep -v ^\<unknown\> | dmenu | awk '{print $NF}')"
- test $win && xprop -root -f _DWM_FOCUS 32c -set _DWM_FOCUS $win
-
-## Notes
-
-* May not be extremely portable
-
-## Download
-
-* [dwm-r1507-focusatom.diff](dwm-r1507-focusatom.diff) (2057 bytes) (20100226)
-
-## Author
-
-* Rafael Garcia - <rafael.garcia.gallego@gmail.com>
-
diff --git a/dwm.suckless.org/patches/dwm-r1507-focusatom.diff b/dwm.suckless.org/patches/historical/dwm-r1507-focusatom.diff
diff --git a/dwm.suckless.org/patches/historical/focusatom.md b/dwm.suckless.org/patches/historical/focusatom.md
@@ -0,0 +1,44 @@
+# FOCUS SETTING ATOM
+
+## Description
+
+With this patch, dwm monitors the content of the `_DWM_FOCUS` property in the
+root window (a 32-bit cardinal) and sets the focus accordingly, selecting the
+client tags and monitor if needed.
+
+## Usage
+
+After patching, you can use a modified verwion of lsw to print the window id:
+
+ diff -up lsw-0.1/lsw.c lsw.new/lsw.c
+ --- lsw-0.1/lsw.c 2006-10-13 11:09:18.000000000 +0200
+ +++ lsw.new/lsw.c 2010-02-23 15:15:41.468637549 +0100
+ @@ -63,7 +63,7 @@ main(int argc, char *argv[]) {
+ continue;
+ getname(wins[i]);
+ if(buf[0])
+ - fprintf(stdout, "%s\n", buf);
+ + fprintf(stdout, "%s - %i\n", buf, wins[i]);
+ }
+ }
+ if(wins)
+
+And then call dmenu to choose a window by title, xprop to set it:
+
+ win="$(lsw | grep -v ^\<unknown\> | dmenu | awk '{print $NF}')"
+ test $win && xprop -root -f _DWM_FOCUS 32c -set _DWM_FOCUS $win
+
+## Notes
+
+* May not be extremely portable
+* You can now use this with mainline lsw by using the -l parameter
+* This patch is now historical since dwm supports _NET_ACTIVE_WINDOW
+
+## Download
+
+* [dwm-r1507-focusatom.diff](dwm-r1507-focusatom.diff) (2057 bytes) (20100226)
+
+## Author
+
+* Rafael Garcia - <rafael.garcia.gallego@gmail.com>
+