Results 1 to 2 of 2

Thread: Custom xscreensaver

  1. #1
    Join Date
    Mar 2009
    Beans
    70
    Distro
    Ubuntu 10.04 Lucid Lynx

    Custom xscreensaver

    Following this guide found at http://ubuntuforums.org/showthread.php?t=956024

    Quote Originally Posted by cyfur01 View Post
    One possible hack is to create a psuedo-screensaver that will do the logout action. It's not perfect, but the following will automatically log me out of my session.

    1. Create a script to do the logout:
    Code:
    cd /usr/lib/xscreensaver
    sudo touch logout
    sudo chmod +x logout
    sudo gedit logout
    Paste:
    Code:
    #! /bin/bash
    # Mimics the normal logout command
    gnome-session-save --kill --silent
    2. Add this to the gnome-screensaver list:
    Code:
    cd /usr/share/applications/screensavers
    sudo gedit logout.desktop
    Paste:
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=LogOut
    Comment=Logs out the user
    TryExec=antinspect
    Exec=logout
    StartupNotify=false
    Terminal=false
    Type=Application
    Categories=Screensaver
    As you can see, I copied this from the antinspect screensaver... works as is, though you could clean up the TryExec line probably.

    3. Set this as the screensaver like you normally would, and wait for it to take effect.


    Note:
    Found one flaw with this... every time I go to change it from the usual GUI menu, it just logs me out
    You'll have to edit the preferences from the gconf-editor program, or switch the logout script to non-executable (chmod -x /usr/lib/xscreensavers/logout) before going to change the preferences and set it back to executable afterwards.
    I can get a custom screen saver to appear in the gnome-screensaver list of available screensavers.. but it does not appear in the xscreensaver-demo menu.. so I can't use my custom screen saver application in xscreensaver.

    Is there away to fix this in Ubuntu 10.04.3?

  2. #2
    Join Date
    Mar 2009
    Beans
    70
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Custom xscreensaver

    or can someone tell me how to get the idle time of the user using shell or python?

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
  •