The light one: patched suckless dwm with st, slstatus and tabbed, all compiled in.
  • C 87.5%
  • Shell 7.4%
  • Roff 3.3%
  • Makefile 1.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-08 09:30:17 -05:00
docs lighter build: drop sxhkd, kitty, dmenu and help popup, install to ~/.local 2026-10-17 12:52:07 -04:00
screenshots removed the old screenshot 2026-11-03 15:20:34 -05:00
suckless status like oxwm's bar: slashes between readings, date and time without icons, the clock in pale sky and closer to the tray 2026-11-08 09:30:17 -05:00
.gitignore lighter build: drop help, thememenu, layout menu, dmenu, themes, upstream gtk/icons, dusk palette, cozy-window wallpaper 2026-10-17 14:27:57 -04:00
CHANGELOG.md lives at the butter org now 2026-10-30 18:14:57 -04:00
checklist.md lighter build: drop help, thememenu, layout menu, dmenu, themes, upstream gtk/icons, dusk palette, cozy-window wallpaper 2026-10-17 14:27:57 -04:00
install.sh debian's netinst connection: a dhcp one is offered to NetworkManager at the end of the install (file kept as .before-networkmanager), a static one gets the fix; butterscripts' check_network_manager 2026-11-06 16:18:30 -05:00
LICENSE Add GPL-2.0 license 2026-02-01 17:59:36 -05:00
QUICKSTART.md update path: super + shift + u pulls the setup, reinstalls and restarts dwm in place 2026-11-03 15:13:46 -05:00
README.md picom: everything solid, opacity rules gone and dead settings trimmed 2026-11-07 16:24:36 -05:00

🧈 dwm-suckless

Made for Debian DWM Version Patches Stars Forks Last Commit

The light build of butterdwm: a patched suckless dwm 6.8 with st, slstatus and tabbed, plus only the daemons a desktop actually needs (picom, dunst, nm-applet, polkit), for Debian-based systems.
Every keybind is compiled in, every tool installs to ~/.local, and Super + Escape rebuilds the lot in place.

📚 The butterdwm wiki documents the full build (quickshell bar, theme picker). This one is simpler than that; this README and QUICKSTART.md are its whole manual.

📝 Recent changes: see CHANGELOG.md.

Part of the JustAGuy Linux window manager collection — installable standalone or via butterknife, the installer for Butterbian.

Two ways to run dwm

Both are dwm on Debian, as two projects, each with its own installer. Pick by what you want on top.

butterdwm — the full one dwm-suckless — the light one 📍 you are here
butterdwm dwm-suckless
A quickshell bar and a settings panel; colors generated from any wallpaper; keybinds and rules in two plain files, compiled in st, slstatus and tabbed; one "dusk" palette; every keybind in config.def.h; no quickshell
About 270 MiB idle About 70 MiB idle
git clone https://justaguy.dev/butter/dwm.git git clone https://justaguy.dev/butter/dwm-suckless.git
Wiki · README README · QUICKSTART

Both write ~/.config/suckless, so one account runs one of them at a time. Idle memory is the whole session, freshly booted, with nothing open.

📜 Suckless Philosophy

This setup adheres to the suckless philosophy:

  • Simplicity - Minimal code, maximum functionality
  • Clarity - Configuration through clean C header files
  • Hackability - Easy to understand, modify, and extend

Configuration follows the suckless way: edit config.def.h, remove config.h, then recompile — no bloated config systems.

dwm-suckless — st, slstatus and the keybinding sheet


🚀 Installation

Quick Install

git clone https://justaguy.dev/butter/dwm-suckless.git
cd dwm-suckless
chmod +x install.sh
./install.sh

⚠️ 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.

🪵 The full build: butterdwm has the quickshell bar, settings panel and theme picker. This one is the light build: slstatus instead of a bar process, no theme switcher, no hotkey daemon, everything compiled in.

Installation Options

The installer follows the suckless principle of simplicity:

./install.sh [OPTIONS]

Options:
  --only-config      Only copy config files (perfect for non-Debian distros)
  --help            Show usage information

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.

