- Shell 61.6%
- Lua 38.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| oxwm | ||
| screenshots | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| install.sh | ||
| QUICKSTART.md | ||
| README.md | ||
🪟 oxwm
A dynamic X11 window manager setup for Debian-based systems.
oxwm is dwm-like, but configured in Lua with instant hot-reload — edit config.lua, press Mod+Shift+R, no recompile. This setup ships dwm-style keybinds, a GitHub-Dark-styled bar, and a 12-theme switcher (kitty, rofi, dunst, GTK, wallpaper).
Part of the JustAGuy Linux window manager collection — installable standalone or via butterknife, the installer for Butterbian.
🎩 Built by Tony Banters
oxwm is the work of Tony Banters — go watch and subscribe to his channel: ▶ YouTube. Hands down one of the most devoted, card-carrying, dyed-in-the-wool Debian fans you'll ever meet.¹
¹ He is not. He recently dropped a whole video rating Debian a resounding "meh." We kid — it's all banter. 🧈
⚡ Lua-Configured, Hot-Reloaded
Unlike suckless WMs, there's nothing to patch or compile:
- One file —
~/.config/oxwm/config.luaholds everything (keybinds, bar, rules, layouts). - Instant reload —
Mod+Shift+Rre-reads the config live; tags and windows are preserved. - Validate before you commit —
oxwm --validatechecks the config without launching.
🚀 Installation
Quick Install
git clone https://justaguy.dev/butter/oxwm.git
cd oxwm
chmod +x install.sh
./install.sh
The installer adds butterrepo and installs oxwm with apt — no building required.
⚠️ XLibre users: This script installs
xorgas part of its core packages, which will replace XLibre if you've installed it. RemovexorgfromPACKAGESininstall.shbefore running, or use--only-configto skip package installation entirely.
Installation Options
./install.sh [OPTIONS]
Options:
--only-config Only copy config files (skip packages and external tools)
--help Show usage information
After install, it's yours. This setup is a starting point, not a setup that updates itself: change anything in ~/.config/oxwm as you like. Running ./install.sh again replaces that folder; answer y at the prompt to keep the old one as ~/.config/oxwm.bak.<number>, then copy your changes back from it. Your wallpapers and your theme are kept either way.
Distribution-Agnostic Installation
⚠️ UNSUPPORTED: Instructions for other distributions (click to expand)
IMPORTANT: These instructions are provided as-is for advanced users. Non-Debian distributions are NOT officially supported. Package names and availability may vary. Use at your own risk.
oxwm is distributed as a .deb via butterrepo, so on non-Debian systems you build it yourself:
- Build and install oxwm from source: github.com/tonybanters/oxwm
- Install the equivalent runtime packages with your distro's package manager (see the tables below).
- Run
./install.sh --only-configto copy the configuration into~/.config/oxwm. - Install Nerd Fonts (RobotoMono + SourceCodePro) and, optionally, the
orchis-gtk-theme-butter/colloid-icon-theme-butterpackages from butterrepo for the theme switcher.
Note: The script can be run from any location — it auto-detects its directory.
What Gets Installed
- System Update — updates package lists and upgrades existing packages
- butterrepo — adds the APT repo that provides
oxwm,picom, androfi - oxwm — the window manager itself (
apt install oxwm) - Core / UI / System packages — X11, file manager, audio, power management
- External Tools — via butterscripts:
- kitty (terminal emulator)
- Nerd Fonts collection
- Orchis theme & Colloid icons (butterrepo packages)
- LightDM display manager
- Wallpapers — cloned from drewgrif/wallpapers
- Optional Tools — additional browsers, editors, and utilities (prompted)
📦 What It Installs
Core Components
| Component | Purpose |
|---|---|
oxwm |
Lua-scriptable X11 window manager (from butterrepo) |
xdotool |
Drives the theme-switch reload |
xorg & tools |
Display server and utilities |
dbus-x11 libnotify-bin |
Session bus + notifications |
build-essential |
Compilation tools |
UI & System Tools
| Component | Purpose |
|---|---|
rofi |
App launcher + theme/power menus |
dunst |
Lightweight notifications |
feh |
Wallpaper setter |
picom |
Compositor: shadows, corners, fades |
nwg-look |
GTK theme manager |
xsettingsd |
Applies GTK theme/icons live |
network-manager-gnome |
Network applet |
lxpolkit |
PolicyKit authentication agent |
thunar |
File manager (+plugins) |
pavucontrol pamixer |
Audio control + CLI volume |
xfce4-power-manager |
Power management |
flameshot |
Screenshot tool |
qimgv |
Lightweight image viewer |
firefox-esr |
Default web browser |
fonts-inter |
The rofi menus' font |
External Tools (via butterscripts)
| Component | Purpose |
|---|---|
kitty |
Default terminal emulator |
| Nerd Fonts | Icon-enabled fonts (RobotoMono, SourceCodePro) |
| Orchis & Colloid | GTK theme and icons (butterrepo) |
| LightDM | Display manager |
🎨 Appearance & Theming
💡 Special thanks to vinceliuice for the excellent GTK and icon themes.
🔑 Keybindings Overview
All keybinds live in ~/.config/oxwm/config.lua and are hot-reloadable with Mod+Shift+R — no recompile, no separate hotkey daemon. Open the keybind sheet anytime with Super + /: searchable, by section, read from config.lua each time (a key's description is the comment at the end of its line). oxwm's own overlay is on Super + Shift + /.
| Shortcut | Action |
|---|---|
Super + Return |
Launch terminal (kitty) |
Super + Space |
Launch rofi (drun) |
Super + b |
Firefox |
Super + f |
Thunar |
Super + Shift + t |
Theme switcher (rofi) |
Super + x |
Power menu (rofi) |
Super + / |
Keybind sheet (rofi) |
Super + Shift + / |
oxwm's own keybind overlay |
Super + q |
Close focused window |
Super + j / k |
Focus next / previous window |
Super + Shift + j / k |
Move window down / up in stack |
Super + h / l |
Shrink / grow master area |
Super + Alt + Tab |
Fewer / more master windows (+Shift) |
Super + Shift + Space |
Toggle floating (opens centered) |
Super + Shift + f |
Toggle fullscreen |
Super + Ctrl + b |
Toggle bar |
Super + n |
Cycle layout |
Super + Shift + l |
Layout picker (rofi) |
Shift + Ctrl + 1..6 |
Pick layout: dwindle / tiling / scrolling / grid / monocle / floating |
Super + [ / ] |
Scroll left / right (scrolling layout) |
Super + 1..9, 0, -, = |
View tag 1..12 |
Super + Shift + <tag key> |
Send focused window to tag |
Super + Ctrl + <tag key> |
Toggle tag visibility |
Super + Tab |
Next tag (Shift = previous) |
Super + Ctrl + Tab |
Next occupied tag (Shift = previous) |
Super + , / . |
Focus previous / next monitor |
Super + Shift + , / . |
Send window to prev / next monitor, follow it |
Super + Shift + s / s |
Flameshot region / fullscreen |
Super + F10 / F11 / F12 |
Mute / volume down / volume up |
Super + Shift + r |
Reload oxwm (preserves tags/windows) |
Super + Shift + q |
Quit oxwm |
Tags 10–12 (0, -, =) need oxwm 0.13 or newer, which is what butterrepo ships.
On first login, a quickstart cheat sheet lands at ~/QUICKSTART-oxwm.md (if present) — delete it once you're comfortable.
🧱 Layouts
Cycle with Super + n, pick from a rofi menu with Super + Shift + l, or jump directly with Shift + Ctrl + 1..6:
| # | Layout | Description |
|---|---|---|
| 1 | Dwindle | Fibonacci spiral (default) |
| 2 | Tiling | Master + stack |
| 3 | Scrolling | PaperWM-style horizontal strip — pan with Super + [ / ]. Each column is screen width ÷ master count, so Super + Alt + Shift + Tab shows two columns side by side |
| 4 | Grid | Even grid |
| 5 | Monocle | One full-screen window at a time |
| 6 | Floating | Free-floating ("normie") |
🎭 Theme System
12 themes ship under oxwm/themes/ — github_dark (default), amber, catppuccin, doomone, dracula, everforest, gruvbox, kanagawa, monokai, moonfly, nord, rose_pine. Each theme is a directory of:
colors.lua— the oxwm bar + border palette (dofiled byconfig.lua)colors.rasi—@imported by the rofi configstheme.conf— wallpaper, kitty theme name, GTK/icon theme names, dunst colors
Super + Shift + t opens thememenu (rofi): each theme's colors beside its name, the current one marked. Picking a theme:
- Copies
colors.lua→ active palette andcolors.rasi→ active rofi colors - Applies the kitty theme (via
kitty +kitten themes, into the session-local~/.config/oxwm/kitty) and GTK theme/icons (via xsettingsd) - Rewrites the
# THEME:-tagged dunst colors and restarts dunst - Sets the wallpaper with
feh, and colors the launcher strip Pat stands on (rofi/strip.rasi) - Presses
Mod+Shift+R(via xdotool) so oxwm re-reads the new palette
The active theme is tracked in ~/.cache/oxwm/current_theme. Add a theme by creating themes/<name>/ with colors.lua, colors.rasi, and theme.conf.
📂 Configuration Files
~/.config/oxwm/
├── config.lua # Everything: keybinds, bar, rules, layouts (edit this)
├── colors.lua # Active palette (generated; seeded from themes/github_dark)
├── themes/ # Per-theme colors.lua + colors.rasi + theme.conf
│ └── <name>/
├── rofi/
│ ├── shared.rasi # The look every menu shares (Inter 11, rounded, 3px border)
│ ├── config.rasi # App launcher, Pat down its side (`enabled: false` hides him)
│ ├── themes.rasi # Theme and layout pickers
│ ├── power.rasi # Power menu
│ ├── keybinds.rasi # Keybind sheet
│ ├── strip.rasi # The launcher strip's gradient (copied from the theme)
│ ├── pat.png # Pat, on the launcher's strip
│ └── colors.rasi # Active palette (@imported; replaced on theme switch)
├── dunst/
│ └── dunstrc # Notifications (# THEME: lines rewritten on theme switch)
├── picom/
│ └── picom.conf # Compositor configuration
├── scripts/
│ ├── help # Keybind sheet (Super + /)
│ ├── thememenu # Theme switcher (Super + Shift + t)
│ ├── layoutmenu # Layout picker (Super + Shift + l)
│ ├── changevolume # Volume up/down/mute with notification
│ └── power # Power-menu actions
├── kitty/ # Session-local kitty config (KITTY_CONFIG_DIRECTORY)
│ ├── kitty.conf # Terminal configuration
│ ├── current-theme.conf # Active palette (swapped on theme switch)
│ └── themes/ # Custom themes (Trapped in Amber)
└── wallpaper/ # Cloned from drewgrif/wallpapers at install time
kitty is pointed at ~/.config/oxwm/kitty by a KITTY_CONFIG_DIRECTORY export in
~/.xsessionrc, applied only in oxwm sessions (whichever login screen started
them: LightDM, ly or another), so the theme switcher never touches
~/.config/kitty and other WMs on the same machine keep their own terminal
setup. (Installed before this was added? Re-run
./install.sh --only-config, or add the export to ~/.xsessionrc yourself.)
🖥️ More Than One Monitor
Monitors connected when you log in come on as usual, each with its own bar and
tags. oxwm follows monitor changes itself: switch one on and it gets a bar,
switch it off and its bar goes. Super + , / . focuses the monitor to the
left / right; with Shift the window goes there and you follow it.
A monitor plugged in after login stays dark until X is told to use it. This setup runs no watcher for that, to keep oxwm light; switch it on yourself:
xrandr # the new one says "connected" with no resolution
xrandr --output DP-1 --auto --right-of HDMI-1 # your names: the new one, then the one beside it
~/.fehbg # the wallpaper again, across both
Unplugging one works the same way round: X keeps it switched on, so oxwm keeps a bar and tags on a screen that isn't there. Switch it off and oxwm moves its windows to the monitors left:
xrandr --output DP-1 --off
For drag and drop instead, sudo apt install arandr.
🔍 HiDPI / 4K Displays
On a 4K screen, type can come up tiny. There's no single fix — oxwm itself
doesn't scale, and it launches apps directly (oxwm.spawn), so the scaling has
to be set before oxwm starts, where the whole session inherits it. The installer
drops a commented HiDPI block into ~/.xsessionrc for exactly this.
Open ~/.xsessionrc, uncomment the block, and log out / back in. It sets
Xft.dpi (X apps, fonts, cursor), GDK_SCALE/GDK_DPI_SCALE (GTK apps), and
QT_AUTO_SCREEN_SCALE_FACTOR (Qt apps) together; the defaults are ~200% and the
comments show how to dial it to ~150%. (Installed before this was added? Just add
the same lines to ~/.xsessionrc yourself.)
Support
Connect
- YouTube — tutorials and guides
- Butterforge — source code and projects
- Butter desktops — ready-to-use window manager desktops for Debian
- The Butter Lab — Discourse forum
- The Churn — community chat (Fluxer)
- Wiki — documentation and guides
- Mastodon — @justaguylinux@fosstodon.org
- Butterbian — a maintained Debian derivative built on Debian stable
License
GPL-3.0 — See the GNU GPL v3 for details, matching upstream oxwm.
Made with 🧈 by JustAGuyLinux

