From 22e85e82576d5948cc2e2f874eeab4c5ff38cb54 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Fri, 28 Jul 2023 22:17:42 +0200 Subject: [PATCH] change last client focus key --- README.md | 5 ++--- config.h | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 03edb54..888b62a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Modifier(s)|Key|Action :--|:--|:-- Mod|0|Show all tags Mod Shift|0|Make a client sticky -Mod|Tab|Focus first client on stack +Mod|Tab|Focus last active client Mod Shift|Tab|Move active client to top of stack Mod|,|Focus previous monitor on stack Mod Shift|,|Move active client to previous monitor on stack @@ -15,8 +15,7 @@ Mod|j|Focus next client on stack Mod Shift|j|Move active client down stack Mod|k|Focus previous client on stack Mod Shift|k|Move active client up stack -Mod|v|Focus last active client -Mod Shift|v|Swap active client with last active client +Mod|v|Focus first client on stack Mod|space|Move active client to top of stack Mod Shift|space|Make active client float diff --git a/config.h b/config.h index 653ea5c..1b69d22 100644 --- a/config.h +++ b/config.h @@ -149,8 +149,8 @@ static const Key keys[] = { // { MODKEY | ShiftMask, XK_bracketright, spawn, {.v = (const char *[]){NULL}} }, { MODKEY, XK_BackSpace, spawn, {.v = (const char *[]){"sysact", NULL}} }, // { MODKEY | ShiftMask, XK_BackSpace, spawn, {.v = (const char *[]){NULL}} }, - { MODKEY, XK_Tab, focusstack, {.i = 0} }, - { MODKEY | ShiftMask, XK_Tab, pushstack, {.i = 0} }, + { MODKEY, XK_Tab, focusstack, {.i = PREVSEL} }, + // { MODKEY | ShiftMask, XK_Tab, spawn, {.v = (const char *[]){NULL}} }, // { MODKEY, XK_apostrophe, spawn, {.v = (const char *[]){NULL}} }, // { MODKEY | ShiftMask, XK_apostrophe, spawn, {.v = (const char *[]){NULL}} }, { MODKEY, XK_comma, focusmon, {.i = +1} }, @@ -218,8 +218,8 @@ static const Key keys[] = { { MODKEY | ShiftMask, XK_m, spawn, {.v = (const char *[]){"playerctl", "-a", "stop"}} }, { MODKEY, XK_w, spawn, {.v = (const char *[]){"ferdium", NULL}} }, // { MODKEY | ShiftMask, XK_w, spawn, {.v = (const char *[]){NULL}} }, - { MODKEY, XK_v, focusstack, {.i = PREVSEL} }, - { MODKEY | ShiftMask, XK_v, pushstack, {.i = PREVSEL} }, + { MODKEY, XK_v, focusstack, {.i = 0} }, + { MODKEY | ShiftMask, XK_v, pushstack, {.i = 0} }, // { MODKEY, XK_z, spawn, {.v = (const char *[]){NULL}} }, // { MODKEY | ShiftMask, XK_z, spawn, {.v = (const char *[]){NULL}} }, { MODKEY, XK_space, zoom, {0} },