commit 6ca4fb5fba6e2c2331f1ee1ff4e8b19f57784f11
parent 55d56f81239c65e6276039451c207893b6c6cc24
Author: Hayden Hamilton <hayden@haydenvh.com>
Date: Tue, 22 Sep 2020 22:12:30 +0100
cool - I didn't even know alt+` existed. This is cool, but needed one tweak to work with my dmenu
Diffstat:
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,3 @@
+tabbed
+xembed
+*.o
diff --git a/Makefile b/Makefile
@@ -17,7 +17,7 @@ options:
.c.o:
@echo CC $<
- @${CC} -c ${CFLAGS} $<
+ @$(CC) -c ${CFLAGS} $<
${OBJ}: config.h config.mk
@@ -27,7 +27,7 @@ config.h:
.o:
@echo CC -o $@
- @${CC} -o $@ $< ${LDFLAGS}
+ @$(CC) -o $@ $< ${LDFLAGS}
clean:
@echo cleaning
diff --git a/config.h b/config.h
@@ -27,7 +27,7 @@ static Bool npisrelative = False;
.v = (char *[]){ "/bin/sh", "-c", \
"prop=\"`xwininfo -children -id $1 | grep '^ 0x' |" \
"sed -e's@^ *\\(0x[0-9a-f]*\\) \"\\([^\"]*\\)\".*@\\1 \\2@' |" \
- "xargs -0 printf %b | dmenu -l 10 -w $1`\" &&" \
+ "xargs -0 printf %b | dmenu -l 10 -w $1 -c`\" &&" \
"xprop -id $1 -f $0 8s -set $0 \"$prop\"", \
p, winid, NULL \
} \
@@ -39,6 +39,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_Return, focusonce, { 0 } },
{ MODKEY|ShiftMask, XK_Return, spawn, { 0 } },
+
{ MODKEY|ShiftMask, XK_l, rotate, { .i = +1 } },
{ MODKEY|ShiftMask, XK_h, rotate, { .i = -1 } },
{ MODKEY|ShiftMask, XK_j, movetab, { .i = -1 } },