mirror of github.com/Breadway/breadmon
Find a file
Breadway 20d4825cf0
Some checks failed
check / check (push) Failing after 1s
deps: pin bread-utils to bread-ecosystem v0.7.1
Replace the old `bread modules install` docs with `bakery install breadmon`.
Spell out that `hyprctl eval 'hl.monitor({...})'` is BOS-patched Hyprland
only, and that breadmon is not the bos-settings Display panel (which edits
monitors.json).
2026-08-15 21:35:35 +08:00
.forgejo/workflows ci: build against bread-ecosystem's shared Arch CI image, add check.yml 2026-08-05 14:02:47 +08:00
ci ci: build against bread-ecosystem's shared Arch CI image, add check.yml 2026-08-05 14:02:47 +08:00
src ci: build against bread-ecosystem's shared Arch CI image, add check.yml 2026-08-05 14:02:47 +08:00
.gitignore random commit message, read it yourself 2026-07-22 11:55:43 +08:00
bakery.toml Initial commit 2026-07-02 20:59:16 +08:00
Cargo.lock deps: pin bread-utils to bread-ecosystem v0.7.1 2026-08-15 21:35:35 +08:00
Cargo.toml deps: pin bread-utils to bread-ecosystem v0.7.1 2026-08-15 21:35:35 +08:00
CONTRIBUTING.md CONTRIBUTING.md: document single-trunk + RC-tag release model 2026-07-31 11:08:41 +08:00
LICENSE Initial commit 2026-07-02 20:59:16 +08:00
README.md deps: pin bread-utils to bread-ecosystem v0.7.1 2026-08-15 21:35:35 +08:00

breadmon

A terminal UI monitor manager for Hyprland. Lets you position, configure, and mirror displays interactively, then apply a live layout on BOS-patched Hyprland.

breadmon is not the Display panel in bos-settings. That panel edits ~/.config/hypr/monitors.json (Hyprland's login/reload layout store). breadmon keeps its own named snapshots as TOML under ~/.config/breadmon/profiles/ and applies them live through BOS Hyprland. The two stores are independent — changing one does not update the other.

Requirements

  • BOS (Bread OS)'s patched Hyprland build for live apply. The a key runs hyprctl eval 'hl.monitor({...})' — a BOS-specific Lua extension. Vanilla/upstream Hyprland has no eval request and no hl.monitor(), so apply will fail there with an explicit error instead of the raw hyprctl response. Viewing, arranging, and saving profiles work on any Hyprland; only live apply needs BOS.
  • The hyprctl binary must be on PATH
  • Rust toolchain (to build from source)

Install

Via bakery, the bread ecosystem package manager:

bakery install breadmon

Or build from source:

cargo build --release

The binary is written to target/release/breadmon.

Usage

breadmon

The TUI opens with four tabs, switchable by number key or mouse click:

Key Tab
1 / F1 Layout
2 / F2 Config
3 / F3 Mirror
4 / F4 Profiles

Layout

A scaled canvas showing all connected monitors. The selected monitor is highlighted.

Key Action
hjkl / arrow keys Move selected monitor 1 px
Shift+hjkl Move selected monitor 10 px
Tab / n Cycle to next monitor
Shift+Tab / p Cycle to previous monitor
0 Auto-arrange monitors left-to-right with no gaps
[ / ] Zoom canvas out / in
Mouse drag Drag monitor to reposition

Monitors snap to each other's edges when dragged or nudged within 10 px.

Config

Per-monitor settings for the currently selected display.

Key Action
jk / Tab Move between fields
hl / scroll Cycle field value
, / . Scale 0.1 / +0.1
[ / ] Switch to previous / next monitor
Enter Commit scale edit and apply
Esc Discard pending edits

Fields: Resolution, Refresh rate, Scale, Transform (rotation/flip), VRR, DPMS, Mirror of.

The header shows the monitor's PPI and a suggested fractional scale when physical dimensions are available.

Mirror

Finds the best common mode between two monitors and sets one to mirror the other. Use Tab to move focus between source and target, hl to cycle the selection, Enter to confirm.

Profiles

Named snapshots of the current monitor configuration, stored as TOML files.

Key Action
jk Navigate profile list
Enter Load selected profile
d d Delete selected profile (double-press within 3 s)
Tab Move focus to name input / save button

Profiles are saved to ~/.config/breadmon/profiles/.

Global keys

Key Action
a Apply current configuration via hyprctl eval 'hl.monitor({...})' (BOS-patched Hyprland only)
s Save current configuration as a profile
r Refresh monitor list from Hyprland
Ctrl+Z Undo last change (up to 20 steps)
q / Ctrl+C Quit (prompts once if there are unsaved changes)

breadmon also listens on Hyprland's event socket and reloads the monitor list automatically when a display is connected or disconnected.

Config

Profiles are plain TOML files under ~/.config/breadmon/profiles/. Each file records the monitor name, mode, position, scale, transform, VRR, DPMS, and mirror source. They are created and managed through the Profiles tab; there is no hand-written config file.

This is not ~/.config/hypr/monitors.json. That file is the persistent Hyprland layout edited by the bos-settings Display panel and applied on login/reload. breadmon never reads or writes it.