#tetris #xlock #x11 #api-bindings #screenlock

tetromino-xlock-mode

An xlock "mode" using Tetromino and its auto-playing AI

3 releases

0.1.2 Sep 5, 2024
0.1.1 Aug 2, 2024
0.1.0 May 19, 2024

#356 in Unix APIs

Download history 2/week @ 2024-08-10 140/week @ 2024-08-31 16/week @ 2024-09-07 26/week @ 2024-09-14 10/week @ 2024-09-21 35/week @ 2024-09-28 3/week @ 2024-10-05

124 downloads per month

GPL-3.0-or-later

385KB
9K SLoC

tetromino-xlock-mode

tetromino-xlock-mode is an xlock(1) mode running tetromino (with auto-playing AI enabled) when the screen is locked.

Usage

To use the mode please make sure that your xlock is built with module support. tetromino-xlock-mode creates a module that you can install and which, subsequently, xlock can pick up and use.

To install the module, use cargo build --release to build it and then install the binary:

install --no-target-directory \
  target/release/libtetromino_xlock_mode.so \
  /usr/local/lib/X11/xlock/modules/tetromino.xlk

The xlock module path may differ on your system. Path such as /usr/lib/X11/xlock/modules/ have also been seen.

To use the lock screen mode, use xlock -mode tetromino. Note that you may have to regenerate xlock bindings and redo the above steps if your version of the program has changed its ABI compared to the shipped bindings. Refer to the tetromino-xlock-bindings README for details.

Dependencies

~8–26MB
~378K SLoC