Manual Installation Process:

  1. Install equivalent packages using your distro's package manager
  2. Run ./install.sh --only-config to copy configuration files
  3. Compile and install suckless tools manually:
    cd ~/.config/suckless/dwm && make clean install
    cd ~/.config/suckless/slstatus && make clean install
    cd ~/.config/suckless/st && make clean install
    cd ~/.config/suckless/tabbed && make clean install
    
    They install to ~/.local/bin (no root). Make sure it is on your PATH for the session.

Note: Some packages may have different names or may not be available in all distributions. You may need to find equivalents or install from source.

Advanced Usage Examples

# Update only configuration files (no packages)
./install.sh --only-config

# Standard installation with optional tools prompt
./install.sh

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

Updating: Super + Shift + U pulls the clone you installed from, runs ./install.sh --only-config and restarts dwm in place (the same by hand: git pull in the clone, then ./install.sh again). It reinstalls in place and rebuilds, the way dpkg treats a conffile: each tool's config.def.h, autostart.sh, picom.conf, dunstrc and rofi's config.rasi and colors.rasi stay as they are if you edited them; if the shipped version changed too, the new one lands beside yours as .new and the installer says so, once. Everything else in ~/.config/suckless is the setup's own and is replaced; wallpapers you added are left alone. An install of butterdwm, the full build, found in the folder is moved aside whole first.

What Gets Installed

The installer follows the suckless approach - only what's necessary:

  1. System Update - Updates package lists and upgrades existing packages
  2. Core Packages - Essential X11, build tools, and suckless dependencies
  3. UI Components - Window manager utilities (picom, rofi, dunst, etc.)
  4. System Tools - File manager, audio controls, power management
  5. Suckless Builds - Compiles and installs dwm (+ dwmtabs helper), slstatus, st, and tabbed
  6. External Tools - Via butterscripts:
    • RobotoMono Nerd Font
    • LightDM display manager
    • Bashrc enhancements
  7. Optional Tools - Additional browsers, editors, and utilities (prompted)

📦 What It Installs

Suckless Tools & Core Components

Component Purpose
dwm Tiling window manager (patched)
slstatus Status bar for DWM
st Terminal, patched: Xresources theming (live reload), scrollback, alpha, clipboard
tabbed Tab container for X11 applications
xorg & tools Display server and utilities
build-essential Compilation tools

UI & System Tools

Component Purpose
picom Compositor: shadows, rounded corners, fades (via butterrepo)
rofi App launcher, window switcher, menus
fonts-inter The rofi menus' font
dunst Lightweight notifications
orchis-gtk-theme-butter, colloid-icon-theme-butter GTK theme and icons (via butterrepo)
feh Wallpaper setter
network-manager Network management applet
thunar File Manager (+plugins)
gvfs-backends gvfs-fuse smbclient cifs-utils avahi-daemon Network shares: smb:// browsing, fstab cifs mounts, .local names
pamixer + pulsemixer Volume keys and the audio scratchpad
power-profiles-daemon Laptop power profiles
brightnessctl Backlight keys
maim + xclip Screenshots to ~/Screenshots and the clipboard
butterview Image viewer (via butterrepo)
firefox-esr Default web browser

External Tools (via butterscripts)

Component Purpose
RobotoMono Nerd Font Bar and terminal font
Geany Editor (Geany 2.1 from butterrepo, with the butterscripts config and its SauceCodePro font)
LightDM Display manager

Optional Tools (prompted during install)

Additional browsers, editors, and utilities available through the optional tools script.


🎨 Appearance & Theming

💡 Special thanks to vinceliuice for the excellent GTK and icon themes.


🔑 Keybindings Overview

Every keybinding — window management, layouts, tags, launchers, media keys — lives in one table: keys[] in ~/.config/suckless/dwm/config.def.h. There is no hotkey daemon; dwm grabs the keys itself. Super + / shows them all in rofi, read from that table each time, by its /* === SECTION === */ lines and the comment at the end of each key.

