refactor(greetd): change some ags code
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
168191e3a3
commit
5c64b5bd42
1 changed files with 5 additions and 10 deletions
|
@ -107,11 +107,12 @@ const password = Entry({
|
||||||
password.text || '',
|
password.text || '',
|
||||||
'Hyprland',
|
'Hyprland',
|
||||||
|
|
||||||
).catch((err) => {
|
).catch((error) => {
|
||||||
response.label = JSON.stringify(err);
|
response.label = JSON.stringify(error);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
|
||||||
|
}).on('realize', (entry) => entry.grab_focus());
|
||||||
|
|
||||||
const response = Label();
|
const response = Label();
|
||||||
|
|
||||||
|
@ -119,13 +120,7 @@ const win = Window({
|
||||||
name: 'greeter',
|
name: 'greeter',
|
||||||
css: 'background-color: transparent;',
|
css: 'background-color: transparent;',
|
||||||
anchor: ['top', 'left', 'right', 'bottom'],
|
anchor: ['top', 'left', 'right', 'bottom'],
|
||||||
keymode: 'exclusive',
|
keymode: 'on-demand',
|
||||||
|
|
||||||
setup: () => {
|
|
||||||
idle(() => {
|
|
||||||
password.grab_focus();
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
child: Box({
|
child: Box({
|
||||||
vertical: true,
|
vertical: true,
|
||||||
|
|
Loading…
Reference in a new issue