Introduction
Introduction Statistics Contact Development Disclaimer Help
tapplied Jukkas prev/next patch with XK_{h,l} - dwm - [fork] customized build o…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 1b63f832c528958042d72fddc318af5aefdcb68a
parent 7b5638f61d5c8b5a76bc3f7a5962cb7490da3b6b
Author: [email protected] <unknown>
Date: Tue, 1 Aug 2006 12:39:14 +0200
applied Jukkas prev/next patch with XK_{h,l}
Diffstat:
M dwm.h | 2 ++
M event.c | 2 ++
M tag.c | 14 ++++++++++++++
3 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/dwm.h b/dwm.h
t@@ -143,6 +143,8 @@ extern void replacetag(Arg *arg);
extern void settags(Client *c);
extern void togglemode(Arg *arg);
extern void view(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
t@@ -32,8 +32,10 @@ static Key key[] = {
{ MODKEY, XK_2, view, { .…
{ MODKEY, XK_3, view, { .…
{ MODKEY, XK_4, view, { .…
+ { 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/tag.c b/tag.c
t@@ -216,3 +216,17 @@ view(Arg *arg)
arrange(NULL);
drawall();
}
+
+void
+viewnext(Arg *arg)
+{
+ arg->i = (tsel < TLast-1) ? tsel+1 : 0;
+ view(arg);
+}
+
+void
+viewprev(Arg *arg)
+{
+ arg->i = (tsel > 0) ? tsel-1 : TLast-1;
+ view(arg);
+}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.