refactor(greetd): change some ags code
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-08 14:24:33 -05:00
parent 168191e3a3
commit 5c64b5bd42

View file

@ -107,11 +107,12 @@ const password = Entry({
password.text || '',
'Hyprland',
).catch((err) => {
response.label = JSON.stringify(err);
).catch((error) => {
response.label = JSON.stringify(error);
});
},
});
}).on('realize', (entry) => entry.grab_focus());
const response = Label();
@ -119,13 +120,7 @@ const win = Window({
name: 'greeter',
css: 'background-color: transparent;',
anchor: ['top', 'left', 'right', 'bottom'],
keymode: 'exclusive',
setup: () => {
idle(() => {
password.grab_focus();
});
},
keymode: 'on-demand',
child: Box({
vertical: true,