打印

linux下的梦幻桌面——xwinwrap

linux下的梦幻桌面——xwinwrap

本文来自:DIY中文论坛forum.diy.net.my★ 转帖请注明出处! 作者:imapx2 您是第360个浏览者
论坛上看到了linux下的梦幻桌面——xwinwrap,
( L7 u8 g( F5 a关于什么Xwinwarp请看:http://forum.ubuntu.org.cn/viewtopic.php?t=39270
. h) p* \& k  f看了下,挻炫的, . O+ C4 s! Y7 O- X% \
64.bit装好后要改下coolbg 0 W: s* y, m5 K. h
代码:

0 @( A  T2 G, Csudo gedit /usr/bin/coolbg * ]3 e3 S: V4 _& h$ @5 Y

) K; I3 g$ x1 `  q- k* n0 _  ^0 r% E把里面的东西全删了换成下面:
. s; W' [# m1 p! J# F7 t
代码:
( k4 Y3 L! }! \: N. ]
#!/bin/bash
+ O' y0 u" @. r##
8 o8 {) ?3 M1 o  N8 F$ X+ T! x: W# Copyright : (C) 2007 cyberorg 1 T9 n9 o% e$ E9 H6 B
# E-mail    : cyberorg (at) cyberorg.info
, I/ e2 L* G1 q/ v# Modified by zhuqin
- u$ N& `; y  o, b7 h#
6 ~4 K' Z9 |* I# G8 U$ s# j# This program is free software; you can redistribute it and/or : Z# n, `1 W2 a) L; j' t8 s( V
# modify it under the terms of the GNU General Public License
- f( X7 m8 L$ J! p2 ^1 D# as published by the Free Software Foundation; either version 2 % M: _1 }1 [4 `* S
# of the License, or (at your option) any later version.
( P, b# [$ N  Z" V- }' }2 A2 n#
6 G9 C: v! e2 D" k# H' g1 o# This program is distributed in the hope that it will be useful,
! t# x) h! ]2 c, i. q' V5 q  Z# but WITHOUT ANY WARRANTY; without even the implied warranty of
8 b2 r* {/ a5 B% P# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
! s- X8 q3 @. X; O! M2 x# GNU General Public License for more details. 5 L  l! ]) o1 G$ N
# 7 N/ _  j9 Q8 z
#This is a script to run xscreensaver as animated background in Xgl 7 D, r$ ]0 F+ R4 r) }& Q2 T
#Get xwinwrap before using this script
6 }- B$ ^3 E( p) ^' Z, v; L! ^# 0 f7 t0 J) E5 [4 @# A1 ^/ p' j
#-g = parse geometry
+ r: e8 m% _; ^5 [; Z#-ni = no input
. J2 @! T) _6 h9 u$ W2 G5 J2 @#-argb = argb visual
3 c. C0 _+ _! S+ D8 D5 V. O( P: `6 A8 Y#-fs = full screen 3 J/ v/ u2 H2 A' H8 z. s
#-s = sticky
  h1 P# i; S; I9 q+ {#-st = skip taskbar * V  _8 l7 T5 r0 L1 w. w2 o* a8 U
#-sp = skip pager 5 u/ i. r8 D1 x
#-a = above . P. y1 ^/ h. h8 A5 u3 ^
#-b = below ) G3 J. [$ D' e/ c9 L  R
#-nf = no focus
; b" F9 C* a" l& k+ y#-o OPACITY
, R3 n" {% H! C8 l4 y9 _5 V#
7 b, f- l- d8 X3 o## 5 z# d9 T7 c4 }- ~( A
ARCH=`arch` & \; D& y) }0 t+ g- T/ w
#if [ $ARCH == "i686" ]; then
1 f$ X3 X0 a( `  O  U- J% s#SAVERPATH=/usr/lib/xscreensaver
( w9 v% x) `0 x#elif [ $ARCH == "x86_64" ]; then
+ Y& l! W2 o/ f; d% F+ K* dSAVERPATH=/usr/lib64/xscreensaver
" P& E- d; @+ Q: Z; S, f#fi " @+ }& i+ e) O4 g5 N( E
while true; do
: |1 c  B6 K" q8 y  l3 n8 ils $SAVERPATH
' \9 a: `$ F( Z: {8 f1 X" Xecho "Select your cool background:"
, ^. I. Z8 t# H8 n7 A- r1 r* Nread background 0 r; b! e( {& d9 W. _
bg=$background
7 f  M/ m; I! v' v4 y; Yecho -n "Want to run in foreground? (y/n) "
& L1 x9 m: g; b  yread yn + A# u2 u$ b0 }, N  s2 _6 |5 D4 P
case $yn in
3 q( p) }1 @7 c% C" v  A# iy* | Y* ) xwinwrap -o 0.6 -ni -argb -fs -s -st -sp -a -nf -- $SAVERPATH/$bg -window-id WID; break ;;# -o后的数值从0到1,可自行修改   s; d! h& R4 |% L
[nN]* ) xwinwrap -o 0.6 -ni -argb -fs -s -st -sp -b -nf -- $SAVERPATH/$bg -window-id WID -root; break ;;
8 A3 N. l& u+ N: J8 |, m; i7 tq* ) exit ;;
( v! a6 e9 Y: l% t# m* ) echo "unknown response. Asking again" ;; % c5 J1 K% D- W' `4 f. w
esac
6 }& r& @$ h4 B( g2 V& }done & `3 L; V/ P9 `; X
+ S8 r# S6 P$ U6 t
" y$ G% I! A2 a% z7 ?
我测试过的屏保例子,其它的在我这都用不了可能是显卡不行,GMA900的。。。。。 9 w/ s& W. A- ], |% ^
代码:
* v3 P: A5 t. a4 W9 }
Fuzzy Flakes: xwinwrap -o 0.3 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/fuzzyflakes -window-id WID -color black
0 W! ^8 D1 w$ [$ {
4 [. v) R* a* `% N  w/ w8 vRipples: xwinwrap -o 0.3 -ni -argb -fs -s -st -sp -b -nf -- /usr/lib/xscreensaver/ripples -window-id WID
: _( Q6 \8 Y0 i! V; m  o3 p; L0 W
其它的一些设置可以去这看看:http://forum.ubuntu.org.cn/viewtopic.php?t=39270
: K, D& D% J  p1 r" L# D! b! y6 |/ X! d$ F# t$ W, c; ?

/ A$ U* M( F! E4 W9 t, R7 ~3 v
# y3 u0 q4 E$ Z: d. Q; j- @9 W( I! M! q: q# A5 v
. l, Q4 m  N7 p: R) o

$ s5 g6 H% v3 p2 f
% @* r+ u' S  e, [6 Q1 u
, q( ~8 G/ M% \" b
xwinwrap.tar.bz2
描述:
; ^& O$ B' D9 e0 ^
' E- M7 o( w" W8 [
下载
文件名:xwinwrap.tar.bz2
文件大小:12.88 KB
下载过的:文件被下载或查看 16 次

TOP

回复 1# 的帖子

本文来自:DIY中文论坛forum.diy.net.my★ 转帖请注明出处! 作者:k.s.yong
谢谢楼主分享。。。。。。。。。

TOP

感谢楼主,辛苦了.

TOP



当前时区 GMT+8, 现在时间是 2008-12-3 02:27 AM
清除 Cookies - 联系我们 - DIY TECHNOLOGY ( DIY中文论坛 ) - Archiver - WAP - TOP - 界面风格