about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-08-05 21:14:19 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-08-05 21:14:19 +0200
commite86d0cec57b80e0597448bbb22820fe21b6bdcb0 (patch)
tree47674615b03ca9406454b04304a5c833dc5245c4
parentChanged location getting in weather.py from geolocate cmd (diff)
downloaddwm-e86d0cec57b80e0597448bbb22820fe21b6bdcb0.tar.gz
dwm-e86d0cec57b80e0597448bbb22820fe21b6bdcb0.tar.bz2
dwm-e86d0cec57b80e0597448bbb22820fe21b6bdcb0.zip
Changed button functionality clicking on layout symbol so that it cycles trough
-rw-r--r--config.h4
1 files 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} },