登录 注册
其他
1,042
Stars
81
Forks
12
Watchers
73
Open Issues
GPL-3.0
许可证
Zig
语言
2025-09-19
创建时间
2026-11-02
最近更新

项目能做什么

OXWM 是用 Zig 语言编写的动态窗口管理器,旨在改进 dwm。它解决了传统 dwm 修改配置必须重新编译的痛点,提供 Lua API 并支持热重载,无需重启 X 会话即可生效;同时具备 LSP 自动补全,并在 Linux 下支持触摸板滑动等手势。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
![oxwm](./images/oxwm1.png)

# OXWM: DWM but Better

A dynamic window manager written in Zig, inspired by dwm but designed to evolve beyond it. OXWM features a clean, functional Lua API for configuration with hot-reloading support, ditching the suckless philosophy of *"edit + recompile"*. Instead, we focus on lowering friction for users with sane defaults, LSP-powered autocomplete, and instant configuration changes without restarting your X session.

**Documentation:** [ox-docs.vercel.app](https://ox-docs.vercel.app/)

## Showcase

Setups from OXWM users across Arch, CachyOS, Debian and FreeBSD.

<table>
  <tr>
    <td><img src="./images/example1.png" alt="OXWM on Arch Linux with btop and fastfetch in a Rosepuccin theme"></td>
    <td><img src="./images/example2.png" alt="OXWM on CachyOS with a custom bar, notifications and a floating terminal"></td>
  </tr>
  <tr>
    <td><img src="./images/example3.png" alt="OXWM on FreeBSD running under XLibre with st"></td>
    <td><img src="./images/example4.png" alt="OXWM on Debian showing the keybinds overlay over fastfetch and a music player"></td>
  </tr>
</table>

## Installation

### NixOS (nixpkgs)

Add OXWM to your `configuration.nix` like so:

```nix
{ config, pkgs, ... }:

{
  services.xserver.windowManager.oxwm.enable = true;
}
```

#### Initialize your config

After rebuilding your system with `sudo nixos-rebuild switch`, log in via your display manager.

On first launch, your initial config file will be automatically created and placed in `~/.config/oxwm/config.lua`. Edit it and reload with `Mod+Shift+R`.

#### Development setup with Nix

For development, use the provided dev shell:

```sh
# Clone the repository
git clone https://github.com/tonybanters/oxwm
cd oxwm

# Enter the development environment
nix develop

# Build and test
zig build -Doptimize=ReleaseSmall
```

### Arch Linux

AUR: [oxwm-git](https://aur.archlinux.org/packages/oxwm-git)

```sh
yay -S oxwm-git
```

This will automatically put a desktop session file into your xsessions directory.

Manually, install the dependencies and see Building from Source:

```sh
sudo pacman -S zig libx11 libxft freetype2 fontconfig libxinerama libinput systemd-libs
```

### Building from Source

Note, on many BSD systems, the zig compiler will aggressively attempt to remove debug symbols which is causing a known linker issue. Please use this method on BSD:

```sh
git clone https://github.com/tonybanters/oxwm
cd oxwm
zig build
```

On other legacy distros, just use:

```sh
git clone https://github.com/tonybanters/oxwm
cd oxwm
zig build -Doptimize=ReleaseSmall --prefix /usr
```

Touchpad swipe gestures for the scrolling layout use libinput and libudev, which only exist on Linux. They are compiled in by default (needs the libinput and libudev development packages) and skipped automatically on BSD targets. At runtime they stay off until you uncomment `oxwm.scroll.set_gesture_enabled(true)` in your config. Pass `-Dno_gestures` to leave them out anywhere, 
阅读完整原文

项目深度分析 AI 生成

高级主题配置套件与工作流市场(Dotfiles Pro)

产品构想针对不愿花费大量时间配置的开发者,提供打通状态栏、快捷键、终端样式、暗黑主题与生产力快捷脚本的预配置商业美化/工作流套件包。
核心功能一键主题切换器、专属预设配置库、常见开发工作流快捷映射、更新同步脚本。
目标用户追求美观高效但缺乏时间自行编写 Lua 脚本的 Linux 桌面用户。
难度/周期低 · 2-4 周 · 成本:极低(主要是设计和脚本编写工时)
收费模式Gumroad/Buy Me a Coffee 单次付费下载或会员订阅。
竞争风险开源极客社区文化排斥付费 dotfiles,开源竞品及免费分享方案极多,获客与转化极度困难。
依据 已验证事实

嵌入式设备/工控与特种工作站定制窗口管理方案

产品构想利用 Zig 的低资源占用与高可靠性,基于 OXWM 为金融多屏交易终端、医疗设备或工业 Kiosk 提供定制的轻量级 X11 平铺管理与维护支持服务。
核心功能多屏严格布局锁定、崩溃自恢复保护机制、精简化无装饰模式、专有应用事件 Hook 与 Lua 扩展接口。
目标用户需要轻量、高稳定、防误触且可热更新的多屏/特种设备软硬件集成商。
难度/周期高 · 3-6 个月 · 成本:硬件测试平台、工控环境测试、定制开发工时。
收费模式企业定制技术开发费、年度维保服务合同。
竞争风险GPL-3.0 协议限制商业代码闭源分发;X11 正在逐步被 Wayland 替代,长期市场面临萎缩。
依据 AI推测

创作者经济与社区赞助(Sponsorship & Backer Tier)

产品构想保持核心软件完全开源自由,通过建立 Discord VIP 频道、优先 Issue 响应、新功能抢先投票等权益吸引重度用户打赏赞助。
核心功能专属赞助者徽章、优先需求评审权、私人支持频道、公开赞助墙展示。
目标用户高度认同 OXWM 理念的极客用户、NixOS/Arch 社区核心粉丝。
难度/周期低 · 1 周 · 成本:无额外资金成本,需持续社区运营。
收费模式GitHub Sponsors、Open Collective 月度周期性捐赠。
竞争风险单人开发者赞助转化率低,难以形成足以全职维系的商业闭环。
依据 已验证事实
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2025-09-19,近 30 天仍在推送
社区活跃Star 1,042 / Fork 81 / Issue 73(数据支持,可自行核实)
许可证GPL-3.0 商用需注意传染性条款
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。