share
[Linux 技巧]把屏保设置为桌面 10+
![[Linux 技巧]把屏保设置为桌面 [Linux 技巧]把屏保设置为桌面 | Jandan.net](http://photo5.yupoo.com/20070915/010203_596021021_m.jpg)
你有没有梦想过:把《黑客帝国》中的那掉落的 0 和 1 作为桌面?难道桌面只能是死气沉沉的一张壁纸。
下面就来教大家在 Linux 中实现。适合 Gnome。
1、首先要关闭 Nautilus。它是用来绘制出桌面和图标用的。
gconftool-2 --type bool --set /apps/nautilus/preferences/show_desktop false
2、在桌面上启动屏保 glmatrix(模仿了《黑客帝国》中那个路人皆知的烂俗效果)
/usr/lib/xscreensaver/glmatrix -root
3、恭喜你。快看桌面!
4、可选步骤:如果你希望当你登录的时候屏保就会自动启动为桌面背景的话,创建这个文件:“~/.config/autostart/glmatrix.desktop”,里面的内容是:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=No name
Name[en_IN]=Desktop matrix
Exec=/usr/lib/xscreensaver/glmatrix -root
X-GNOME-Autostart-enabled=true
你可以点击这里去原文看看动态截图。
# sfufoet:在 Windows 中可以把 Flash 设置为桌面的。方法大家请搜索一下。好像视频也可以。屏保就没听说过啦。
p.s. 本帖算是煎蛋史上发布手段+技术含量最高的:手机当 MODEM + GPRS + 台式电脑 + FireFox + ScribeFire 写博扩展 + opera 打开煎蛋后台修改文章缩略名和加标签。嘿嘿~
强烈建议 yupoo 开发 wap 版。我的流量啊,哗哗哗全给了 yupoo ,因为我错误地上传了 gif 版。= =
update:读者 Evan 来拆台:
有个更好的程序可以得到这种效果,Nautilus不用关,桌面的图标也可显示,而且可以设置屏幕保护的透明度。这就是 xwinwrap 啦!ubuntu用户可以直接用 apt-get 装。
下面放个脚本:
#!/bin/bash
##
# Copyright : (C) 2007 cyberorg
# E-mail : cyberorg (at) cyberorg.info
# Modified by zhuqin
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#This is a script to run xscreensaver as animated background in Xgl
#Get xwinwrap before using this script
#
#-g = parse geometry
#-ni = no input
#-argb = argb visual
#-fs = full screen
#-s = sticky
#-st = skip taskbar
#-sp = skip pager
#-a = above
#-b = below
#-nf = no focus
#-o OPACITY
#
##
ARCH=`arch`
if [ $ARCH == "i686" ]; then
SAVERPATH=/usr/lib/xscreensaver
elif [ $ARCH == "x86_64" ]; then
SAVERPATH=/usr/lib64/xscreensaver
fi
while true; do
ls $SAVERPATH
echo "Select your cool background:"
read background
bg=$background
echo -n "Want to run in foreground? (y/n) "
read yn
case $yn in
y* | Y* ) xwinwrap -o 0.6 -ni -argb -fs -s -st -sp -a -nf -- $SAVERPATH/$bg -window-id WID; break ;;# -o后的数值从0到1,可自行修改
[nN]* ) xwinwrap -o 0.6 -ni -argb -fs -s -st -sp -b -nf -- $SAVERPATH/$bg -window-id WID -root; break ;;
q* ) exit ;;
* ) echo "unknown response. Asking again" ;;
esac
done
[原文链接]









2007.09.15 1:28 am
真是科学狂
2007.09.15 2:03 am
那CPU的占用率不是一班机器能承受的..........
2007.09.15 6:42 am
有个更好的程序可以得到这种效果,Nautilus不用关,桌面的图标也可显示,而且可以设置屏幕保护的透明度。这就是 xwinwrap 啦!ubuntu用户可以直接用 apt-get 装。
下面放个脚本:
#!/bin/bash
##
# Copyright : (C) 2007 cyberorg
# E-mail : cyberorg (at) cyberorg.info
# Modified by zhuqin
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#This is a script to run xscreensaver as animated background in Xgl
#Get xwinwrap before using this script
#
#-g = parse geometry
#-ni = no input
#-argb = argb visual
#-fs = full screen
#-s = sticky
#-st = skip taskbar
#-sp = skip pager
#-a = above
#-b = below
#-nf = no focus
#-o OPACITY
#
##
ARCH=`arch`
if [ $ARCH == "i686" ]; then
SAVERPATH=/usr/lib/xscreensaver
elif [ $ARCH == "x86_64" ]; then
SAVERPATH=/usr/lib64/xscreensaver
fi
while true; do
ls $SAVERPATH
echo "Select your cool background:"
read background
bg=$background
echo -n "Want to run in foreground? (y/n) "
read yn
case $yn in
y* | Y* ) xwinwrap -o 0.6 -ni -argb -fs -s -st -sp -a -nf -- $SAVERPATH/$bg -window-id WID; break ;;# -o后的数值从0到1,可自行修改
[nN]* ) xwinwrap -o 0.6 -ni -argb -fs -s -st -sp -b -nf -- $SAVERPATH/$bg -window-id WID -root; break ;;
q* ) exit ;;
* ) echo "unknown response. Asking again" ;;
esac
done
没错,我承认我是来拆台的 ==
2007.09.15 9:27 am
真高端~
最近偶的手机流量还用不完呢.
2007.09.15 9:30 am
没什么 可以说的
-.-
2007.09.15 10:45 am
桌面搞成这样会 眼花的
2007.09.15 6:21 pm
民工级别的电脑是跑不起来的吧
目前沉迷windows的某人飘过...
2007.09.15 7:31 pm
正在军训的黑客帝国迷在手机上飞过。
2007.09.15 10:15 pm
网页也可以当桌面 我曾经拿网页图片链接当工具栏 ;-D
2007.12.11 3:15 pm
又是gnome?
啥时候咱家小K也能炫一回呀?