aboutsummaryrefslogtreecommitdiff
path: root/articles/2025/dwm-windowmanager-2.html
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
committerPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
commit420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 (patch)
tree3009f0564d75e3f7d1ca38507e7ebb92deaded07 /articles/2025/dwm-windowmanager-2.html
update
Diffstat (limited to 'articles/2025/dwm-windowmanager-2.html')
-rwxr-xr-xarticles/2025/dwm-windowmanager-2.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/articles/2025/dwm-windowmanager-2.html b/articles/2025/dwm-windowmanager-2.html
new file mode 100755
index 0000000..27e5a63
--- /dev/null
+++ b/articles/2025/dwm-windowmanager-2.html
@@ -0,0 +1,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>&nbsp;</p>
+
+<p>ยง</p>
+ </footer>
+</body>
+</html>