I want start screen saver and lock screen from command line.
What is the new method into Gnome 43, since "gnome-screensaver-command -l" no longer exists?
Thanks
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
Dario
Il giorno gio, 23/03/2023 alle 17.13 +0100, Dario Lesca ha scritto:
I want start screen saver and lock screen from command line.
What is the new method into Gnome 43, since "gnome-screensaver- command -l" no longer exists?
Thanks
-- Dario Lesca (inviato dal mio Linux Fedora 37 Workstation)
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@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
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
On Fri, 2023-03-24 at 22:27 +0000, Patrick O'Callaghan wrote:
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.
Would those other desktop environments be using gnome-screensaver?
Il giorno sab, 25/03/2023 alle 12.57 +1030, Tim via users ha scritto:
Would those other desktop environments be using gnome-screensaver?
gnome-screensaver no longer exists
[lesca@dodo ~]$ dnf search gnome-screensaver ============================================= Summary delle corrispondenze: gnome-screensaver ============================================== budgie-screensaver.x86_64 : A fork of gnome-screensaver intended for use with Budgie Desktop
Dario
On Sat, 2023-03-25 at 12:57 +1030, Tim via users wrote:
On Fri, 2023-03-24 at 22:27 +0000, Patrick O'Callaghan wrote:
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.
Would those other desktop environments be using gnome-screensaver?
I guess what I'm asking is if there's a standard (XDG) way to invoke a screensaver.
poc
On Sat, Mar 25, 2023 at 10:58:28AM +0000, Patrick O'Callaghan wrote:
I guess what I'm asking is if there's a standard (XDG) way to invoke a screensaver.
Not sure if this is a "standard (XDG) way", but I'm running i3lock: https://i3wm.org/i3lock/
Simple and efficient. https://linuxcommandlibrary.com/man/i3lock
My environment:
% env | egrep -i 'n__desktop|session=|ssion_t|xdm' DESKTOP_SESSION=i3 DM_CONTROL=/run/xdmctl XDG_SESSION_TYPE=x11 XDM_MANAGED=method=classic
% loginctl session-status | grep Servic[e] Service: kdm; type x11; class user
HTH, Wolfgang
Hi,
I use slock. It is lightweight, and does not get in the way (as they like to say). It is part of the suckless tools (www.suckless.org).
Thanks, Ranjan
On Sun Mar26'23 03:15:32PM, Wolfgang Pfeiffer wrote:
From: Wolfgang Pfeiffer roto@gmx.net Date: Sun, 26 Mar 2023 15:15:32 +0200 To: Community support for Fedora users users@lists.fedoraproject.org Reply-To: Community support for Fedora users users@lists.fedoraproject.org Subject: Re: Fedora 37: Gnome 43: screensaver: How to lock screen from command line
On Sat, Mar 25, 2023 at 10:58:28AM +0000, Patrick O'Callaghan wrote:
I guess what I'm asking is if there's a standard (XDG) way to invoke a screensaver.
Not sure if this is a "standard (XDG) way", but I'm running i3lock: https://i3wm.org/i3lock/
Simple and efficient. https://linuxcommandlibrary.com/man/i3lock
My environment:
% env | egrep -i 'n__desktop|session=|ssion_t|xdm' DESKTOP_SESSION=i3 DM_CONTROL=/run/xdmctl XDG_SESSION_TYPE=x11 XDM_MANAGED=method=classic
% loginctl session-status | grep Servic[e] Service: kdm; type x11; class user
HTH, Wolfgang _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@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
On Sun, 2023-03-26 at 15:15 +0200, Wolfgang Pfeiffer wrote:
Not sure if this is a "standard (XDG) way", but I'm running i3lock: https://i3wm.org/i3lock/
Interesting, or should I say really weird, that it's *default* blank screen is white (according to that page). What a way to prematurely age a screen!
On Mon, 2023-03-27 at 10:07 +1030, Tim via users wrote:
On Sun, 2023-03-26 at 15:15 +0200, Wolfgang Pfeiffer wrote:
Not sure if this is a "standard (XDG) way", but I'm running i3lock: https://i3wm.org/i3lock/
Interesting, or should I say really weird, that it's *default* blank screen is white (according to that page). What a way to prematurely age a screen!
Maybe that's s subtle way to encourage you to change it :-)
poc
Il giorno dom, 26/03/2023 alle 15.15 +0200, Wolfgang Pfeiffer ha scritto:
Not sure if this is a "standard (XDG) way", but I'm running i3lock: https://i3wm.org/i3lock/
Simple and efficient. https://linuxcommandlibrary.com/man/i3lock
My environment:
% env | egrep -i 'n__desktop|session=|ssion_t|xdm' DESKTOP_SESSION=i3 DM_CONTROL=/run/xdmctl XDG_SESSION_TYPE=x11 XDM_MANAGED=method=classic
% loginctl session-status | grep Servic[e] Service: kdm; type x11; class user
Yes, i3lock and slock start a lock screen.
But not start the standard Gnome lock screen.
All other D.E. have their own screen locker, not Gnome, This is a strange thing.
Now I have wrote a shell script with the dbus-send previous command inside that do this job
Thanks
On Sat, Mar 25, 2023 at 3:58 AM Patrick O'Callaghan pocallaghan@gmail.com wrote:
On Sat, 2023-03-25 at 12:57 +1030, Tim via users wrote:
On Fri, 2023-03-24 at 22:27 +0000, Patrick O'Callaghan wrote:
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.
Would those other desktop environments be using gnome-screensaver?
I guess what I'm asking is if there's a standard (XDG) way to invoke a screensaver.
$ loginctl lock-session
On Mon, 2023-03-27 at 21:48 -0700, T.C. Hollingsworth wrote:
On Sat, Mar 25, 2023 at 3:58 AM Patrick O'Callaghan pocallaghan@gmail.com wrote:
On Sat, 2023-03-25 at 12:57 +1030, Tim via users wrote:
On Fri, 2023-03-24 at 22:27 +0000, Patrick O'Callaghan wrote:
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.
Would those other desktop environments be using gnome- screensaver?
I guess what I'm asking is if there's a standard (XDG) way to invoke a screensaver.
$ loginctl lock-session
Not quite the same. A screensaver won't necessarily lock the session.
poc
Il giorno ven, 24/03/2023 alle 22.27 +0000, Patrick O'Callaghan ha scritto:
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.
I'm looking for a gnome solution and what i found it's the only existing one.
Other desktops each have their own screensaver manager[1]
Dario
[1] [lesca@dodo ~]$ dnf search screensaver Ultima verifica della scadenza dei metadati: 0:00:35 fa il sab 25 mar 2023, 10:09:08. ============================================= Name & Summary delle corrispondenze: screensaver ============================================= budgie-screensaver.x86_64 : A fork of gnome-screensaver intended for use with Budgie Desktop cinnamon-screensaver.x86_64 : Cinnamon Screensaver deepin-screensaver.x86_64 : Screensaver Tool deepin-screensaver-data.noarch : Screensaver data mate-screensaver.i686 : MATE Screensaver mate-screensaver.x86_64 : MATE Screensaver mate-screensaver-devel.i686 : Development files for mate-screensaver mate-screensaver-devel.x86_64 : Development files for mate-screensaver qstars-xscreensaver.x86_64 : XScreenSaver support for qstars rss-glx-xscreensaver.x86_64 : Really Slick Screensavers tempest-xscreensaver.x86_64 : XScreenSaver support for tempest xfce4-screensaver.x86_64 : Screensaver application for Xfce Desktop xmountains-xscreensaver.noarch : XScreenSaver integration support xscreensaver-base.x86_64 : A minimal installation of xscreensaver xscreensaver-extras.x86_64 : An enhanced set of screensavers xscreensaver-extras-base.x86_64 : A base package for screensavers xscreensaver-extras-gss.x86_64 : Desktop files of extras for other screensaver xscreensaver-gl-base.x86_64 : A base package for screensavers that require OpenGL xscreensaver-gl-extras.x86_64 : An enhanced set of screensavers that require OpenGL xscreensaver-gl-extras-gss.x86_64 : Desktop files of gl-extras for other screensaver