RepositoryGoDEGermany
crmne

crmne/hyprmoncfg

Arrange Hyprland monitors without doing coordinate math

486stars
40forks
2issues
8views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: hyprland-config

#1 Repository of the week

8
TINIX TRENDING·Topic: omarchy

#8 Repository of the week

8
TINIX TRENDING·Topic: monitor

#8 Repository of the week

hyprmoncfg

Arrange Hyprland monitors without coordinate math.

GitHub Release AUR CI License: MIT

Terminal Trove Tool of the Week

hyprmoncfg is a terminal layout editor, CLI, profile store, and hotplug/lid-aware daemon for Hyprland monitor setups. Drag displays into place, save hardware-aware profiles, apply them safely, and let the daemon switch profiles when monitors or your laptop lid changes.

hyprmoncfg demo

What you get

  • Spatial layout editor -- drag monitors on a canvas and tune mode, scale, VRR, mirror, transform, and exact position
  • Named profiles -- save setups like desk, conference, or home-office
  • Hardware-identity matching -- profiles follow monitor make, model, and serial instead of unstable connector names
  • Hotplug and lid-aware daemon -- apply the right profile automatically when monitors change or the laptop lid closes
  • Workspace planner -- assign workspaces across monitors with sequential, interleave, or manual strategies
  • Safe apply with revert -- reload Hyprland, verify the result, and revert unless you confirm
  • Include-chain verification -- refuse to write generated monitor config that Hyprland is not reading
  • Hyprland 0.55 Lua config support -- use monitors.lua automatically when hyprland.lua is active, while preserving legacy monitors.conf setups
  • One hard runtime dependency -- Hyprland; UPower is optional for immediate lid events

Install

Arch Linux:

yay -S hyprmoncfg
# or
yay -S hyprmoncfg-git

Fedora COPR:

sudo dnf copr enable paolino/hyprmoncfg
sudo dnf install hyprmoncfg

Nix / NixOS:

nix run nixpkgs#hyprmoncfg
nix profile install nixpkgs#hyprmoncfg

Gentoo GURU:

sudo eselect repository enable guru
sudo emaint sync -r guru
sudo emerge gui-apps/hyprmoncfg

Void Linux, via the unofficial Blackhole-vl repo:

printf 'repository=https://mirror.black-hole.dev/%s/\n' "$(uname -m)" | sudo tee /etc/xbps.d/00-repository-blackhole.conf
sudo xbps-install -S
sudo xbps-install -S hyprland hyprmoncfg

Build from source:

git clone https://github.com/crmne/hyprmoncfg.git
cd hyprmoncfg
go build -o bin/hyprmoncfg  ./cmd/hyprmoncfg
go build -o bin/hyprmoncfgd ./cmd/hyprmoncfgd
install -Dm755 bin/hyprmoncfg  ~/.local/bin/hyprmoncfg
install -Dm755 bin/hyprmoncfgd ~/.local/bin/hyprmoncfgd

Distro packagers should use PACKAGING.md.

Configure Hyprland

Make sure ~/.config/hypr/hyprland.conf sources monitors.conf:

source = ~/.config/hypr/monitors.conf

Hyprland does not read that file automatically. hyprmoncfg creates and rewrites monitors.conf, then refuses to write if the source chain is missing so you do not edit a file Hyprland ignores.

Create your first profile

hyprmoncfg

Drag monitors into place, press s, type a profile name like desk, and press Enter.

Apply it later from the CLI:

hyprmoncfg apply desk

Enable automatic switching

AUR, Fedora COPR, Nixpkgs, and Gentoo GURU:

systemctl --user daemon-reload
systemctl --user enable --now hyprmoncfgd

Void Linux with Blackhole-vl:

exec-once = hyprmoncfgd

Manual install:

mkdir -p ~/.config/systemd/user
cp packaging/systemd/hyprmoncfgd.local.service ~/.config/systemd/user/hyprmoncfgd.service
systemctl --user daemon-reload
systemctl --user enable --now hyprmoncfgd

The daemon scores every profile in ~/.config/hyprmoncfg/profiles/, so delete throwaway profiles before relying on automatic switching.

Screenshots

hyprmoncfg adapts to your theme. Here are some examples:

Layout editorSave dialog
Layout editorSave profile dialog

Why it exists

Configuring monitors in Hyprland means writing monitor= lines by hand. A 4K display at 1.33333x scale is effectively 2880x1620 pixels, so the monitor next to it needs to start at x=2880. Vertically centering a 1080p panel against it means doing division in your head, reloading, noticing the layout is wrong, and editing again.

