On Fri, 2023-03-24 at 21:06 +0100, Dario Lesca wrote:
> Found it, by myself
> 
> https://notes.zerodogg.org/GNOME/lock-unlock-cli/
> 
> # Lock
> dbus-send --session --dest=org.gnome.ScreenSaver --type=method_call -
> -print-reply --reply-timeout=20000 /org/gnome/ScreenSaver
> org.gnome.ScreenSaver.SetActive boolean:true
> 
> # Unlock
> dbus-send --session --dest=org.gnome.ScreenSaver --type=method_call -
> -print-reply --reply-timeout=20000 /org/gnome/ScreenSaver
> org.gnome.ScreenSaver.SetActive boolean:false
> 

This appears to be Gnome-specific. Presumably equivalents exist for
those of us who use other DEs, but it would be interesting if a generic
solution existed.

poc
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to