PDA

View Full Version : xwinwrap - loop movie as wallpaper


yodo
November 26th, 2007, 05:58 PM
Hi there,
I'am trying to configure an animated desktop. I run the movies with that command: xwinwrap -ni -fs -s -st -sp -b -nf -- mplayer -wid WID -nosound *movie* -loop 0
The movie works, but I still have two big problems:

1) Every time mplayer starts to repeat the short movie clip, the desktop becomes black. Its only for a very short moment (~1/4 second), but its still disturbing. Of course I could edit the video (make it longer), so that mplayer only needs to start a new movie once in a hour. But that file would be too big.

Is there any way to get rid of this few black frames? For example a movie player that is able to start the new video before the current ends.
If you are wondering why I added the "-loop 0" option at the very end - I read in the internet, that this decreases the black frames before the video is repeated.
Don't know why - it's true...

2) How can I set the xwinwrap wallpaper to the background? I already added the "-b" option, but it still is not enough. If I open a new window, it starts behind the xwinwrap wallpaper. When there is already a window in front of xwinwrap, the new one opens in front of that window. (-> and in front of xwinwrap).

I thought about using the Window Rules in ccsm, but how exactly do I enter xwinwrap there?
Isn't the window-id defined in the xwinwrap start-command? (-wid WID). But that is not working.

Hope someone can help. :)
greetings,
yodo

plun
November 26th, 2007, 07:48 PM
FWIW.....;)

I am using Giblets Xwinwrap GUI (his "boring meetings project" :p)

http://forum.beryl-project.org/viewtopic.php?f=38&t=3488&st=0&sk=t&sd=a

(download on page 5, last message)

The black frames is better with this app but I cannot figure out how to make it perfect. A lot of discussions in above thread.

With the terminal and xprop you can identify the Xwinwrap window

yodo
November 26th, 2007, 08:02 PM
Thanks, but xprop ignores the xwinwrap window and gives this output:
johannes@omega:~$ xprop
_NET_WM_USER_TIME(CARDINAL) = 2106199398
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
_NET_STARTUP_ID(UTF8_STRING) = 0x30
_NET_WM_DESKTOP(CARDINAL) = 4294967295
_NET_WM_STATE(ATOM) = _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_SKIP_PAGER, _NET_WM_STATE_BELOW
XdndAware(ATOM) = ATOM
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INF O) = 0x6c, 0x0, 0x5, 0xb7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x73, 0xb7, 0x10, 0x0, 0x0, 0x0
_NET_WM_NAME(UTF8_STRING) = 0x4b, 0x44, 0x45, 0x20, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70
WM_CLIENT_LEADER(WINDOW): window id # 0x1400002
WM_WINDOW_ROLE(STRING) = "desktop"
_NET_WM_PID(CARDINAL) = 6619
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DESKTOP
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING
WM_NAME(STRING) = "KDE Desktop"
WM_LOCALE_NAME(STRING) = "de_DE.UTF-8"
WM_CLASS(STRING) = "kdesktop", "Kdesktop"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
window id # of group leader: 0x1400002
WM_NORMAL_HINTS(WM_SIZE_HINTS):
user specified location: 0, 0
program specified location: 0, 0
user specified size: 1280 by 1024
program specified size: 1280 by 1024
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "omega"
johannes@omega:~$

yodo
November 27th, 2007, 07:08 PM
When I start xwinwrap without -fs xprop notices the window.
johannes@omega:~$ xprop
_COMPIZ_WM_WINDOW_BLUR_DECOR(INTEGER) = 4, 0, 5, -8, -22, 6, 8, 0, 9, -8, 0, 10, 8, 8, 5, -8, 0, 9, 0, 0, 6, 0, 0, 10, 8, 0
_NET_WINDOW_DECOR(INTEGER) = 20070319, 46145202, 8, 8, 22, 8, 0, 0, 22, 0, 0, 0, 589909, -20, -31, 0, 0, 20, 31, 0, 0, 594021, 0, -31, 0, 0, 512, 31, 20, 0, 589926, 0, -31, 20, 0, 20, 31, 532, 0, 589977, -20, 0, 0, 22, 20, 23, 0, 39, 594089, 0, 0, 0, 22, 512, 23, 20, 39, 589994, 0, 0, 20, 22, 20, 23, 532, 39, 600213, -20, 0, 0, 0, 20, 8, 0, 31, 600230, 0, 0, 20, 0, 20, 8, 532, 31
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_FRAME_EXTENTS(CARDINAL) = 8, 8, 22, 8
_NET_FRAME_WINDOW(WINDOW): window id # 0x2403ce9
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_STICK, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
_NET_WM_STATE(ATOM) = _NET_WM_STATE_STICKY, _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_SKIP_PAGER, _NET_WM_STATE_BELOW
WM_LOCALE_NAME(STRING) = "C"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: False
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified size: 512 by 384
WM_CLIENT_MACHINE(STRING) = "omega"
WM_COMMAND(STRING) = { "xwinwrap", "-argb", "-s", "-st", "-sp", "-b", "-nf", "--", "/usr/lib/xscreensaver/glmatrix", "-window-id", "WID", "-speed", "0.4" }
johannes@omega:~$

But which part of the output can be used to force xwinwrap to background with ccsm? (If there is one...)

yodo
December 5th, 2007, 07:56 PM
Doesn't anyone know?