锁定屏幕软件:xlockmore

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

1
2
3
4
5
6
7
8
9
10
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吧)。
于是:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[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
更多
No Responses Post a comment

Leave a Reply

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS