It also can turn off screen using DPMS by option -d (or -dpms), so there is no need to use separate xset command with it. i3lock can fork, so there is no need to run it in background by "&" after the command. Please note, that the script features i3lock as yet another alternative locker utility. That script uses command pid to tell, if gnome-screensaver is running. I made a sibling script lxlock for LXDE or Lubuntu (but it is not in use officially, at least yet): I think it would be better to use pid command to check, if the daemon is running.īy the way, command xlock (or package xlockmore) is no longer available in repositories of Ubuntu 13.04 and later. It is only run by the xfsm-logout-plugin in order to lock the screen before suspending or hibernating which is done for security reasons.Įither one of the above scripts addresses the bug in the original script which causes the wrong screensaver command to be run resulting in no locking.Ĭomment 37 Jarno Suni 12:00:55 CET Well, even the lastest version of the script does not check, if gnome-screensaver is running: running "gnome-screensaver-command -lock" will start gnome-screensaver daemon, if it is not running already, instead of exiting with an error. This script has nothing to do with power saving. > And isn't monitor power control done by xfce4-power-manager even without a That is really beyond the scope of this bug. > session so that I could return to the original session, though.) Nobody forces you to run a screensaver with a daemon. (I miss ability to switch user and run a guest But in my system I think I don't need a screen > That is elegant except that there are no xxscreensaver-command or > the 'which' bashism and the unecessary test and subshell). > portable, SUSv3 compliant variant which should work how you want it (it avoids > implemented in a handful of lines in a shellscript. > be treated as a public interface when something trivial as this can be > Hm, the current script doesn't do that either and I don't see why this should Your script seems to work even with that kind of lock_cmd, but displays output you tried to prevent, if slock does not exist.Ĭomment 31 Guido Berhoerster 14:48:17 CET Created attachment 3234Īlternative variant executing xlock, slock asynchronously To make xflock4 terminate after it has locked screen, slock should be run in background by "slock &". If slock exists and is used, the proposed xflock4 script does not terminate until screen is unlocked. (Besides, "which" is a bashism, the portable SUSv3 > Why would you want to do that? If a command doesn't exist the for loop will As for the remaining screen lockers their existence could be checked by I only checked the version of "gnome" package. > Both Ubuntu 10.04 and 10.10 ship gnome-screensaver 2.30.0. > Well that is simply because Ubuntu 10.04 comes with GNOME 2.30 and not 2.28. > 2.28 (in ubuntu 10.04), but I think your script handles the bug relatively > gnome-screensaver-command -lock starts gnome-screensaver daemon also in GNOME New live/install media of the stable line can be downloaded from the download/stable page.Comment 24 Jarno Suni 14:19:40 CET (In reply to comment #23) – i686: LXQt, MinimalGUI (Openbox) & MinimalCLI (text mode) – amd64: LXQt, KDE Plasma, Xfce, MinimalGUI (Openbox) & MinimalCLI (text mode) Sparky 6 is available in the following flavours: System reinstallation is not required if you have Sparky 6.x installed, make full system upgrade with the following command: – Firefox 91.9.0.0esr (100.0 Mozilla build can be installed from Sparky repos as the ‘firefox-sparky’ package, but it uses a new user profile so your bookmarks, passwords, settings have to be synchronized from the Mozilla account PC only) – PC: Linux kernel 5.10.106 (5.16.12 can be installed from Debian backports 5.17.5~sparky can be installed from Sparky unstable repos) – system upgraded from Debian & Sparky stable repos as of May 5, 2022 Sparky 6 is based on and fully compatible with Debian 11 “Bullseye”. It is a quarterly updated point release of Sparky 6 “Po Tolo” of the stable line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |