researchable-screensaver

Researchable logo animation as screensaver and lock screen for niri, Hyprland and Sway (Arch + NixOS)

Active Pure Nim score 65/100 · last commit 2026-11-01 · 1 stars · tests present · no docs generated

Summary

Latest Version Unknown
License Unknown
CI Status Failing
Stars 1
Forks 1
Open Issues 0
Last Commit 2026-11-01
Downloads 0
Last Indexed 2026-11-24 09:10

Installation

nimble install researchable-screensaver
choosenim install researchable-screensaver
git clone https://gitlab.com/y.kamsma/researchable-screensaver

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
researchable-screensaver ✓ ✓ ✓ - - - - - - -

README

Researchable screensaver

English | Nederlands

The Researchable logo as an animated screensaver and on your lock screen, for Linux laptops running niri, Hyprland or Sway. Inspired by the Omarchy screensaver.

Preview

  • Screensaver: after a while without input, the logo plays with a random effect (37 effects: matrix, fireworks, thunderstorm, decrypt, ...). Any key or mouse movement closes it.
  • Lock screen: the same animation on your lock screen, on every monitor. Just start typing your password.
  • Scales to fit: the logo is drawn at the right size for each screen, from a small laptop to an ultrawide.

A few of the effects

Matrix Decrypt
Matrix Decrypt
Beams Thunderstorm
Beams Thunderstorm
Synthgrid Blackhole
Synthgrid Blackhole

Plus 31 more, such as fireworks, rings, swarm, smoke and vhstape. The screensaver picks one at random each round. The GIFs play at 1.5× speed.

Works on

Setup Status
Arch / CachyOS + niri Tested
Arch + Hyprland or Sway Supported, not tested yet
NixOS (niri, Hyprland, Sway) Via the flake, not tested yet
GNOME, KDE Doesn't work: they don't support this kind of lock screen

Installing on Arch / CachyOS

git clone https://gitlab.com/y.kamsma/researchable-screensaver.git
cd researchable-screensaver
./install.sh

The installer:

  1. installs the required packages (swayidle, alacritty, imagemagick, ... from the Arch repos; swaylock-plugin, windowtolayer and ttfx from the AUR via paru or yay);
  2. puts the scripts in ~/.local/bin and the logo files in ~/.local/share/researchable-screensaver;
  3. if you use DankMaterialShell, asks whether DMS should use this lock screen from now on (with a backup of your DMS settings);
  4. starts the systemd user service researchable-idle.

After that, add a keyboard shortcut for the lock screen to your compositor config. There are examples in snippets/ for niri, Hyprland and Sway. If you use DMS and answered "yes" in the installer, your existing DMS lock shortcut already works.

Try it out:

researchable-screensaver launch
researchable-lock

Installing on NixOS

Add the flake to your system config:

{
  inputs.researchable-screensaver.url = "git+https://gitlab.com/y.kamsma/researchable-screensaver.git";

  outputs = { nixpkgs, researchable-screensaver, ... }: {
    nixosConfigurations.<hostname> = nixpkgs.lib.nixosSystem {
      modules = [
        researchable-screensaver.nixosModules.default
        {
          services.researchable-screensaver = {
            enable = true;
            screensaverTimeout = 30;  # seconds, 0 = never
            lockTimeout = 300;        # seconds, 0 = never
            lockBeforeSleep = true;   # false if your shell (e.g. DMS) already does this
          };
        }
      ];
    };
  };
}

The module installs everything, creates the PAM service for the lock screen and starts the idle service with your session. Add the lock shortcut to your compositor config yourself (see snippets/, using researchable-lock instead of the ~/.local/bin path).

The Nix flake hasn't been tested on a real NixOS machine yet. If something doesn't work, let us know or send a fix.

Settings

The timeouts live in ~/.config/researchable-screensaver/config:

SCREENSAVER_TIMEOUT=30    # seconds without input before the screensaver starts (0 = never)
LOCK_TIMEOUT=300          # seconds without input before the screen locks (0 = never)
LOCK_BEFORE_SLEEP=1       # lock before suspend (0 if DMS already does this)

After changing something, restart the service:

systemctl --user restart researchable-idle

On NixOS you set these through the module options. If you do create a config file there, it takes precedence over the module options.

How it works

  • The animation comes from ttfx running in an Alacritty terminal. ttfx is the Rust port of terminaltexteffects (tte) that Omarchy switched to: the same effects, but a fraction of the CPU and memory of the Python version. Without ttfx the script falls back to tte (the Nix flake still uses it, since ttfx isn't in nixpkgs yet). The script picks a random effect each round; matrix and swarm are shortened, because by default they take 1 to 2 minutes.
  • With the screens off (DPMS) the animation stops until a screen comes back on, so a locked laptop with its screen off isn't kept awake drawing frames nobody sees.
  • The screensaver is an overlay layer (via windowtolayer) on every monitor, started by swayidle.
  • The lock screen is swaylock-plugin: a real, secure lock screen (the same ext-session-lock protocol as swaylock and DMS) that draws the animation as its background. Other windows can't appear on top of it and there's nothing to bypass.
  • The logo is converted from share/logo-source.png into block characters for each screen width, and cached in ~/.cache/researchable-screensaver.

Troubleshooting

  • Lock screen is black, without the animation: your screen is still securely locked and your password works as usual. Usually windowtolayer or alacritty is missing; check whether researchable-screensaver launch works.
  • Screensaver doesn't start: check that the service is running with systemctl --user status researchable-idle. On Hyprland or Sway without systemd integration you need the autostart line from snippets/.
  • Two screensavers or locks at once: are you already running hypridle or your own swayidle? Turn that off, or remove its lock rules.
  • Changed the logo? Replace share/logo-source.png (a PNG with a transparent background) and run ./install.sh again.

Uninstalling

./uninstall.sh

This removes the scripts and the service, and switches DMS back to its own lock screen. The installed packages stay.