Replies: 2 comments 5 replies
-
|
This should not work. From the ext-session-lock protocol doc:
So I would expect running this would result in a black screen. I tested this and it seems to work with Hyprland, so i assume this protocol is not correctly implemented there. On sway i get the expected black screen. |
Beta Was this translation helpful? Give feedback.
-
|
lockscreens can now be properly implemened in ags using this: gtk-session-lock (gtk-session-lock-git in AUR) import Lock from "gi://GtkSessionLock";
import Gdk from "gi://Gdk?version=3.0";
import Gtk from "gi://Gtk?version=3.0";
//init session lock
const lock = Lock.prepare_lock();
//lock
lock.lock_lock();
//create a window for each monitor
const display = Gdk.Display.get_default();
for (let m = 0; m < display?.get_n_monitors(); m++) {
const monitor = display?.get_monitor(m);
const win = new Gtk.Window({ ... });
lock.new_surface(win, monitor);
win.show_all();
}
//to unlock
lock.unlock_and_destroy();
//only if ags should be terminated after unlock
Gdk.Display.get_default()?.sync();
App.quit() |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've made a script for using ext-session-lock on lockscreen window. It's as follows:
And then, I've made some additions to Aylur's lockscreen config:
Here's how it works;
If you activate the lockscreen, the screen will be shown and session will be locked. When you make a success auth, then screen will disappear and session lock will be removed.
Simple is that :)
Beta Was this translation helpful? Give feedback.
All reactions