BSD Ports

x11/nightsaver 0.6.0 MidnightBSD

OLED-friendly X11/Wayland screensaver and locker, xscreensaver drop-in

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
7b0ecdd437
License
bsd2
Categories
x11

Description

nightsaver is an OLED-friendly Xorg and Wayland screensaver and PAM screen locker written in Rust. It is a drop-in replacement for the xscreensaver daemon and the xscreensaver-command control client: it accepts xscreensaver's daemon flags, speaks its control protocol, and reads the relevant subset of ~/.xscreensaver.

Every frame passes through an OLED guard that caps brightness, slowly shifts pixels and periodically rests on a fully black screen. It ships built-in clock, starfield, matrix and blank patterns, manages DPMS and covers multiple monitors. Screen locking authenticates through OpenPAM using unix-selfauth-helper, so nightsaver itself is not setuid.

Wayland support is experimental. On wlroots compositors such as sway and labwc it blanks through layer-shell and locks with ext-session-lock-v1; on KWin it can blank but not lock. GNOME Wayland is not supported.

Version history 6

  1. 0.6.0 7b0ecdd437
  2. 0.4.0 57502aad41
  3. 0.5.0 7da2c0fb14
  4. 0.1.0 bfb7a247de
  5. 0.2.0 95646e3d85
  6. 0.2.0 35a10ae038

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install nightsaver

From mports:

cd /usr/mports/x11/nightsaver && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	nightsaver>0:x11/nightsaver

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Library 1

Runtime 1

Build dependencies 1
Run dependencies 2

Configuration

No options to configure.

USES
cargo xorg
Service scripts
none

Files

Manual pages 3
  • nightsaver(1)
  • nightsaver-command(1)
  • nightsaver.toml(5)
pkg-plist 15
  • bin/nightsaver
  • bin/nightsaver-command
  • bin/xscreensaver
  • bin/xscreensaver-command
  • @sample etc/nightsaver.toml.sample
  • @sample etc/pam.d/nightsaver.sample
  • etc/xdg/autostart/nightsaver.desktop
  • libexec/nightsaver-auth
  • man/man1/nightsaver-command.1.gz
  • man/man1/nightsaver.1.gz
  • man/man5/nightsaver.toml.5.gz
  • share/applications/nightsaver-lock.desktop
  • share/applications/nightsaver.desktop
  • @dir etc/xdg/autostart
  • @dir etc/xdg
distinfo 69
FileSizeSHA256
rust/crates/anstream-1.0.0.crate28916824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d
rust/crates/anstyle-1.0.14.crate17787940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000
rust/crates/anstyle-parse-1.0.0.crate2204252ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e
rust/crates/anstyle-query-1.1.5.crate1026440c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc
rust/crates/anstyle-wincon-3.0.11.crate12638291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d
rust/crates/as-raw-xcb-connection-1.0.1.crate6460175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b
rust/crates/bitflags-2.13.2.crate516783ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06
rust/crates/cc-1.11.2.crate15069933ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45
rust/crates/cfg-if-1.0.5.crate95784e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600
rust/crates/cfg_aliases-0.2.2.crate6527f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527
rust/crates/clap-4.6.7.crate65831aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946
rust/crates/clap_builder-4.6.7.crate171709ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d
rust/crates/clap_derive-4.6.7.crate33942f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0
rust/crates/clap_lex-1.1.1.crate135721c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486
rust/crates/colorchoice-1.0.5.crate81871d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570
rust/crates/downcast-rs-1.2.1.crate1182175b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2
rust/crates/equivalent-1.0.3.crate749500d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826
rust/crates/errno-0.3.14.crate1200239cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb
rust/crates/find-msvc-tools-0.1.15.crate316341c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48
rust/crates/gethostname-1.1.0.crate98651bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8

Commit history 7

DateCommitCreditsLog message
7b0ecdd437 Lucas Holt x11/nightsaver: update to 0.6.0
0.6.0 adds an experimental Wayland backend: on wlroots compositors (sway, labwc) it blanks with layer-shell and locks with ext-session-lock-v1; KWin can blank but not lock; GNOME Wayland is unsupported. Mention Wayland in COMMENT and pkg-descr. The new wayland-* crates are added to Makefile.crates. They use the pure-Rust Wayland client, so there is no new libwayland dependency. AI-Assisted-by: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Holt <[email protected]>
7da2c0fb14 Lucas Holt x11/nightsaver: update to 0.5.0
New juggler, puppy and penguin patterns, plus security hardening: the daemon refuses an untrusted or symlinked nightsaver-auth helper, disables core dumps, refuses SUSPEND while locked, opens config and log files without following FIFOs, and throttles PAM attempts per user. Without DPMS the screen now goes black instead of staying lit. The crate set and installed files are unchanged from 0.4.0. AI-Assisted-by: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Holt <[email protected]>
57502aad41 Lucas Holt x11/nightsaver: update to 0.4.0
0.3.0 hardens the lock path after a security audit; 0.4.0 runs PAM in a separate short-lived helper, nightsaver-auth, so a hung or crashing PAM module only takes the helper down and the screen stays locked. Install the helper in libexec, where upstream expects it, and pin PREFIX in CARGO_ENV: build.rs bakes ${PREFIX}/libexec into the daemon and re-runs when PREFIX changes, so cargo install during fake must not see the staging prefix. The crate set is unchanged from 0.2.0. AI-Assisted-by: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Holt <[email protected]>
35a10ae038 Lucas Holt core/midnightbsd-desktop, x11-wm/midnight-wm, x11/nightsaver: switch screensaver from xscreensaver to nightsaver
- midnightbsd-desktop: depend on x11/nightsaver instead of x11/xscreensaver - midnight-wm: default-on XSCREENSAVER option now takes xscreensaver-command from x11/nightsaver (the wm invokes xscreensaver-command -lock/-deactivate and looks up xscreensaver in PATH) - nightsaver: install bin/xscreensaver and bin/xscreensaver-command compat symlinks so it is a real drop-in replacement; bump PORTREVISION Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]> AI-Assisted-by: Mistral Vibe <[email protected]> Signed-off-by: Lucas Holt <[email protected]>
95646e3d85 Lucas Holt x11/nightsaver: update to 0.2.0
Adds the "midnight" (MidnightBSD logo) and "cat" ASCII-art patterns. The crate set and the installed file list are unchanged. PORTREVISION is dropped because the version changes. Built, faked, packaged and tested (cargo test: 110 passed) on MidnightBSD 4.2 amd64. AI-Assisted-by: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Holt <[email protected]>

The latest 5 of 7 in the history this site was built from.