Page 1 of 9 123 ... LastLast
Results 1 to 10 of 90

Thread: Howto: Use Compiz Fusion or xwinwrap to draw your desktop background

  1. #1
    Join Date
    Mar 2007
    Location
    $HOME (Washington State)
    Beans
    4,590

    Howto: Use Compiz Fusion or xwinwrap to draw your desktop background

    PLEASE NOTE: I AM NOT LIABLE TO ANY DAMAGES THIS GUIDE MAY CAUSE.

    This guide will show you how to set compiz and xwinwrap to draw your background (no script required for xwinwrap!). The advantages of Compiz is that you can use a different background on each desktop, and you won't have problems with conky or other apps, as Nautilus isn't drawing the desktop. The disadvantage of Compiz is that you won't be able to use your desktop like in Nautilus (as a folder), and the background drawing capabilities are very basic (it will shrink/grow a background to the size of the screen you are using). xwinwrap will allow you to draw movies as a background, and will supposedly (I haven't tried it!) run the quake3 demo as a background.

    **NOTE! This gets rid of your desktop icons. At the moment, there is no way to get both. There could be a way if the compiz fusion patch for nautilus was updated to the 2.24 (or upcoming 2.26) version of nautilus, and adapted for XWinWrap. I am not much of a programmer, though, so this is beyond my knowledge. Could make an interesting project if you wanted to try it though.

    Getting Started
    To get started, you first have to stop nautilus from drawing the background. To do this, use Alt-F2 to go into a terminal and type gconf-editor, then go to /apps/nautilus/preferences, find the entry titled show_desktop, and disable it to "false". You can also use this in a terminal to do the same thing:
    Code:
    gconftool-2 --type bool --set /apps/nautilus/preferences/show_desktop false
    Now, you are ready to run whatever window manager you want on your desktop. If compiz is started, we can go on to the next step.

    Setting the background in Compiz
    To set the background, you will need CompizConfig Settings Manager. To install it, go into Synaptic, and search for compizconfig-settings-manager. After you install it, you should have a new entry in your preferences menu called Advanced Desktop Effects, as well as a new entry in Appearance > Visual Effects called "Custom" (if you are on Gutsy). Open up Advanced Desktop Effects, and find an entry called "Desktop Cube" (it should be near the top). Click on it, and then click on the Appearance tab. You should see a section called "Background Images", click the add button to add a background for each desktop. If you want to use a background on more than one desktop, you add it for each desktop you want it on. The order of the backgrounds is the order pf how it will be placed on the desktops. For example, if I have 4 desktops, the first background will be for the first desktop, the second background will be for the second desktop, etc. Add each background until all desktops have a background. Congrats, you are done!

    Setting the background using Xwinwrap:
    You can get xwinwrap from Trevino's repo here or click this link to download the package from the repo for Feisty (also works with Gutsy). 64 bit users can get an ISO from this post. Simply double click it in your favorite file manager and it will install. This howto will focus on the command line, but a GUI was written was written for it and is available here. To start, open up a terminal and type this in to start a screensaver playing as your desktop background (you must have xscreensaver installed, or this will not work; it is available in the ubuntu repositories):
    Code:
    xwinwrap -ni -argb -fs -s -st -sp -a -nf -- /usr/lib/xscreensaver/glmatrix -window-id WID
    To start a movie as your desktop background (you must have mplayer installed to use this; it is available in the ubuntu repositories):
    Code:
    xwinwrap -ni -o 0.6 -fs -s -st -sp -b -nf -- mplayer -wid WID -quiet movie.mpg
    To start the quake3 demo on the desktop (I have not tried this!), use:
    Code:
    xwinwrap -ni -argb -fs -s -st -sp -b -nf -- q3demo -window-id WID
    You have now used Xwinwrap on the desktop!

    I hope you enjoyed my howto.
    Last edited by smartboyathome; January 13th, 2009 at 12:22 AM.
    See my themes here! | Dont preach Linux, mention it | Make GNOME Themes
    I'm no longer on here. If you want to talk to me, go to noost.org.
    My DeviantArt | Linux user #461096 | Ubuntu user #15753

  2. #2
    nikoPSK is offline I Ubuntu, Therefore, I Am
    Join Date
    Sep 2007
    Location
    Victoria, BC
    Beans
    2,265
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Howto: Use Compiz Fusion or xwinwrap to draw your desktop background

    Thanks alot!

  3. #3
    Join Date
    Mar 2007
    Location
    $HOME (Washington State)
    Beans
    4,590

    Re: Howto: Use Compiz Fusion or xwinwrap to draw your desktop background

    Quote Originally Posted by nikoPSK View Post
    Thanks alot!
    You are welcome.
    See my themes here! | Dont preach Linux, mention it | Make GNOME Themes
    I'm no longer on here. If you want to talk to me, go to noost.org.
    My DeviantArt | Linux user #461096 | Ubuntu user #15753

  4. #4
    Join Date
    Oct 2007
    Beans
    47

    Re: Howto: Use Compiz Fusion or xwinwrap to draw your desktop background

    Could I add a video on my background using the "Background Image" in my Compiz? I'm on Gutsy. Or is it only limited to pictures.

  5. #5
    Join Date
    Mar 2007
    Location
    $HOME (Washington State)
    Beans
    4,590

    Re: Howto: Use Compiz Fusion or xwinwrap to draw your desktop background

    Quote Originally Posted by Khuezy View Post
    Could I add a video on my background using the "Background Image" in my Compiz? I'm on Gutsy. Or is it only limited to pictures.
    Its only limited to pictures. But there is xwinwrap for videos.
    See my themes here! | Dont preach Linux, mention it | Make GNOME Themes
    I'm no longer on here. If you want to talk to me, go to noost.org.
    My DeviantArt | Linux user #461096 | Ubuntu user #15753

  6. #6
    Join Date
    Oct 2007
    Beans
    47

    Re: Howto: Use Compiz Fusion or xwinwrap to draw your desktop background

    IC, thanks

  7. #7
    Join Date
    Oct 2007
    Beans
    47

    Re: Howto: Use Compiz Fusion or xwinwrap to draw your desktop background

    What is the size limit on the movie?

  8. #8
    Join Date
    Mar 2007
    Location
    $HOME (Washington State)
    Beans
    4,590

    Re: Howto: Use Compiz Fusion or xwinwrap to draw your desktop background

    Quote Originally Posted by Khuezy View Post
    What is the size limit on the movie?
    The size of your screen (the movie is running at fullscreen).
    See my themes here! | Dont preach Linux, mention it | Make GNOME Themes
    I'm no longer on here. If you want to talk to me, go to noost.org.
    My DeviantArt | Linux user #461096 | Ubuntu user #15753

  9. #9
    Join Date
    Oct 2007
    Beans
    47

    Re: Howto: Use Compiz Fusion or xwinwrap to draw your desktop background

    OK, I just saved the file and ran it. I don't know if I successfully installed it, does it have a program under applications or systems?

  10. #10
    Join Date
    Oct 2007
    Beans
    47

    Re: Howto: Use Compiz Fusion or xwinwrap to draw your desktop background

    Alright, I need help, I just downloaded a FLV file from youtube and renamed it movie.mpg.

    xwinwrap -ni -o 0.6 -fs -s -st -sp -b -nf -- mplayer -wid WID -quiet movie.mpg
    MPlayer 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
    CPU: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (Family: 6, Model: 15, Stepping: 6)
    CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled with runtime CPU detection.
    Creating config file: /home/khue/.mplayer/config
    Can't open joystick device /dev/input/js0: No such file or directory
    Can't init input joystick
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.

    Playing movie.mpg.
    File not found: 'movie.mpg'
    Failed to open movie.mpg.


    Exiting... (End of file)
    mplayer died, exit status 0
    Last edited by Khuezy; November 5th, 2007 at 11:11 PM.

Page 1 of 9 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •