mirror of
https://git.suckless.org/dwm
synced 2024-12-27 03:16:32 +00:00
changing MASTER value from percent into per mill
This commit is contained in:
parent
6cca3999c8
commit
0384faeee5
4 changed files with 9 additions and 9 deletions
|
@ -20,7 +20,7 @@ const char *tags[] = { "dev", "work", "net", "fnord", NULL };
|
|||
#define STATUSBGCOLOR "#222222"
|
||||
#define STATUSFGCOLOR "#9999cc"
|
||||
|
||||
#define MASTER 60 /* percent */
|
||||
#define MASTER 600 /* per mill */
|
||||
#define MODKEY Mod1Mask
|
||||
|
||||
#define KEYS \
|
||||
|
@ -37,8 +37,8 @@ static Key key[] = { \
|
|||
{ MODKEY, XK_k, focusprev, { 0 } }, \
|
||||
{ MODKEY, XK_Return, zoom, { 0 } }, \
|
||||
{ MODKEY, XK_b, togglestackpos, { 0 } }, \
|
||||
{ MODKEY, XK_g, resizecol, { .i = 1 } }, \
|
||||
{ MODKEY, XK_s, resizecol, { .i = -1 } }, \
|
||||
{ MODKEY, XK_g, resizecol, { .i = 10 } }, \
|
||||
{ MODKEY, XK_s, resizecol, { .i = -10 } }, \
|
||||
{ MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \
|
||||
{ MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \
|
||||
{ MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \
|
||||
|
|
|
@ -20,7 +20,7 @@ const char *tags[] = { "1", "2", "3", "4", "5", NULL };
|
|||
#define STATUSBGCOLOR "#dddddd"
|
||||
#define STATUSFGCOLOR "#222222"
|
||||
|
||||
#define MASTER 60 /* percent */
|
||||
#define MASTER 600 /* per mill */
|
||||
#define MODKEY Mod1Mask
|
||||
|
||||
#define KEYS \
|
||||
|
@ -31,8 +31,8 @@ static Key key[] = { \
|
|||
{ MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \
|
||||
{ MODKEY, XK_Return, zoom, { 0 } }, \
|
||||
{ MODKEY, XK_b, togglestackpos, { 0 } }, \
|
||||
{ MODKEY, XK_g, resizecol, { .i = 1 } }, \
|
||||
{ MODKEY, XK_s, resizecol, { .i = -1 } }, \
|
||||
{ MODKEY, XK_g, resizecol, { .i = 10 } }, \
|
||||
{ MODKEY, XK_s, resizecol, { .i = -10 } }, \
|
||||
{ MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \
|
||||
{ MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \
|
||||
{ MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# dwm version
|
||||
VERSION = 1.8
|
||||
VERSION = 1.9
|
||||
|
||||
# Customize below to fit your system
|
||||
|
||||
|
|
4
view.c
4
view.c
|
@ -110,12 +110,12 @@ dotile(Arg *arg) {
|
|||
n++;
|
||||
|
||||
if(stackpos == StackBottom) {
|
||||
md = ((sh - bh) * master) / 100;
|
||||
md = ((sh - bh) * master) / 1000;
|
||||
stackw = sw;
|
||||
stackh = sh - bh - md;
|
||||
}
|
||||
else {
|
||||
md = (sw * master) / 100;
|
||||
md = (sw * master) / 1000;
|
||||
stackw = sw - md;
|
||||
stackh = sh - bh;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue