From 90717ba0143187dccd366c2677b36ae0536aace9 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Fri, 1 Nov 2024 21:48:43 -0400 Subject: [PATCH] fix(agsV2): allow messages to lock config --- nixosModules/ags-v2/config/configurations/lock.ts | 4 ++++ nixosModules/ags-v2/packages.nix | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nixosModules/ags-v2/config/configurations/lock.ts b/nixosModules/ags-v2/config/configurations/lock.ts index 63e8acf7..a551efb4 100644 --- a/nixosModules/ags-v2/config/configurations/lock.ts +++ b/nixosModules/ags-v2/config/configurations/lock.ts @@ -10,6 +10,10 @@ export default async() => { css: style, instanceName: 'lock', + requestHandler(js, res) { + App.eval(js).then(res).catch(res); + }, + main: () => { Lockscreen(); }, diff --git a/nixosModules/ags-v2/packages.nix b/nixosModules/ags-v2/packages.nix index c25b555d..4735cbbb 100644 --- a/nixosModules/ags-v2/packages.nix +++ b/nixosModules/ags-v2/packages.nix @@ -36,7 +36,7 @@ name = "lock"; text = '' export CONF="lock" - exec ${agsFull}/bin/ags --config ${fullConfPath} "$@" + exec ${agsFull}/bin/ags --config ${fullConfPath} -i lock "$@" ''; };