From e86d0cec57b80e0597448bbb22820fe21b6bdcb0 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Mon, 5 Aug 2019 21:14:19 +0200 Subject: Changed button functionality clicking on layout symbol so that it cycles trough --- config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index 7c05168..993d20f 100644 --- a/config.h +++ b/config.h @@ -124,8 +124,8 @@ static Key keys[] = { /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ static Button buttons[] = { /* click event mask button function argument */ - { ClkLtSymbol, 0, Button1, setlayout, {0} }, - { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, + { ClkLtSymbol, 0, Button1, cyclelayout, {.i = +1 } }, + { ClkLtSymbol, 0, Button3, cyclelayout, {.i = -1 } }, { ClkWinTitle, 0, Button2, zoom, {0} }, { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, -- cgit 1.4.1