X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.arg.h;h=423e93534ca32020ebd4ea6b57487b8871356d81;hb=d180ba418cd56f3a743d9a5863f86f7eae21602f;hp=7b54ca27db5103c2390973de7df3604c47a7d9fd;hpb=cee56d38632bbac08e7f59d58c7c7ab1370be329;p=dwm.git diff --git a/config.arg.h b/config.arg.h index 7b54ca2..423e935 100644 --- a/config.arg.h +++ b/config.arg.h @@ -2,16 +2,6 @@ * See LICENSE file for license details. */ -#define TAGS \ -const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; - -#define LAYOUTS \ -static Layout layout[] = { \ - /* symbol function */ \ - { "[]=", tile }, /* first entry is default */ \ - { "><>", swim }, \ -}; - #define BORDERPX 1 #define FONT "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*" #define NORMBORDERCOLOR "#333" @@ -27,6 +17,16 @@ static Layout layout[] = { \ #define SNAP 40 /* pixel */ #define TOPBAR True /* False */ +#define TAGS \ +const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL }; + +#define LAYOUTS \ +static Layout layout[] = { \ + /* symbol function */ \ + { "[]=", tile }, /* first entry is default */ \ + { "><>", versatile }, \ +}; + #define KEYS \ static Key key[] = { \ /* modifier key function argument */ \ @@ -63,8 +63,8 @@ static Key key[] = { \ { MODKEY|ControlMask|ShiftMask, XK_8, toggletag, { .i = 7 } }, \ { MODKEY|ControlMask|ShiftMask, XK_9, toggletag, { .i = 8 } }, \ { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ - { MODKEY, XK_space, togglelayout, { 0 } }, \ - { MODKEY|ShiftMask, XK_space, toggleswimming, { 0 } }, \ + { MODKEY, XK_space, setlayout, { .i = -1 } }, \ + { MODKEY|ShiftMask, XK_space, toggleversatile,{ 0 } }, \ { MODKEY, XK_0, view, { .i = -1 } }, \ { MODKEY, XK_1, view, { .i = 0 } }, \ { MODKEY, XK_2, view, { .i = 1 } }, \ @@ -89,7 +89,7 @@ static Key key[] = { \ #define RULES \ static Rule rule[] = { \ - /* class:instance:title regex tags regex swimming */ \ + /* class:instance:title regex tags regex isversatile */ \ { "Firefox", "3", False }, \ { "Gimp", NULL, True }, \ { "MPlayer", NULL, True }, \