git: 427f824819f4 - main - x11/bhotkeys-lid-state: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 10 Oct 2026 19:33:40 UTC
The branch main has been updated by dteske:
URL: https://cgit.FreeBSD.org/ports/commit/?id=427f824819f46509dcac78c89fdcf8daafc993dd
commit 427f824819f46509dcac78c89fdcf8daafc993dd
Author: Devin Teske <dteske@FreeBSD.org>
AuthorDate: 2026-10-10 19:30:30 +0000
Commit: Devin Teske <dteske@FreeBSD.org>
CommitDate: 2026-10-10 19:30:30 +0000
x11/bhotkeys-lid-state: New port
Super+Z lid stay-awake hotkey for bhotkeys.
lid-switchd holds the lid sysctl for the session.
Approved by: jrm (mentor)
Reviewed by: jrm (mentor)
Differential Revision: https://reviews.freebsd.org/D60497
---
GIDs | 2 +-
x11/Makefile | 1 +
x11/bhotkeys-lid-state/Makefile | 21 +++++++++++++++++++++
x11/bhotkeys-lid-state/distinfo | 3 +++
x11/bhotkeys-lid-state/pkg-descr | 3 +++
x11/bhotkeys-lid-state/pkg-plist | 8 ++++++++
6 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/GIDs b/GIDs
index e0cd8435e25b..11bcbefb27fa 100644
--- a/GIDs
+++ b/GIDs
@@ -343,7 +343,7 @@ tiarra:*:398:
linkwarden:*:399:
evcc:*:400:
spectrumknx:*:401:
-# free: 402
+lid_switchd:*:402:
# free: 403
# free: 404
# free: 405
diff --git a/x11/Makefile b/x11/Makefile
index 7f3ccf95717b..caef71194540 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -29,6 +29,7 @@
SUBDIR += bgrot
SUBDIR += bgs
SUBDIR += bhotkeys
+ SUBDIR += bhotkeys-lid-state
SUBDIR += bhotkeys-lock
SUBDIR += bhotkeys-mate
SUBDIR += bhotkeys-media
diff --git a/x11/bhotkeys-lid-state/Makefile b/x11/bhotkeys-lid-state/Makefile
new file mode 100644
index 000000000000..f48c7dad71a0
--- /dev/null
+++ b/x11/bhotkeys-lid-state/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= bhotkeys-lid-state
+DISTVERSION= 1.3.1
+CATEGORIES= x11
+
+MAINTAINER= dteske@FreeBSD.org
+COMMENT= Super+Z lid stay-awake hotkey for bhotkeys
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= bhotkeys:x11/bhotkeys \
+ bosd:x11/bosd
+
+USE_GITHUB= yes
+GH_ACCOUNT= FrauBSD
+GROUPS= lid_switchd
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/lid-switchd
+
+.include <bsd.port.mk>
diff --git a/x11/bhotkeys-lid-state/distinfo b/x11/bhotkeys-lid-state/distinfo
new file mode 100644
index 000000000000..5b2ebd9d68b7
--- /dev/null
+++ b/x11/bhotkeys-lid-state/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1791646074
+SHA256 (FrauBSD-bhotkeys-lid-state-1.3.1_GH0.tar.gz) = 674674e29b1c7db981f669707834f47f1b21f110aefcaead78893a71dde74327
+SIZE (FrauBSD-bhotkeys-lid-state-1.3.1_GH0.tar.gz) = 13739
diff --git a/x11/bhotkeys-lid-state/pkg-descr b/x11/bhotkeys-lid-state/pkg-descr
new file mode 100644
index 000000000000..f95d5cd35bd7
--- /dev/null
+++ b/x11/bhotkeys-lid-state/pkg-descr
@@ -0,0 +1,3 @@
+Super+Z lid stay-awake hotkey for bhotkeys. lid-switchd holds
+hw.acpi.lid_switch_state so the session can change it without
+running as root. bosd draws the lid glyph.
diff --git a/x11/bhotkeys-lid-state/pkg-plist b/x11/bhotkeys-lid-state/pkg-plist
new file mode 100644
index 000000000000..79fbf0badf99
--- /dev/null
+++ b/x11/bhotkeys-lid-state/pkg-plist
@@ -0,0 +1,8 @@
+bin/lid-policy
+bin/lid-wake-toggle
+etc/rc.d/lid-switchd
+sbin/lid-switchd
+share/bhotkeys/plugins.d/lid
+share/man/man1/lid-policy.1.gz
+share/man/man1/lid-wake-toggle.1.gz
+share/man/man8/lid-switchd.8.gz