From e814360daa0227124b83da1d83c4925f1f4665a3 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 10 May 2024 08:41:29 +0200 Subject: detect backend availability ahead of time and allow user function --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 584f9ff..af812ee 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,10 @@ multiple vis processes. By default, the lockfiles will be placed in `${XDG_STATE_HOME:-${HOME}/.local/state}/vis/locks/`. -The `directory` member of the module table can be used to define the lock file -location. +* The `directory` member of the module table can be used to define the lock file location. +* The `backend` member can be used to specify one of the supported backends: `whiptail` or `vis-menu`. + Additionally, it can provide a custom backend function with the following signature `f(filename, lockfilename, lockpid) => bool, ['a', 'e', 'q']`. + ```lua local lockfiles = require('plugins/vis-lockfiles') -- cgit v1.2.3