oxwm is the work of my dude tony-btw on YT!
  • Shell 61.6%
  • Lua 38.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-08 08:53:07 -05:00
oxwm theme switcher says prefer-dark, firefox's system theme goes light without it 2026-11-08 08:53:07 -05:00
screenshots readme screenshot with the new bar 2026-11-06 15:17:34 -05:00
.gitignore update with added banter 2026-05-30 20:45:02 -04:00
CONTRIBUTING.md lives at butter/oxwm now, and the name drops -setup 2026-10-30 20:33:36 -04:00
install.sh dropped xvkbd, nothing uses it 2026-11-08 08:18:49 -05:00
QUICKSTART.md optional tools come last, so their reboot can't cut the install short; a quickstart, which the installer pointed at but never had 2026-11-06 14:55:33 -05:00
README.md running the installer again keeps the wallpapers (backed up or not) and fetches a missing theme wallpaper alone; README says what a rerun does 2026-11-07 16:58:55 -05:00

🪟 oxwm

Made for Debian OXWM Version Themes Stars Forks Last Commit

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.lua holds everything (keybinds, bar, rules, layouts).
  • Instant reload — Mod+Shift+R re-reads the config live; tags and windows are preserved.
  • Validate before you commit — oxwm --validate checks the config without launching.

OXWM Setup Screenshot


🚀 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 xorg as part of its core packages, which will replace XLibre if you've installed it. Remove xorg from PACKAGES in install.sh before running, or use --only-config to 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:

  1. Build and install oxwm from source: github.com/tonybanters/oxwm
  2. Install the equivalent runtime packages with your distro's package manager (see the tables below).
  3. Run ./install.sh --only-config to copy the configuration into ~/.config/oxwm.
  4. Install Nerd Fonts (RobotoMono + SourceCodePro) and, optionally, the orchis-gtk-theme-butter / colloid-icon-theme-butter packages from butterrepo for the theme switcher.

Note: The script can be run from any location — it auto-detects its directory.

What Gets Installed

  1. System Update — updates package lists and upgrades existing packages
  2. butterrepo — adds the APT repo that provides oxwm, picom, and rofi
  3. oxwm — the window manager itself (apt install oxwm)
  4. Core / UI / System packages — X11, file manager, audio, power management
  5. External Tools — via butterscripts:
    • kitty (terminal emulator)
    • Nerd Fonts collection
    • Orchis theme & Colloid icons (butterrepo packages)
    • LightDM display manager
  6. Wallpapers — cloned from drewgrif/wallpapers
  7. 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 by config.lua)
  • colors.rasi — @imported by the rofi configs
  • theme.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:

  1. Copies colors.lua → active palette and colors.rasi → active rofi colors
  2. Applies the kitty theme (via kitty +kitten themes, into the session-local ~/.config/oxwm/kitty) and GTK theme/icons (via xsettingsd)
  3. Rewrites the # THEME:-tagged dunst colors and restarts dunst
  4. Sets the wallpaper with feh, and colors the launcher strip Pat stands on (rofi/strip.rasi)
  5. 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

Buy me a coffee

Connect

License

GPL-3.0 — See the GNU GPL v3 for details, matching upstream oxwm.


Made with 🧈 by JustAGuyLinux