From 3c2210693862699987a65b3d4dae1d83218c14a9 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 22 Aug 2024 20:50:30 -0400 Subject: [PATCH] dwm: Remove unused layouts / keybinds --- specializations/dwm.nix | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/specializations/dwm.nix b/specializations/dwm.nix index b06035ef..36d301c4 100644 --- a/specializations/dwm.nix +++ b/specializations/dwm.nix @@ -153,8 +153,6 @@ in static const Layout layouts[] = { { "[]=", tile }, - { "><>", NULL }, - { "[M]", monocle }, }; #define MODKEY Mod4Mask @@ -183,8 +181,6 @@ in { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} }, - { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, - { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_4, view, {.ui = ~0 } }, { MODKEY, XK_Return, zoom, {0} }, { MODKEY, XK_comma, focusmon, {.i = -1 } }, @@ -200,19 +196,10 @@ in { MODKEY|ShiftMask, XK_q, quit, {0} }, }; - /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ static const Button buttons[] = { - /* click event mask button function argument */ - { ClkLtSymbol, 0, Button1, setlayout, {0} }, - { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, - { ClkClientWin, MODKEY, Button1, movemouse, {0} }, - { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, - { ClkTagBar, 0, Button1, view, {0} }, - { ClkTagBar, 0, Button3, toggleview, {0} }, - { ClkTagBar, MODKEY, Button1, tag, {0} }, - { ClkTagBar, MODKEY, Button3, toggletag, {0} }, + { ClkClientWin, MODKEY, Button1, movemouse, {0} }, + { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, + { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, }; '';