- Shell 92.2%
- Python 7.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| i3 | ||
| screenshots | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| install.sh | ||
| LICENSE | ||
| QUICKSTART.md | ||
| README.md | ||
🪟 i3
i3 the classic way, for Debian: a tiling window manager with polybar along the top, rofi menus, and a theme switcher. i3 from Debian's own package, keys in sxhkd, no extra shell, so it stays light.
Part of the JustAGuy Linux window manager collection — installable standalone or via butterknife, the installer for Butterbian.
🚀 Installation
git clone https://justaguy.dev/butter/i3.git
cd i3
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; it installs i3 4.24 from Debian's repository. 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/i3 as you like. Running ./install.sh again replaces that folder; answer y at the prompt to keep the old one as ~/.config/i3.bak.<number>, then copy your changes back from it. Your wallpapers and your theme are kept either way.
On a minimal Debian with no login screen yet, reboot when the installer finishes (it says so), then pick i3 at the login screen.
📦 What It Installs
| Component | Purpose |
|---|---|
i3 |
Tiling window manager (Debian's package) |
sxhkd |
Keybindings |
polybar |
The bar, one per monitor |
picom (yshui) |
Compositor: shadows, fades, rounded corners |
rofi |
App launcher, theme and layout pickers, power menu, keybind help |
dunst |
Notifications |
kitty |
Terminal emulator |
thunar + plugins |
File manager |
firefox-esr |
Web browser |
geany |
Text editor, with the butterscripts config |
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 |
playerctl |
What's playing, in the bar |
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; right-click it for the theme switcher. Then this monitor's workspaces: the focused one in the theme color and underlined, the one another monitor shows with a faint underline. Then the layout of the focused window's container as a symbol (split across, split down, tabbed, stacked); click it for the layout menu, scroll on it to step through. Then the title of the window focused on this monitor.
- 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 above the windows in line with them: i3 itself would stretch a docked bar edge to edge, so the bar places itself and gaps top 46 in rules.conf keeps its room. Change the bar's height in polybar/config.ini and change that gap with it.
🖥️ Monitors
i3's own way: each workspace lives on one monitor, and every monitor gets its own bar with its own workspaces, layout and title.
Super + 1-0, -, =goes to that workspace wherever it is; a new one opens on the monitor you're on.Super + ,/Super + .focuses the monitor to the left or right;Super + Shift + ,/.sends the window there and follows it.- A monitor plugged in after login switches on to the right of the others (
scripts/randr-watch): i3 moves the workspaces over itself, and the bars and wallpaper start again to cover it. One unplugged is switched off. - Arrange monitors with
arandrand save the layout as~/.screenlayout/default.sh(Layout → Save As): it is applied at every login. A monitor you turn off there stays off.
🎨 Theme Switcher
Super + Shift + t (or right-click the Debian swirl) opens the theme switcher: 15 themes (aura, butterbox, catppuccin, dracula, eldritch, everforest, github_dark, gruvbox, kanagawa, monokai, moonfly, nord, retro, rose_pine, tokyo_night), the same 15 as qtile, openbox-classic and sway-classic. A pick recolors the bar and window borders, rofi and dunst, and switches the GTK and icon themes (Thunar takes the theme's background), kitty's colors and the wallpaper. i3 reloads; your windows stay.
Each theme is a folder in ~/.config/i3/themes/: theme.conf (kitty, GTK, icons, wallpaper, dunst colors), colors.ini (the bar's palette), colors.rasi (rofi's) and the window colors.
💡 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 + t |
Theme switcher |
Super + x |
Power menu |
Super + q |
Close window |
Super + b / Super + Shift + b |
Firefox / private window |
Super + f |
File manager |
Super + e |
Text editor (Geany) |
Super + Arrows / h j k l |
Focus a window |
Super + Shift + Arrows / h j k l |
Move the window |
Super + Ctrl + Arrows / h j k l |
Resize the window |
Super + y |
Layout menu |
Super + w |
Tabbed |
Super + t |
Split → tabbed → stacked |
Super + Shift + Space |
Float, centered |
Super + Shift + f |
Fullscreen |
Super + Shift + Return |
Drop-down terminal |
Super + Alt + a |
Drop-down volume mixer |
Super + 1-9, 0, -, = |
Go to workspace 1-12 |
Super + Shift + 1-9, 0, -, = |
Move window to workspace 1-12, and follow |
Super + , / Super + . |
Focus the monitor left / right |
Super + Shift + , / . |
Send the window to that monitor, and follow |
Super + s |
Screenshot (full screen) |
Super + Shift + s |
Screenshot (region) |
Super + F10/F11/F12 |
Mute / volume down / volume up |
Alt + Tab / Alt + Shift + Tab |
Next / previous window in the container |
Super + Escape |
Reload the keys (sxhkd) |
Super + Shift + r |
Reload i3 |
Super + Shift + q |
Log out |
On first login, a welcome notification points to ~/QUICKSTART-i3.md, a short cheat sheet you can delete when you're comfortable.
Note: sxhkd only reliably binds keys in the
a-z/ standard ASCII range. If you use a non-US keyboard layout (German, French, Russian, Japanese, etc.), bindings that involve characters outside that range may not fire. You'll need to rework the relevantsxhkdrcentries to use keysyms that exist on your layout, or remove them.
📂 Configuration Files
~/.config/i3/
├── config # i3 itself: includes the files below, starts autostart.sh
├── colors.conf # Window colors (written by the theme switcher)
├── workspaces.conf # Workspaces 1-12
├── rules.conf # Borders, gaps, floating windows, scratchpads
├── sxhkd/sxhkdrc # Every keybind
├── polybar/
│ ├── config.ini # The bar
│ ├── colors.ini # The bar's palette (written by the theme switcher)
│ └── polybar-i3 # Starts one bar per monitor
├── themes/ # One folder per theme (15)
├── rofi/ # The rofi menus, sharing one look
│ ├── shared.rasi # the common style
│ ├── colors.rasi # written by the theme switcher
│ ├── config.rasi # app launcher (Pat's strip: `enabled: false` hides it)
│ ├── strip.rasi # the launcher strip's gradient (copied from the theme)
│ ├── pat.png # Pat, on the launcher's strip
│ ├── themes.rasi # theme and layout pickers
│ ├── power.rasi
│ └── keybinds.rasi
├── dunst/dunstrc # Notifications (colors set by the theme switcher)
├── picom/picom.conf # Compositor
├── kitty/ # The session's own kitty config, ~/.config/kitty is left alone
│ ├── kitty.conf
│ ├── current-theme.conf # written by the theme switcher
│ └── themes/ # Aura, Butterbox, Trapped in Amber
├── wallpaper/ # Wallpapers
└── scripts/
├── autostart.sh # polkit, xsettingsd, dunst, picom, wallpaper, nm-applet, bars, randr-watch, sxhkd
├── randr-watch # switches on a monitor plugged in after login
├── polybar-i3-state # the bar's title and layout symbol, per monitor
├── polybar-media # what's playing
├── polybar-stats # folds CPU, memory and disk
├── thememenu # theme switcher
├── layoutmenu # layout menu
├── help # keybind help
├── power # power menu
├── scratchpad # drop-down terminal and mixer
└── changevolume # volume keys with a notification
kitty reads ~/.config/i3/kitty instead of ~/.config/kitty: scripts/autostart.sh exports KITTY_CONFIG_DIRECTORY before it starts sxhkd, rofi and polybar, so it applies only in i3 sessions, so the theme switcher never touches your global kitty setup and other WMs on the same machine keep theirs. The theme switcher also writes ~/.config/gtk-3.0/settings.ini, ~/.xsettingsd and ~/.themes/i3-<theme>/ (Thunar's background).
🔍 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/i3/scripts/autostart.sh ships a commented HiDPI block near the top; uncomment it and reload i3 (Super + Shift + r). Full walkthrough — 200% vs 150%, GTK/Qt/cursor, the bar — on the Troubleshooting wiki page under HiDPI / 4K displays.
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

