From 9e8e7b2cab5fee16e2d9472a2c6791b99a82662f Mon Sep 17 00:00:00 2001 From: filip <“filip.rabiega@gmail.com”> Date: Thu, 12 Feb 2026 12:46:51 +0100 Subject: cleanup --- config.def.h | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 66063b7..954f88e 100644 --- a/config.def.h +++ b/config.def.h @@ -9,8 +9,8 @@ static const unsigned int maxWTab = 600; /* tab menu width */ static const unsigned int maxHTab = 200; /* tab menu height */ /* appearance */ -static const unsigned int borderpx = 24; /* border pixel of windows */ -static const unsigned int gappx = 24; /* gap pixel between windows */ +static const unsigned int borderpx = 16; /* border pixel of windows */ +static const unsigned int gappx = 16; /* gap pixel between windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ @@ -59,7 +59,7 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win static const Layout layouts[] = { /* symbol arrange function */ { "[@]", spiral }, /* first entry is default */ - { "[]=", tile }, /* unused */ + { "[]=", tile }, { "><>", NULL }, /* no layout function means floating behavior */ { "[\\]", dwindle }, { "[M]", monocle }, /* unused */ @@ -78,23 +78,21 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *termcmd[] = { "tabbed", "-c", "-r", "2", "st", "-w", "''", "-e", "/usr/bin/zsh", NULL }; +static const char *brightnessdowncmd[] = { "brightness", "down", NULL }; +static const char *brightnessupcmd[] = { "brightness", "up", NULL }; static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_black, "-nf", col_white, "-sb", col_green, "-sf", col_white, NULL }; /* unused */ -static const char *launchcmd[] = { "launch", NULL }; static const char *maimcmd[] = { "maimpick", NULL }; static const char *mansplaincmd[] = { "mansplain", NULL }; static const char *notesplaincmd[] = { "notesplain", NULL }; static const char *slpcmd[] = { "slp", NULL }; +static const char *termcmd[] = { "tabbed", "-c", "-r", "2", "st", "-w", "''", "-e", "/usr/bin/zsh", NULL }; static const char *viacmd[] = { "via", NULL }; -static const char *volumeupcmd[] = { "volume", "up", NULL }; static const char *volumedowncmd[] = { "volume", "down", NULL }; static const char *volumemutecmd[] = { "volume", "mute", NULL }; -static const char *brightnessupcmd[] = { "brightness", "up", NULL }; -static const char *brightnessdowncmd[] = { "brightness", "down", NULL }; +static const char *volumeupcmd[] = { "volume", "up", NULL }; static const Key keys[] = { - /* modifier key function argument */ - { MODKEY, XK_p, spawn, {.v = launchcmd } }, + /* modifier key function argument */ { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY|ShiftMask, XK_s, spawn, {.v = maimcmd } }, { MODKEY, XK_s, spawn, {.v = slpcmd } }, @@ -110,7 +108,7 @@ static const Key keys[] = { { MODKEY, XK_q, view, {0} }, { MODKEY|ShiftMask, XK_c, killclient, {0} }, { MODKEY, XK_f, setlayout, {.v = &layouts[0]} }, - // { MODKEY, XK_t, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_t, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_r, setlayout, {.v = &layouts[2]} }, { MODKEY|ShiftMask, XK_r, setlayout, {.v = &layouts[3]} }, { MODKEY, XK_m, spawn, {.v = mansplaincmd}}, @@ -121,7 +119,7 @@ static const Key keys[] = { { MODKEY, XK_Up, spawn, {.v = volumemutecmd}}, { MODKEY|ShiftMask, XK_Page_Up, spawn, {.v = brightnessupcmd} }, { MODKEY|ShiftMask, XK_Page_Down, spawn, {.v = brightnessdowncmd}}, - // { MODKEY, XK_t, spawn, {.v = dtranscmd}}, + // { MODKEY, XK_t, spawn, {.v = dtranscmd}}, // { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, @@ -132,10 +130,10 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, { Mod1Mask, XK_Tab, altTabStart, {0} }, - { MODKEY|ControlMask, XK_l, movekeyboard_x, {.i = 10}}, - { MODKEY|ControlMask, XK_h, movekeyboard_x, {.i = -10}}, - { MODKEY|ControlMask, XK_j, movekeyboard_y, {.i = 10}}, - { MODKEY|ControlMask, XK_k, movekeyboard_y, {.i = -10}}, + { MODKEY|ShiftMask, XK_l, movekeyboard_x, {.i = 10}}, + { MODKEY|ShiftMask, XK_h, movekeyboard_x, {.i = -10}}, + { MODKEY|ShiftMask, XK_j, movekeyboard_y, {.i = 10}}, + { MODKEY|ShiftMask, XK_k, movekeyboard_y, {.i = -10}}, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) -- cgit v1.2.3