diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-04 10:51:39 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-04 10:51:39 +0200 |
| commit | 4135e34dfa61d32625ef20e8e38064b465402f4a (patch) | |
| tree | beb8cfbcb846eb3a6a3172567ca70a67866d934f /config.arg.h | |
| parent | removed a C++ style comment (diff) | |
| download | dwm-4135e34dfa61d32625ef20e8e38064b465402f4a.tar.gz dwm-4135e34dfa61d32625ef20e8e38064b465402f4a.zip | |
I introduced {H,V}RATIO and inc{h,v,}ratio() functions - the default behaves like in dwm-4.3, config.arg.h shows how I prefer the ratio being handled (for the future I plan to change const char *arg into ..., and renaming Client into Win.)
Diffstat (limited to 'config.arg.h')
| -rw-r--r-- | config.arg.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config.arg.h b/config.arg.h index 2720ce3..2a1a784 100644 --- a/config.arg.h +++ b/config.arg.h | |||
| @@ -31,7 +31,8 @@ static Layout layout[] = { \ | |||
| 31 | { "><>", floating }, \ | 31 | { "><>", floating }, \ |
| 32 | }; | 32 | }; |
| 33 | #define NMASTER 1 /* clients in master area */ | 33 | #define NMASTER 1 /* clients in master area */ |
| 34 | #define RATIO .8 /* ratio of tile */ | 34 | #define HRATIO .8 /* horizontal ratio of tile */ |
| 35 | #define VRATIO .8 /* vertical ratio of tile */ | ||
| 35 | #define SNAP 32 /* snap pixel */ | 36 | #define SNAP 32 /* snap pixel */ |
| 36 | 37 | ||
| 37 | /* key definitions */ | 38 | /* key definitions */ |
| @@ -46,8 +47,10 @@ static Key key[] = { \ | |||
| 46 | "exec urxvtcd -tr -bg '#222' -fg '#eee' -cr '#eee' +sb -fn '"FONT"'" }, \ | 47 | "exec urxvtcd -tr -bg '#222' -fg '#eee' -cr '#eee' +sb -fn '"FONT"'" }, \ |
| 47 | { MODKEY, XK_space, setlayout, NULL }, \ | 48 | { MODKEY, XK_space, setlayout, NULL }, \ |
| 48 | { MODKEY, XK_b, togglebar, NULL }, \ | 49 | { MODKEY, XK_b, togglebar, NULL }, \ |
| 49 | { MODKEY, XK_h, incratio, ".1" }, \ | 50 | { MODKEY, XK_h, incvratio, ".1" }, \ |
| 50 | { MODKEY, XK_l, incratio, "-.1" }, \ | 51 | { MODKEY, XK_h, inchratio, ".1" }, \ |
| 52 | { MODKEY, XK_l, incvratio, "-.1" }, \ | ||
| 53 | { MODKEY, XK_l, inchratio, "-.1" }, \ | ||
| 51 | { MODKEY|ShiftMask, XK_j, incnmaster, "1" }, \ | 54 | { MODKEY|ShiftMask, XK_j, incnmaster, "1" }, \ |
| 52 | { MODKEY|ShiftMask, XK_k, incnmaster, "-1" }, \ | 55 | { MODKEY|ShiftMask, XK_k, incnmaster, "-1" }, \ |
| 53 | { MODKEY, XK_j, focusclient, "1" }, \ | 56 | { MODKEY, XK_j, focusclient, "1" }, \ |
