From b77fa680877c9ad710397e331e8db53fc4a0657c Mon Sep 17 00:00:00 2001 From: _N0x Date: Sun, 19 Jun 2022 14:46:42 +0200 Subject: [PATCH] merged most of the config from dwm-6.2 --- dwm-6.3/config.def.h | 64 +++++++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/dwm-6.3/config.def.h b/dwm-6.3/config.def.h index 522e814..732e2b5 100644 --- a/dwm-6.3/config.def.h +++ b/dwm-6.3/config.def.h @@ -1,26 +1,27 @@ /* See LICENSE file for copyright and license details. */ /* appearance */ -static const unsigned int borderpx = 1; /* border pixel of windows */ -static const unsigned int gappx = 5; /* gaps between windows */ -static const unsigned int snap = 32; /* snap pixel */ -static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */ -static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */ -static const unsigned int systrayspacing = 2; /* systray spacing */ -static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/ -static const int showsystray = 1; /* 0 means no systray */ -static const int showbar = 1; /* 0 means no bar */ -static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "Hack Nerd Font Mono:size=11" }; -static const char dmenufont[] = "Hack Nerd Font Mono:size=11"; -static const char dmenupromt[] = "Run:"; +static const unsigned int borderpx = 2; /* border pixel of windows */ +static const unsigned int gappx = 8; /* gaps between windows */ +static const unsigned int snap = 32; /* snap pixel */ +static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */ +static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */ +static const unsigned int systrayspacing = 3; /* systray spacing */ +static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/ +static const int showsystray = 1; /* 0 means no systray */ +static const int showbar = 1; /* 0 means no bar */ +static const int topbar = 1; /* 0 means bottom bar */ +static const char *fonts[] = { "Hack Nerd Font Mono:size=11" }; +static const char dmenufont[] = "Hack Nerd Font Mono:size=11"; +static const char dmenupromt[] = "Run:"; -static const char col_gray1[] = "#2E3440"; // #2E3440 #222222 -static const char col_gray2[] = "#434C5E"; // #434C5E #444444 -static const char col_gray3[] = "#D8DEE9"; // #D8DEE9 #bbbbbb -static const char col_gray4[] = "#ECEFF4"; // #ECEFF4 #EEEEEE -static const char col_color1[] = "#8FBCBB"; // #8FBCBB #408977 -static const char *colors[][3] = { +/* colors */ +static const char col_gray1[] = "#2E3440"; // #2E3440 #222222 +static const char col_gray2[] = "#434C5E"; // #434C5E #444444 +static const char col_gray3[] = "#D8DEE9"; // #D8DEE9 #bbbbbb +static const char col_gray4[] = "#ECEFF4"; // #ECEFF4 #EEEEEE +static const char col_color1[] = "#8FBCBB"; // #8FBCBB #408977 +static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, [SchemeSel] = { col_gray1, col_color1, col_color1 }, @@ -29,7 +30,8 @@ static const char *colors[][3] = { /* tagging */ -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; +static const char *tags[] = { "", "ﲵ", "爵", "ﭮ", "ﱘ", "", }; +//static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; static const Rule rules[] = { /* xprop(1): @@ -42,22 +44,22 @@ static const Rule rules[] = { }; /* layout(s) */ -static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ +static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ static const Layout layouts[] = { /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ + { "[T]", tile }, /* first entry is default */ + { "[F]", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, { "|M|", centeredmaster }, { ">M>", centeredfloatingmaster }, }; /* key definitions */ -#define MODKEY Mod1Mask +#define MODKEY Mod4Mask #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ @@ -72,6 +74,11 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_color1, "-sf", col_gray1, "-p", dmenupromt, NULL}; static const char *termcmd[] = { "st", NULL }; +/* Own commands */ +static const char *screenshot[] = { "makescreenshot", NULL }; +static const char *slock[] = { "slock", NULL }; +static const char *pcmanfm[] = { "pcmanfm", NULL }; + static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, @@ -99,9 +106,12 @@ static Key keys[] = { { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - { MODKEY, XK_minus, setgaps, {.i = -1 } }, - { MODKEY, XK_equal, setgaps, {.i = +1 } }, - { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, + { MODKEY, XK_Up, setgaps, {.i = -2 } }, + { MODKEY, XK_Down, setgaps, {.i = +2 } }, + { MODKEY|ShiftMask, XK_Up, setgaps, {.i = 0 } }, + { MODKEY|ShiftMask, XK_s, spawn, {.v = screenshot } }, + { MODKEY, XK_l, spawn, {.v = slock } }, + { MODKEY, XK_e, spawn, {.v = pcmanfm } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2)