It gets worse when setups change:

  • No visual editor. You write monitor= lines by hand and hope the coordinates are right.
  • No profiles. Desk, projector, travel, and docked setups all need different layouts.
  • No automatic switching. Hotplug a monitor and Hyprland guesses again.
  • Connector names are unstable. DP-1 and DP-2 can swap between boots.
  • Some tools pull in too much. Python, GTK, and GObject introspection are a lot of stack just to move a rectangle.

How it works

hyprmoncfg ships two binaries:

hyprmoncfgTUI + CLI for layout editing, profile management, and workspace planning
hyprmoncfgdBackground daemon that auto-applies the best matching profile on hotplug and lid changes

Both use the same apply engine:

write monitors.conf -> reload Hyprland -> verify live state -> confirm or revert

There is no separate best-effort daemon path. If the TUI can apply a profile correctly, the daemon uses the same machinery.

Dotfiles integration

Profiles live in ~/.config/hyprmoncfg/profiles/. Each profile has a canonical JSON file plus generated .conf and .lua sidecars you can keep as plain Hyprland snippets if you stop using hyprmoncfg. Add the directory to your dotfile manager and your layouts roam across every machine you own.

With chezmoi:

chezmoi add ~/.config/hyprmoncfg

Now your desk at home, your laptop on the road, and your Raspberry Pi in the closet all share the same profile library. The daemon picks the right one based on what's actually plugged in.

You don't commit the active ~/.config/hypr/monitors.conf or ~/.config/hypr/monitors.lua. You commit your profiles. The tool writes the active generated monitor config for you.

How it compares

hyprmoncfgMoniqueHyprDynamicMonitorsHyprMonnwg-displayskanshi
GUI or TUITUIGUITUITUIGUICLI
Spatial layout editorYesYesPartialYesYesNo
Drag-and-dropYesYesNoYesYesNo
SnappingYesNot documentedNoYesYesNo
ProfilesYesYesYesYesNoYes
Auto-switching daemonYesYesYesNo (roadmap)NoYes
Workspace planningYesYesNoNoBasicNo
Mirror supportYesYesYesYesYesNo
Safe apply with revertYesYesNoPartial (manual rollback)NoNo
Hyprland 0.55 Lua configYesNoNoNoYesN/A
Include-chain verificationYesNoNoNoNoNo
Additional runtime dependenciesNonePython + GTK4 + libadwaitaUPower, D-BusNonePython + GTK3None

Docs

Full documentation at hyprmoncfg.dev.

Development

Install the pre-commit hook to run CI checks locally before each commit:

ln -sf "$(pwd)/scripts/pre-commit" .git/hooks/pre-commit

The hook runs go mod tidy, go vet, go test, and go build.

Regenerate demo videos and screenshots:

./scripts/capture_media.sh

The media scripts use the installed hyprmoncfg from PATH.

Regenerate only screenshots:

./scripts/capture_screenshots.sh

License

MIT

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
goodroot/hyprwhspr

Native speech-to-text for Linux - Fast, accurate, private, and hackable system-wide dictation

1.3k
Dec 1, 2026
RepositoryCSS
ahmad9059/HyprFlux

HyprFlux : Minimal, productive, elegant, and fast

909
Nov 8, 2026
RepositoryRust
devmobasa/wayscriber

Live overlay for drawing, annotating, presenting with zoom, hiding text, and capturing screenshots on Linux. Can be used as whiteboard or blackboard. Packed with features. Highly customisable. Written in Rust.

805
Nov 22, 2026
RepositoryShell
prasanthrangan/hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland

8.5k
Mar 23, 2025
RepositoryQML
mylinuxforwork/dotfiles

The ML4W OS - Dotfiles for Hyprland - An advanced and full-featured configuration for the dynamic tiling window manager Hyprland. Ready to install for Arch Linux, Fedora and openSuse.

5.1k
Nov 29, 2026
RepositoryShell
JaKooLit/Arch-Hyprland

For automated installation of Hyprland on Arch Linux or any Arch Linux-based distros

4.6k
Feb 22, 2026
RepositoryQML
pctrade/end4-pC

Custom end4

3.9k
Nov 26, 2026
RepositoryShell
JaKooLit/Hyprland-Dots

Hyprland configuration files or dotfiles - This repo is used as main repo for all my Distro-Hyprland Install Scripts. See the readme

3.6k
Feb 22, 2026
RepositorySwift
omacom/try-omarchy

Run Omarchy on MacOS without any setup.

3.0k
Nov 27, 2026