blob: 27e5a6367505901a24786cd8c79ed69ba7475b10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
<!doctype html>
<html lang="EN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style.css">
<title>DWM window manager [2]</title>
</head>
<body>
<header>
<h1>Bloggings</h1>
<a href="/index.php">Back</a>
</header>
<main>
<article>
<h2>DWM window manager [2]</h2>
<h3>2025-04-23</h3>
<h4>the simpler the better</h4>
<p>Mucking around with DWM proves the old adge that less is more.
So far I haven't needed to add any of the myriad of patches available for DWM, it works as it is for me.</p>
<p>I've tried dwm-blocks but right now I'm using dwm-bar as I like the battery icon to update along with the charge.</p>
<p>I have edited config.h though and changed the keybindings to work better with a French keyboard and launch a few apps.</p>
<img src="/images/blog/dwm-btop.png" alt="dwm running btop">
<p>Editing config.h is an ongoing job, but you can <a href=/txt/dwm-config.txt>see a snapshot here</a></p>
<p>ST is the default terminal emulator for DWM but I rather like Ghostty even if it consumes a bit more
memory. Adding <code>window-decoration = none</code> to <b>.config/ghostty/config</b> makes it look better in DWM.</p>
<p>I also added <code>gtk-single-instance = true</code> to make ghostty's startup faster.</p>
<p>Being able to swap between display layouts on the fly is cool. I mostly use monocle layout,
but flipping to tiling or floating comes in handy.</p>
<p>I removed the lightdm display manager and installed Slim. Here is my <b>.xinitrc</b></p>
<pre>
#!/bin/sh
# Source global X session scripts.
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
bluetooth off
clipmenud &
xscreensaver --no-splash &
ghostty &
feh --bg-scale --randomize ~/Pictures/wallpaper/* &
~/.local/src/dwm-bar/dwm_bar.sh &
# if dwm exits 0, restart -- this allows hot reloading of config.h
while type dwm >/dev/null ; do dwm && continue || break ; done
</pre>
<p>And here is my DWM configuration file (it probably isn't the latest version) <br>
<a href="/txt/dwm-config.txt">config.h</a></p>
</article>
</main>
<footer>
<p> </p>
<p>§</p>
</footer>
</body>
</html>
|