Watch
1
0
Fork
You've already forked souveraine
0

packaging: ship souveraine-button, the reporter that replaces the policy script

Reports down/up edges to sessiond and decides nothing. Wire it in
hyprland.lua as a bind/bindr pair — reporting only the press leaves the
machine believing the button is held forever.
This commit is contained in:
Fimeg 2026-07-31 21:48:08 -04:00
commit a89556aef7
3 changed files with 76 additions and 2 deletions

View file

@ -15,9 +15,9 @@ options=('!strip')
source=('souveraine-binary' 'souveraine.service'
'souveraine-secrets-binary' 'souveraine-secrets.service'
'souveraine-machined-binary' 'souveraine-machined.service'
'souveraine-verify-trail'
'souveraine-verify-trail' 'souveraine-button'
'LICENSE')
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
# sessiond ships on aarch64 only (the phone is its target; the laptop hit
# lock-screen errors with it). CI drops the two files into the build dir for
# that arch and omits them otherwise, so package() picks them up conditionally
@ -50,6 +50,11 @@ package() {
install -Dm644 "$srcdir/souveraine-sensord.service" \
"$pkgdir/usr/lib/systemd/user/souveraine-sensord.service"
fi
# Hardware button reporter. Every arch: it decides nothing and depends on
# nothing, and a laptop with a power button is the same shape. Replaces
# blueline-power-button, which was owned by no package and carried its own
# copy of the lock-then-blank ordering.
install -Dm755 "$srcdir/souveraine-button" "$pkgdir/usr/bin/souveraine-button"
# Secrets rail (user service, owns org.freedesktop.secrets) and machined
# (system service, machine identity). Both were hand-copied to the phone
# and owned by no package — same gap as sessiond.