百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

dwm

> 编程语言
开源

我编译的 dwm,带有大量注释的 dwm.c :^)

190 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

我编译的 dwm,带有大量注释的 dwm.c :^)

dwm - dynamic window manager - bread's build

comes with no guarantees or warranties (this means things may not work as expected, or at all) :^)

note: I'd highly recommend setting up your own build! using mine or anyone else's is a starting point, but patching dwm manually not only allows for precise customization, but it will also allow you to learn how your WM works. a great way to test build changes without refreshing/restarting your running WM is with Xephyr, a nested X server that runs as an application.

patches applied:

some occasional modification here and there;

  • bartoggle keybinds
  • bulkill
  • colorbar
  • fixmultimon
  • focusfullscreen
  • focusmaster-return
  • focusmonmouse
  • hide vacant tags
  • preventfocusshift
  • restartsig
  • spawntag
  • stacker
  • statuscmd
  • sticky
  • swallow
  • vanitygaps
  • xrdb

installation, setup:

bash
git clone https://github.com/BreadOnPenguins/dwm
cd dwm
sudo make clean install
  • Basic ~/.xinitrc requirement: exec dwm

  • Configure settings (fonts, bindings, gap pixels, etc) in config.def.h before compiling.

    • Defaults: Mod is bound to the windows key
    • mod + enter to open terminal
    • mod + q to quit window
    • mod + shift + backspace to fully exit

I use dwmblocks for my statusbar (bar scripts), included in ~/.xprofile with exec dwmblocks. If you intend to use another statusbar, modify dwm appropriately :)

colors, other stuff:

If you aren't using ~/.Xresources with or without pywal16, default color palette is a variant of Nord.

I have wal generate a template containing dwm Xresource strings. Then, I merge it with wal's auto-generated Xresources file, using xrdb -merge.

~/.config/wal/templates/xrdb_extra

dwm.normbordercolor: {color0}
dwm.normbgcolor: {color0}
dwm.normfgcolor: {color4}
dwm.selbordercolor: {color8}
dwm.selbgcolor: {color4}
dwm.selfgcolor:  {color0}

After creating the template, add these to your wal post-script for automatic xrdb merge and refresh.

ln -sf ~/.cache/wal/colors.Xresources ~/.Xresources
cat ~/.Xresources ~/.cache/wal/xrdb_extra | xrdb -merge
xdotool key super+ctrl+backslash # xrdb refresh keybind

Alternatively, if you prefer a different color-setting method, follow the instructions on pywal16's wiki.

I use slock for a lockscreen (build will be uploaded eventually), activated via keybind.

My config has a few glyphs used cosmetically; for those to render properly, install a font with extra glyphs.

The GNU Quilt system (used by Debian to manage patches in source packages) can be used to easily manage, apply, and reverse suckless software patches, and this guide (including suckless-patches.py) can help download and prepare patches for use with Quilt. Thanks to mok0 for sharing!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言