82 TAGKEYS( XK_9, 8) |
82 TAGKEYS( XK_9, 8) |
83 { MODKEY|ShiftMask, XK_q, quit, {0} }, |
83 { MODKEY|ShiftMask, XK_q, quit, {0} }, |
84 }; |
84 }; |
85 |
85 |
86 /* button definitions */ |
86 /* button definitions */ |
87 #define TAGBUTTONS(TAG) \ |
|
88 { TAG, 0, Button1, view, {.ui = 1 << TAG} }, \ |
|
89 { TAG, 0, Button3, toggleview, {.ui = 1 << TAG} }, \ |
|
90 { TAG, MODKEY, Button1, tag, {.ui = 1 << TAG} }, \ |
|
91 { TAG, MODKEY, Button3, toggletag, {.ui = 1 << TAG} }, |
|
92 |
|
93 /* click can be a tag number (starting at 0), |
87 /* click can be a tag number (starting at 0), |
94 * ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ |
88 * ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ |
95 static Button buttons[] = { |
89 static Button buttons[] = { |
96 /* click event mask button function argument */ |
90 /* click event mask button function argument */ |
97 { ClkLtSymbol, 0, Button1, setlayout, {0} }, |
91 { ClkLtSymbol, 0, Button1, setlayout, {0} }, |
99 { ClkWinTitle, 0, Button2, zoom, {0} }, |
93 { ClkWinTitle, 0, Button2, zoom, {0} }, |
100 { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, |
94 { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, |
101 { ClkClientWin, MODKEY, Button1, movemouse, {0} }, |
95 { ClkClientWin, MODKEY, Button1, movemouse, {0} }, |
102 { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, |
96 { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, |
103 { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, |
97 { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, |
104 TAGBUTTONS(0) |
98 { ClkTagBar, 0, Button1, view, {0} }, \ |
105 TAGBUTTONS(1) |
99 { ClkTagBar, 0, Button3, toggleview, {0} }, \ |
106 TAGBUTTONS(2) |
100 { ClkTagBar, MODKEY, Button1, tag, {0} }, \ |
107 TAGBUTTONS(3) |
101 { ClkTagBar, MODKEY, Button3, toggletag, {0} }, |
108 TAGBUTTONS(4) |
|
109 TAGBUTTONS(5) |
|
110 TAGBUTTONS(6) |
|
111 TAGBUTTONS(7) |
|
112 TAGBUTTONS(8) |
|
113 }; |
102 }; |
114 |
103 |