# HG changeset patch
# User Anselm R. Garbe
# Date 1152866047 -7200
# Node ID 1269bd127551a4b2b28089299b0f97397e7c17eb
# Parent f005d46462e87f6a045ce7093d421ad2eaeb1a1f
made barclick to select the specific tag
diff -r f005d46462e8 -r 1269bd127551 bar.c
--- a/bar.c Fri Jul 14 10:07:38 2006 +0200
+++ b/bar.c Fri Jul 14 10:34:07 2006 +0200
@@ -6,6 +6,20 @@
#include "dwm.h"
void
+barclick(XButtonPressedEvent *e)
+{
+ int x = 0;
+ Arg a;
+ for(a.i = 0; a.i < TLast; a.i++) {
+ x += textw(tags[a.i]) + dc.font.height;
+ if(e->x < x) {
+ view(&a);
+ return;
+ }
+ }
+}
+
+void
draw_bar()
{
int i;
diff -r f005d46462e8 -r 1269bd127551 dwm.1
--- a/dwm.1 Fri Jul 14 10:07:38 2006 +0200
+++ b/dwm.1 Fri Jul 14 10:34:07 2006 +0200
@@ -12,6 +12,9 @@
.TP
.B \-v
prints version information to stdout, then exits.
+.SS Status text
+.B dwm
+reads from stdin to display status text if provided.
.SS Default Key Bindings
.TP 16
.I Key
diff -r f005d46462e8 -r 1269bd127551 dwm.h
--- a/dwm.h Fri Jul 14 10:07:38 2006 +0200
+++ b/dwm.h Fri Jul 14 10:34:07 2006 +0200
@@ -103,6 +103,7 @@
/* bar.c */
extern void draw_bar();
+extern void barclick(XButtonPressedEvent *e);
/* client.c */
extern void manage(Window w, XWindowAttributes *wa);
diff -r f005d46462e8 -r 1269bd127551 dwm.html
--- a/dwm.html Fri Jul 14 10:07:38 2006 +0200
+++ b/dwm.html Fri Jul 14 10:34:07 2006 +0200
@@ -39,7 +39,7 @@
-
- dwm has no 9P support, no status bar, no menu, no editable tagbars,
+ dwm has no 9P support, no menu, no editable tagbars,
no shell-based configuration and remote control and comes without
any additional tools like printing the selection or warping the
mouse.
@@ -69,6 +69,11 @@
clients.
-
+ dwm reads from stdin to print arbirary status text (like the
+ date, load, battery charge). That's much simpler than larsremote,
+ wmiir and what not...
+
+ -
garbeam does not want any feedback to dwm. If you ask for support,
feature requests, or if you report bugs, they will be ignored
with a high chance. dwm is only intended to fit garbeams needs.
@@ -87,6 +92,13 @@
hg clone http://wmii.de/cgi-bin/hgwebdir.cgi/dwm
- --Anselm (20060713)
+ Download
+ There is no release yet.
+ Miscellaneous
+
+ You can purchase this tricot
+ if you like dwm and the dwm logo, which has been designed by garbeam.
+
+ --Anselm (20060714)