You are not logged in.
Pages: 1
I've just begin using dwm and the space between the lettes is painfully big so it looks ugly. I'm wondering how to fix that.
image: https://imgur.com/a/H6OBUag
My conf.h file looks like this (not the whole file):
1 /* See LICENSE file for copyright and license details. */
2
3 /* appearance */
4 static const unsigned int borderpx = 2; /* border pixel of windows */
5 static const unsigned int snap = 32; /* snap pixel */
6 static const int showbar = 3; /* 0 means no bar */
7 static const int topbar = 1; /* 0 means bottom bar */
8 static const char *fonts[] = { "fixed:size=11" }; // monospace by default
9 static const char dmenufont[] = "fixed:size=11";
10 // background-color
11 static const char col_gray1[] = "#363131";
12 // inactive window border-color
13 static const char col_gray2[] = "#444444";
14 // font color
15 static const char col_gray3[] = "#ffffff";
16 static const char col_gray4[] = "#eeeeee";
17 static const char col_cyan[] = "#005577";
18 static const char *colors[][3] = {
19 /* fg bg border */
20 [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
21 [SchemeSel] = { col_gray4, col_cyan, col_cyan },
22 };
23
24 /* tagging */
25 static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
26
27 static const Rule rules[] = {
28 /* xprop(1):
29 * WM_CLASS(STRING) = instance, class
30 * WM_NAME(STRING) = title
31 */
32 /* class instance title tags mask isfloating monitor */
33 { "Gimp", NULL, NULL, 0, 1, -1 },
34 { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
35 };
36
37 /* layout(s) */
38 static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
39 static const int nmaster = 1; /* number of clients in master area */
40 static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
41
42 static const Layout layouts[] = {
43 /* symbol arrange function */
44 { "[]=", tile }, /* first entry is default */
45 { "><>", NULL }, /* no layout function means floating behavior */
46 { "[M]", monocle },
47 };Last edited by dani877 (2021-02-20 00:43:52)
Offline
Check
fc-match fixedthen use "monospace:size=11"
Offline
For "fc-match fixed" I get
Inconsolata-Regular.ttf: "Inconsolata" "Regular" In the config.h file the default font was the monospace. I set it back but nothing has happened.
Offline
It actually even looks like inconsolata, but behaves like a variable width font.
Can you try DejaVu Mono?
Also, just a hunch:
localectl
locale
locale -aOffline
Have you patched dwm? If so, try the vanilla version and see if you can reproduce the effect.
Offline
Changing the font didn't fix it.
No, I didn't patch it or anything it looked like that from the beginning, even when I installed dwm on a virtual machine (if it can be in connection with the problem).
Offline
I think I solved it. It's not too fancy, but the letters are in a normal distance from eacother.
Here's what I did: In the config.h file
static const char *fonts[] = { "c-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1:size=11" };
static const char dmenufont[] = "c-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1:size=11";Offline
Also, just a hunch:
localectl locale locale -a
Offline
Pages: 1