From 6458d72572a30d2cc4af3385755033b2cca93057 Mon Sep 17 00:00:00 2001
From: "Anselm R. Garbe"
Date: Fri, 14 Jul 2006 10:34:07 +0200
Subject: made barclick to select the specific tag
---
bar.c | 14 ++++++++++++++
dwm.1 | 3 +++
dwm.h | 1 +
dwm.html | 16 ++++++++++++++--
event.c | 4 +++-
main.c | 2 +-
6 files changed, 36 insertions(+), 4 deletions(-)
diff --git a/bar.c b/bar.c
index 9914e56..ea4b946 100644
--- a/bar.c
+++ b/bar.c
@@ -5,6 +5,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()
{
diff --git a/dwm.1 b/dwm.1
index e205e05..95a5d3a 100644
--- a/dwm.1
+++ b/dwm.1
@@ -12,6 +12,9 @@ is a dynamic window manager for X11.
.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 --git a/dwm.h b/dwm.h
index 1f8283c..5d7ff1a 100644
--- a/dwm.h
+++ b/dwm.h
@@ -103,6 +103,7 @@ extern Client *clients, *sel;
/* bar.c */
extern void draw_bar();
+extern void barclick(XButtonPressedEvent *e);
/* client.c */
extern void manage(Window w, XWindowAttributes *wa);
diff --git a/dwm.html b/dwm.html
index d1602fb..2efdebd 100644
--- a/dwm.html
+++ b/dwm.html
@@ -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)