gui-apps/hyprmoncfg - 1.9.0 (guru)

Search

Install

Install this version:

emerge -a =gui-apps/hyprmoncfg-1.9.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =gui-apps/hyprmoncfg-1.9.0

Or alternatively:

emerge --autounmask-write -a =gui-apps/hyprmoncfg-1.9.0

Package Information

Description:
Terminal-first monitor configurator and auto-switching daemon for Hyprland
Homepage:
https://github.com/crmne/hyprmoncfg
License:
Apache-2.0 BSD MIT

Ebuild Details

Version EAPI Keywords Slot
1.9.0 8 -* ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop go-module systemd

DESCRIPTION="Terminal-first monitor configurator and auto-switching daemon for Hyprland"
HOMEPAGE="https://github.com/crmne/hyprmoncfg"
SRC_URI="
	https://github.com/crmne/hyprmoncfg/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/crmne/hyprmoncfg/releases/download/v${PV}/${P}-deps.tar.xz
"
S="${WORKDIR}/${P}"

LICENSE="Apache-2.0 BSD MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"

BDEPEND=">=dev-lang/go-1.26.1"

src_compile() {
	local build_date ldflags

	build_date="$(date -u +%FT%TZ)"
	ldflags="-X github.com/crmne/hyprmoncfg/internal/buildinfo.Version=${PV} -X github.com/crmne/hyprmoncfg/internal/buildinfo.Commit=2af37f6 -X github.com/crmne/hyprmoncfg/internal/buildinfo.Date=${build_date}"

	GOPROXY=off ego build -buildvcs=false -trimpath -mod=readonly -ldflags "${ldflags}" -o hyprmoncfg ./cmd/hyprmoncfg
	GOPROXY=off ego build -buildvcs=false -trimpath -mod=readonly -ldflags "${ldflags}" -o hyprmoncfgd ./cmd/hyprmoncfgd
}

src_test() {
	GOPROXY=off ego test -buildvcs=false ./...
}

src_install() {
	dobin hyprmoncfg
	dobin hyprmoncfgd
	dodoc README.md
	insinto /usr/share/licenses/${PN}
	doins LICENSE
	domenu packaging/applications/hyprmoncfg.desktop
	doicon packaging/icons/hyprmoncfg.svg
	systemd_douserunit packaging/systemd/hyprmoncfgd.service
}

Inherited Eclasses

Dependencies

BDEPEND

>=dev-lang/go-1.26.1

Manifest for 1.9.0

Type File Size Source URLs
DIST hyprmoncfg-1.9.0-deps.tar.xz 38216884 bytes https://github.com/crmne/hyprmoncfg/releases/download/v1.9.0/hyprmoncfg-1.9.0-deps.tar.xz
DIST hyprmoncfg-1.9.0.tar.gz 5973767 bytes https://github.com/crmne/hyprmoncfg/archive/refs/tags/v1.9.0.tar.gz