about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.arg.h2
-rw-r--r--config.default.h2
-rw-r--r--dwm.116
-rw-r--r--dwm.h2
-rw-r--r--event.c32
-rw-r--r--tag.c20
6 files changed, 9 insertions, 65 deletions
diff --git a/config.arg.h b/config.arg.h
index c6cb717..17215fb 100644
--- a/config.arg.h
+++ b/config.arg.h
@@ -22,10 +22,8 @@ static Key key[] = { \
 	{ MODKEY,			XK_1,		view,		{ .i = 0 } }, \
 	{ MODKEY,			XK_2,		view,		{ .i = 1 } }, \
 	{ MODKEY,			XK_3,		view,		{ .i = 2 } }, \
-	{ MODKEY,			XK_h,		viewprev,	{ 0 } }, \
 	{ MODKEY,			XK_j,		focusnext,	{ 0 } }, \
 	{ MODKEY,			XK_k,		focusprev,	{ 0 } }, \
-	{ MODKEY,			XK_l,		viewnext,	{ 0 } }, \
 	{ MODKEY,			XK_m,		togglemax,	{ 0 } }, \
 	{ MODKEY,			XK_p,		spawn, \
 		{ .cmd = "exec `ls -lL /usr/bin /usr/local/bin 2>/dev/null | " \
diff --git a/config.default.h b/config.default.h
index 53b91eb..6a6fb4d 100644
--- a/config.default.h
+++ b/config.default.h
@@ -24,10 +24,8 @@ static Key key[] = { \
 	{ MODKEY,			XK_2,		view,		{ .i = 2 } }, \
 	{ MODKEY,			XK_3,		view,		{ .i = 3 } }, \
 	{ MODKEY,			XK_4,		view,		{ .i = 4 } }, \
-	{ MODKEY,			XK_h,		viewprev,	{ 0 } }, \
 	{ MODKEY,			XK_j,		focusnext,	{ 0 } }, \
 	{ MODKEY,			XK_k,		focusprev,	{ 0 } }, \
-	{ MODKEY,			XK_l,		viewnext,	{ 0 } }, \
 	{ MODKEY,			XK_m,		togglemax,	{ 0 } }, \
 	{ MODKEY,			XK_space,	togglemode,	{ 0 } }, \
 	{ MODKEY,			XK_Return,	zoom,		{ 0 } }, \
diff --git a/dwm.1 b/dwm.1
index da7d6eb..38c50b5 100644
--- a/dwm.1
+++ b/dwm.1
@@ -43,14 +43,6 @@ click on a tag label focuses that
 .B Button2
 click on a tag label toggles that
 .B tag.
-.TP
-.B Button[1,4]
-click on the bar focuses the previous
-.B tag.
-.TP
-.B Button[2,5]
-click on the bar focuses the next
-.B tag.
 .SS Keyboard commands
 .TP
 .B Mod1-Return
@@ -60,10 +52,6 @@ to the
 .B master
 column.
 .TP
-.B Mod1-h
-Focus previous
-.B tag.
-.TP
 .B Mod1-j
 Focus next
 .B window.
@@ -72,10 +60,6 @@ Focus next
 Focus previous
 .B window.
 .TP
-.B Mod1-l
-Focus next
-.B tag.
-.TP
 .B Mod1-m
 Maximize current
 .B window.
diff --git a/dwm.h b/dwm.h
index 8a17368..f9b06d2 100644
--- a/dwm.h
+++ b/dwm.h
@@ -129,8 +129,6 @@ extern void settags(Client *c);
 extern void togglemode(Arg *arg);
 extern void view(Arg *arg);
 extern void toggleview(Arg *arg);
-extern void viewnext(Arg *arg);
-extern void viewprev(Arg *arg);
 
 /* util.c */
 extern void *emallocz(unsigned int size);
diff --git a/event.c b/event.c
index 9da7ac4..bc7d42c 100644
--- a/event.c
+++ b/event.c
@@ -102,30 +102,16 @@ buttonpress(XEvent *e)
 	XButtonPressedEvent *ev = &e->xbutton;
 
 	if(barwin == ev->window) {
-		switch(ev->button) {
-		default:
-			x = 0;
-			for(a.i = 0; a.i < ntags; a.i++) {
-				x += textw(tags[a.i]);
-				if(ev->x < x) {
-					if(ev->button == Button3)
-						toggleview(&a);
-					else
-						view(&a);
-					return;
-				}
+		x = 0;
+		for(a.i = 0; a.i < ntags; a.i++) {
+			x += textw(tags[a.i]);
+			if(ev->x < x) {
+				if(ev->button == Button3)
+					toggleview(&a);
+				else
+					view(&a);
+				return;
 			}
-			if(ev->button == Button1)
-				viewprev(&a);
-			else if(ev->button == Button3)
-				viewnext(&a);
-			break;
-		case Button4:
-			viewprev(&a);
-			break;
-		case Button5:
-			viewnext(&a);
-			break;
 		}
 	}
 	else if((c = getclient(ev->window))) {
diff --git a/tag.c b/tag.c
index 9904dd1..d27d91a 100644
--- a/tag.c
+++ b/tag.c
@@ -263,23 +263,3 @@ toggleview(Arg *arg)
 	arrange(NULL);
 	drawall();
 }
-
-void
-viewnext(Arg *arg)
-{
-	unsigned int i;
-
-	for(i = 0; !seltag[i]; i++);
-	arg->i = (i < ntags-1) ? i+1 : 0;
-	view(arg);
-}
-
-void
-viewprev(Arg *arg)
-{
-	unsigned int i;
-
-	for(i = 0; !seltag[i]; i++);
-	arg->i = (i > 0) ? i-1 : ntags-1;
-	view(arg);
-}
a> 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598