new service: input-leap[cs], replaces barrier[cs]

This commit is contained in:
crater2150 2025-08-04 21:40:17 +02:00
parent a246ab843d
commit ef0d548bf1
9 changed files with 14 additions and 11 deletions

15
input-leapc/run Executable file
View file

@ -0,0 +1,15 @@
#!/bin/zsh
source ${0:a:h:h}/import-env.zsh
import-env awesome || exit 1
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
SERVER_FILE=${XDG_CONFIG_HOME}/InputLeap/server
if [[ ! -e $SERVER_FILE ]] then
<<-ERROR
Service requires configuration!
Create \`${SERVER_FILE}\` containing the target server name
ERROR
exit 1
fi
exec 2>&1
exec input-leapc -f $(<${SERVER_FILE})