summaryrefslogtreecommitdiff
path: root/files/config/suckless/dwm/config.h
diff options
context:
space:
mode:
authorShipwreckt <me@shipwreckt.co.uk>2025-11-07 23:27:55 +0000
committerShipwreckt <me@shipwreckt.co.uk>2025-11-07 23:27:55 +0000
commit470d7fb1245ec7cd04a185fe0a5a720ebe6afdc2 (patch)
treedfe7d3128f8145c832014082cfe6b43f9b3f647b /files/config/suckless/dwm/config.h
parent1ae24861a06d773836fb674814aa03df90bbb095 (diff)
Changed DWM, used base config and remodified it. Removed uselessgap patch.HEADmaster
Diffstat (limited to 'files/config/suckless/dwm/config.h')
-rw-r--r--files/config/suckless/dwm/config.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/files/config/suckless/dwm/config.h b/files/config/suckless/dwm/config.h
index eee2c25..7a55075 100644
--- a/files/config/suckless/dwm/config.h
+++ b/files/config/suckless/dwm/config.h
@@ -1,11 +1,12 @@
+/* See LICENSE file for copyright and license details. */
+
/* appearance */
-static const unsigned int borderpx = 2; /* border pixel of windows */
-static const unsigned int gappx = 4; /* gaps between windows */
-static const unsigned int snap = 28; /* snap pixel */
+static const unsigned int borderpx = 1; /* border pixel of 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 */
-static const char *fonts[] = { "Hack Nerd Font:size=9" };
-static const char dmenufont[] = { "Hack Nerd Font:size=9" };
+static const char *fonts[] = { "monospace:size=10" };
+static const char dmenufont[] = "monospace:size=10";
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
@@ -27,14 +28,14 @@ static const Rule rules[] = {
*/
/* class instance title tags mask isfloating monitor */
{ "KeePassXC", NULL, NULL, 1 << 8, 0, -1 },
- { "element-desktop", NULL, NULL, 1 << 7, 0, -1 },
};
/* layout(s) */
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
-static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */
+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 int refreshrate = 120; /* refresh rate (per second) for client move/resize */
static const Layout layouts[] = {
/* symbol arrange function */
@@ -72,8 +73,7 @@ static const char *emailcmd[] = { "thunderbird", NULL };
static const Key keys[] = {
/* modifier key function argument */
- { MODKEY|ShiftMask, XK_Insert, spawn, SHCMD("sh ~/.Scripts/bookmark.sh") },
- { MODKEY, XK_Insert, spawn, SHCMD("xdotool type $(grep -v '^#' ~/.bookmarks | dmenu -i -l 50 | cut -d' ' -f1)") },
+ { MODKEY, XK_Insert, spawn, SHCMD("xdotool type $(grep -v '^#' ~/.bookmarks | dmenu -i -l 50 | cut -d' ' -f1)") },
{ MODKEY, XK_y, spawn, {.v = youtubecmd } },
{ MODKEY, XK_g, spawn, {.v = gimpcmd } },
{ MODKEY, XK_t, spawn, {.v = emailcmd } },
@@ -86,20 +86,23 @@ static const Key keys[] = {
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_f, spawn, {.v = browsercmd } },
{ MODKEY, XK_p, spawn, {.v = audiocmd } },
+ { MODKEY, XK_r, spawn, {.v = dmenucmd } },
+ { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
- { MODKEY|ShiftMask, XK_d, incnmaster, {.i = -1 } },
+ { MODKEY, XK_i, incnmaster, {.i = +1 } },
+ { MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
- { MODKEY|ShiftMask, XK_Return, zoom, {0} },
+ { MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_w, killclient, {0} },
- { MODKEY, XK_space, setlayout, {0} },
- { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[0]} },
+ { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY|ShiftMask, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY|ShiftMask, XK_m, setlayout, {.v = &layouts[2]} },
+ { MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
@@ -116,7 +119,9 @@ static const Key keys[] = {
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
+
{ MODKEY|ShiftMask, XK_q, quit, {0} },
+ { MODKEY|ShiftMask|ControlMask, XK_q, spawn, SHCMD("shutdown now") },
};
/* button definitions */
@@ -136,4 +141,3 @@ static const Button buttons[] = {
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};
-