- Shell 53.6%
- C 40.2%
- Roff 4.1%
- Makefile 2.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| bspwm | ||
| screenshots | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| install.sh | ||
| LICENSE | ||
| QUICKSTART.md | ||
| README.md | ||
🌿 bspwm
bspwm for Debian, colored by your wallpaper: bspwm and sxhkd, a polybar along the top, rofi menus, and a wallpaper picker that colors the whole desktop from the picture you choose. No extra shell, so it stays light.
Part of the JustAGuy Linux window manager collection — installable standalone or via butterknife, the installer for Butterbian.
📖 Deep dive: the wiki. New to bspwm? Start with Bspwm Concepts. The pieces, the layouts, the tab tool, the scratchpads and the wallpaper colors each have a page.
🚀 Installation
git clone https://justaguy.dev/butter/bspwm.git
cd bspwm
chmod +x install.sh
./install.sh
⚠️ 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.
This needs Debian 13 (trixie) with sudo access. Ubuntu isn't supported.
./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/bspwm as you like. Running ./install.sh again replaces that folder; answer y at the prompt to keep the old one as ~/.config/bspwm.bak.<number>, then copy your changes back from it. Your wallpapers and the one you picked last are kept either way.
On a minimal Debian with no login screen yet, reboot when the installer finishes (it says so), then pick bspwm at the login screen.
📦 What It Installs
| Component | Purpose |
|---|---|
bspwm, sxhkd |
Tiling window manager and its keys |
polybar |
The bar, one per monitor |
picom (yshui) |
Compositor: rounded corners, shadows, fades |
rofi |
Launcher, wallpaper picker, layout menu, power menu, keybind help |
butterpal |
Makes a palette from the wallpaper (butterrepo) |
dunst |
Notifications |
kitty |
Terminal emulator |
tabbed + bspwm-tabs |
Tabs for any X window (built here) |
thunar + plugins |
File manager |
firefox-esr |
Web browser |
feh |
Wallpaper |
xsettingsd, nwg-look |
Live GTK theme changes, GTK settings |
network-manager-gnome |
Network tray icon |
lxpolkit |
Password prompts for admin tasks |
flameshot |
Screenshots |
pamixer, pavucontrol, pulsemixer |
Volume keys, mixer, scratchpad mixer |
brightnessctl |
Brightness keys |
arandr |
Arrange monitors |
gsimplecal |
The calendar behind the bar's date |
butterview |
Image viewer |
lightdm |
Login screen |
| Orchis, Colloid | GTK and icon themes (butterrepo) |
| Nerd Fonts, Inter | Fonts with icons, and the menus' font |
An optional tools menu at the end offers browsers, editors and more.
🧭 The Bar
- Left: the Debian swirl opens the app launcher. This monitor's workspaces: an empty one is a dot, one with windows shows its number, the current one is in the accent and underlined. The layout as a symbol: click it for the layout menu, scroll over it to step through. Then the window title.
- Right: what's playing (only while something plays), volume (right-click for the mixer), brightness and battery on laptops, and one icon that unfolds CPU, memory and disk. Then the date (click for a calendar), the time, a screenshot button (a region; Super + s takes the whole screen), the tray and the power menu.
The bar floats in line with the window gaps, rounded like the windows, framed at the same 3px. It's all in ~/.config/bspwm/polybar/config.ini.
🎨 Colored by Your Wallpaper
Super + Shift + p (or a right-click on the Debian logo in the bar) opens the wallpaper picker: a grid of your wallpapers, the current one marked, and a row to open the folder and add your own. Pick one and butterpal makes a palette from it, and the whole desktop takes it on: polybar, the window borders, rofi, dunst, kitty's colors, GTK (Orchis, recolored) and the icon folders (the Colloid color nearest the wallpaper's). It takes under a second. The app launcher shows Pat on a strip in the palette's colors; enabled: false in rofi/config.rasi hides it.
The default wallpaper is pat-bspwm-desk, Pat at the desk, so a fresh install comes up in its butter gold and deep blue. Wallpapers live in ~/.config/bspwm/wallpaper; the Themes wiki page covers what gets written where.
💡 Special thanks to vinceliuice for the excellent GTK and icon themes.
🔑 Keybindings Overview
Super + / opens every keybind in rofi, read from sxhkdrc each time, so a key you add there shows up.
| Shortcut | Action |
|---|---|
Super + Return |
Terminal (kitty) |
Super + Space |
App launcher |
Super + / |
Keybind help |
Super + Shift + p |
Wallpaper picker |
Super + Shift + t |
Layout menu |
Super + x |
Power menu |
Super + q |
Close window |
Super + b / Super + Shift + b |
Firefox / private window |
Super + f |
File manager |
Super + e |
Editor (Geany) |
Super + Arrows / h j k l |
Focus a window |
Super + Shift + Arrows / h j k l |
Swap the window |
Super + Ctrl + Arrows / h j k l |
Resize the window |
Super + Ctrl + = |
Even out window sizes |
Super + i / Super + Shift + i |
Rotate the window's pair |
Super + t |
Next layout |
Super + w / Super + Shift + w |
Tab attach / detach |
Super + Shift + Space |
Float |
Super + Shift + f |
Fullscreen |
Super + Shift + Return |
Drop-down terminal |
Super + Alt + 1-3, a, n |
Scratchpad slots (any window) |
Super + 1-9, 0, -, = |
Workspace 1-12 of this monitor |
Super + Shift + 1-9, 0, -, = |
Move window there, and follow |
Super + , / Super + . |
Focus the previous / next monitor |
Super + Shift + , / Super + Shift + . |
Send window to that monitor, and follow |
Super + s / Super + Shift + s |
Screenshot (full / region) |
Super + F10/F11/F12 |
Mute / volume down / volume up |
Super + Escape |
Reload the keys (sxhkd) |
Super + Shift + r |
Restart bspwm |
Super + Shift + q |
Log out |
🖥️ Layouts and Monitors
Super + Shift + t (or a click on the bar's layout symbol) opens the layout menu: tiled, tall, tall with the master right, wide, wide with the master below, grid, grid rotated, even columns, monocle. Super + t steps through them. Each desktop keeps its own.
Every monitor has its own workspaces 1-12, like dwm's tags: Super + 3 is workspace 3 of the monitor you're on. Super + , and Super + . move between monitors; with Shift, the window goes along onto the workspace the other monitor is showing. A monitor plugged in after login switches on to the right of the others and bspwm restarts on the new layout, windows kept. Arrange monitors with arandr and save the layout as ~/.screenlayout/default.sh (Layout → Save As): it is applied at every login.
📑 Tabs and Scratchpads
Super + w puts the focused window into a tab container; Super + Shift + w detaches it. Inside a container, Alt + Tab cycles tabs. Built on suckless tabbed with a small C helper, bspwm-tabs — the Tabs wiki page has the details.
Super + Alt + 1, 2, 3, a (audio) and n (notes) turn any focused window into a scratchpad you can summon and dismiss; with Shift on the numbers, the slot is released. See the Scratchpad wiki page.
📂 Configuration Files
~/.config/bspwm/
├── bspwmrc # Startup, desktops, gaps, window rules
├── sxhkd/sxhkdrc # Every key
├── colors.sh # Window border colors (written by the wallpaper picker)
├── current-wallpaper # The wallpaper picked last
├── polybar/
│ ├── config.ini # The bar
│ ├── colors.ini # Its colors (written by the wallpaper picker)
│ └── polybar-bspwm # Starts one bar per monitor
├── rofi/ # The menus, sharing one look (shared.rasi)
├── dunst/dunstrc # Notifications (colors written by the wallpaper picker)
├── picom/picom.conf # Compositor: 10px corners, shadows
├── kitty/ # The session's own kitty config, ~/.config/kitty is left alone
├── tabbed/, bspwm-tabs/ # The tab tool's sources (built by the installer)
├── wallpaper/ # Wallpapers
└── scripts/
├── wallpapers # The wallpaper picker
├── wallpaper-theme # Colors the desktop from a wallpaper
├── layout, layoutmenu # The layout engine and its menu
├── polybar-* # The bar's layout symbol, now playing, stats toggle
├── randr-watch # Switches on a monitor plugged in after login
├── scratchpad* # The drop-down terminal and scratchpad slots
├── help, power # Keybind help, power menu
└── changevolume # Volume keys with a notification
Window rules are in bspwmrc; GIMP opening on workspace 9 is there as an example to copy.
🔍 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. bspwmrc ships a commented HiDPI block at the top; uncomment it and restart bspwm (Super + Shift + R). Full walkthrough on the Troubleshooting wiki page under HiDPI / 4K displays.
Credits
This project is a config on top of other people's software. The window manager and keybinding daemon are the work of baskerville — bspwm and sxhkd. Both have been stable and minimal for years; this setup adds nothing to them, only composes them with other pieces.
Other upstream projects this setup relies on: tabbed from suckless; picom (yshui fork); polybar; rofi; dunst; feh; kitty. GTK + icon themes by vinceliuice — Orchis and Colloid.
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-2.0 - See LICENSE for details.
Made with 🧈 by JustAGuyLinux

