锁定屏幕软件:xlockmore » 荒野无灯weblog

Keep It Simple, Stupid.

荒野无灯weblog

锁定屏幕软件:xlockmore

Xfce4 锁定屏幕用的是一个SHELL 脚本 xflock4 ,其内容如下:

if test x"`which xscreensaver-command 2>/dev/null`" != x""; then
    xscreensaver-command -lock 
elif test x"`which gnome-screensaver-command 2>/dev/null`" != x""; then
    gnome-screensaver-command --lock
elif test x"`which slock 2>/dev/null`" != x""; then
   slock
else
    xlock $*
fi
exit 0

我用的Archlinux ,默认情况下这些东东都没有安装的。

试了下xscreensaver,发现没有xlock 好用(xscreensaver 要启动了daemon 才能锁屏,因此我还是选择用xlockmore吧)。
于是:

[admin@HuangYe ~]$ sudo pacman -Rcn xscreensaver
checking dependencies...

Remove (1): xscreensaver-5.14-1 [19.89 MB]

Total Removed Size:   19.89 MB

Do you want to remove these packages? [Y/n] y
(1/1) removing xscreensaver                        [######################] 100%

[admin@HuangYe ~]$ sudo pacman -S xlockmore
resolving dependencies...
looking for inter-conflicts...

Targets (4): printproto-1.0.5-1 [0.01 MB]  libxp-1.0.1-2 [0.08 MB]
             lesstif-0.95.2-2 [2.03 MB]  xlockmore-5.33-1 [0.82 MB]

Total Download Size:    2.94 MB
Total Installed Size:   9.86 MB

Tagged in :

All Comments (0)
Gravatar image
No Comments