Shortcut Action
Super + Return Launch terminal (st)
Super + Space App launcher (rofi); enabled: false in rofi/config.rasi hides Pat
Super + b Firefox
Super + f Thunar
Super + e Geany
Super + x Power menu (rofi)
Super + / Keybinding sheet (rofi, read from config.def.h)
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 Resize: master width or column cfact
Super + Shift + Space Toggle floating
Super + Shift + f Fullscreen toggle (monocle + hide bar)
Super + y Toggle sticky (show on all tags)
Super + n Toggle window-follow on tag/mon move
Super + Ctrl + b Toggle bar
Super + apostrophe Window switcher (rofi, all tags)
Shift + Ctrl + 1..= Pick layout directly (12 layouts)
Super + Tab Toggle to previous tag
Super + 1..9, 0, -, = View tag 1..12
Super + Shift + 1..= Send focused window to tag
Super + Ctrl + 1..= Toggle tag visibility
Super + , / . Focus previous / next monitor
Super + Shift + , / . Send window to prev / next monitor
Super + ` Toggle scratchpad (st)
Super + v Toggle pulsemixer scratchpad
Super + Alt + 1..9 Toggle named scratch slot 1..9
Super + Alt + Shift + 1..9 Promote focused window into slot
Super + w Attach focused window to tab group
Super + Shift + w Detach focused window from tab group
Super + F10 / F11 / F12 Mute / volume down / volume up
XF86 media / brightness keys Volume and brightness (brightnessctl)
Super + Shift + s / s Screenshot region / fullscreen (maim)
Super + Escape Rebuild dwm, st, slstatus, tabbed and restart dwm in place
Super + Shift + u Update the setup: pull, reinstall, restart dwm in place
Super + Shift + r Restart dwm (preserves tags/windows)
Super + Shift + q Quit dwm

⚠️ Editing keybinds: they are compiled in. Edit config.def.h, then press Super + Escape: it rebuilds dwm, st, slstatus and tabbed (no root, they install to ~/.local/bin), restarts slstatus, and restarts dwm in place with your windows kept. New st and tabbed binaries are picked up by the next terminal you open. A failed build stops there, leaves the running session alone and points you at ~/.cache/dwm/rebuild.log.

On first login, a welcome notification points to ~/QUICKSTART-dwm.md — a short cheat sheet you can delete when you're comfortable.


🗂️ Tab Management (dwmtabs)

This setup ships with dwmtabs, a small libX11 + Xinerama tool that reparents windows into a tabbed container — group any X11 application the way a browser groups pages. Built from suckless/dwm/dwmtabs.c as part of make; installed alongside the dwm binary.

Usage

  • Super + w — attach the focused window to a tab group
    • On the same monitor; auto-creates a dwm-tabbed container if none exists
    • Subsequent attaches add to the same container
  • Super + Shift + w — detach the focused window (or focused tab) back to a standalone window
    • The container destroys itself when empty

Navigation Within Tabs

Once windows are tabbed together, tabbed's own bindings drive navigation (tabbed's modkey is Alt, set in tabbed/config.def.h to avoid colliding with dwm's Super):

  • Alt + Tab / Alt + Shift + Tab — next / previous tab
  • Alt + Ctrl + Tab — last (most-recent) tab
  • Alt + 1 … 0 — jump to tab N
  • Alt + Shift + j / k — move current tab left / right
  • Alt + q — close current tab
  • F11 — fullscreen the container

Practical Uses

  • Group multiple terminal windows together
  • Keep related browser windows organized
  • Manage file manager instances in one container
  • Reduce window clutter on busy workspaces

🧱 Layouts

Pick layouts with Shift + Ctrl + 1..= or by clicking the layout symbol on the bar. 12 layouts ship in the keybind table: Dwindle (default), Tile, Columns (cfact-weighted, i3-style), Centered Master, Floating, Bstack, N-Row Grid, Deck, Gapless Grid, Spiral, Monocle, Grid. Three more — bstackhoriz, centered-floating-master, horizgrid — are compiled in without a default bind; wire your own key in config.def.h to reach them. See the wiki Layouts page for descriptions.


🎭 Colors & Theming

One palette, "dusk", is pulled from the shipped wallpaper (suckless/wallpaper/cozy-window.png, 3840x2160, set with feh --bg-fill so it crops to any monitor). Colors are compiled in: edit the six col_* lines in dwm/config.def.h, press Super + Escape, and dwm rebuilds and restarts with the new palette. The same hexes live in rofi/colors.rasi, dunst/dunstrc, slstatus/config.def.h and st's config.def.h; keep them in step by hand. Super+Escape rebuilds the st and slstatus ones too. The GTK theme and icons that go with it (Orchis-Grey-Dark, Colloid-Grey-Dracula-Dark) are set in scripts/autostart.sh at every login, so another setup on the same machine can't leave its theme behind; change the two names there to use your own.

Role Hex
background #00141d
foreground #d0d7de
sky (selected border, dunst frame, ANSI blue) #4fc3f7
pale sky (selected bg, prompt) #b3e5fc
ember (accent, cursor, critical) #ec965c
sun (bright yellow, entry text) #ffd27a
rose (red, urgent) #e07068

GTK apps use Orchis-Grey-Dark with Colloid-Grey-Dracula-Dark icons, from butterrepo's theme packages; the installer writes ~/.config/gtk-3.0/settings.ini.


📂 Configuration Files

~/.config/suckless/
├── dwm/
│   ├── config.def.h         # Main DWM configuration (edit this)
│   ├── dwmtabs              # Tab-management binary (built by make)
├── st/
│   └── config.def.h         # st terminal configuration
├── slstatus/
│   └── config.def.h         # Status bar configuration
├── tabbed/
│   └── config.def.h         # Tabbed container configuration
├── dunst/
│   └── dunstrc              # Notification settings and colors
├── picom/
│   └── picom.conf           # Compositor configuration
├── rofi/
│   ├── shared.rasi          # The look every menu shares (border, corners, font)
│   ├── config.rasi          # App launcher (super+space)
│   ├── window.rasi          # Window switcher (super+apostrophe)
│   ├── keybinds.rasi        # Keybinding sheet (super+slash)
│   ├── power.rasi           # Power menu (super+x)
│   └── colors.rasi          # Palette (@imported by shared.rasi)
└── scripts/
    ├── autostart.sh         # Startup script
    ├── rebuild              # Super+Escape: rebuild all four tools, restart dwm in place
    ├── setup-update         # Super+Shift+U: pull the setup, reinstall, restart dwm in place
    ├── changevolume         # Volume up/down/mute with notification
    ├── screenshot           # maim region/full, saves + copies to clipboard
    ├── randr-watch          # Switches on a monitor plugged in after login
    ├── help                 # Super+/: the keybinding sheet, read from config.def.h
    └── power                # Power menu: suspend, log out, reboot, shut down, power profile

🔍 HiDPI / 4K Displays

Tiny type on a 4K screen? There's no single scaling knob — each toolkit (X fonts, GTK, Qt, the cursor) has to be told separately. ~/.config/suckless/scripts/autostart.sh ships a commented HiDPI block near the top; uncomment it and log out / back in. Full walkthrough — 200% vs 150%, GTK/Qt/cursor, the bar font — on the Troubleshooting wiki page under HiDPI / 4K displays.


🧩 Patches Summary

Per-patch descriptions, hand-merge notes, and the "custom modifications beyond patches" list live in suckless/dwm/modifications.txt and on the wiki Patches page.

19 patches applied. See suckless/dwm/patches/ for the .diff files.

Patch Category Version
alwayscenter Floating windows 2020-06-25
attachbottom Window order 6.3
cool_autostart Autostart 6.5
ewmhtags EWMH / pager support 6.2
focusadjacenttag Navigation 6.3
focusonnetactive Compatibility 6.2
fullscreen Window management 2026-01-12
movestack Window management 2021-11-15
namedscratchpads Scratchpads 6.5
pertag Layout memory 2020-09-14
preserveonrestart Session persistence 6.3
restartsig Restart via SIGHUP 6.2
scratchtagwins Tabbed scratch slots 6.5
status2d-barpadding-systray Bar features + padding 2024-10-14
statusallmons Bar features 6.5
sticky Window management 6.5
togglefloatingcenter Floating windows 2021-08-06
vanitygaps Visual spacing 6.2
windowfollow Navigation 2022-10-02

st also carries st-xresources + st-xresources-signal-reloading (see suckless/st/patches/): set st.* keys in ~/.Xresources and pkill -USR1 -x st to recolor running terminals without a rebuild.


Support

Buy me a coffee

Connect

License

GPL-2.0 - See LICENSE for details.


Made with 🧈 by JustAGuyLinux