Skip to content

锁定屏幕软件:xlockmore

2011 五月 28
by 荒野无灯

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

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=4509

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

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

Subscribe to this comment feed via RSS