Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Where I can find the source code for fade out animation when the computer is inactive for x minutes?

I guess that it somewhere in /usr/share/gnome-shell/js/ui but I want to find the line.

enter image description here

Note - this question is NOT a duplicate of this:

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

I don't think you're looking in the right way. The respective effect of fade out is realised by gnome-screensaver. Now, you can check (with which gnome-screensaver in terminal) that you have installed on your system gnome-screensaver, but the problem is that this is the compiled version, so no sources on your system in this sense.

But, don't worry, you can download gnome-screensaver source package from Launchpad: https://launchpad.net/ubuntu/raring/+source/gnome-screensaver. The source code of fade out effect can be found in gs-fade.c and gs-fade.h files from src directory:

gs-fade.c

share|improve this answer
    
Please add how to download sources, compile them and install them on my system. Thanks! –  Ionică Bizău Jun 28 '13 at 6:01
    
@Johnツ Well, this is the direct link for download: launchpad.net/ubuntu/raring/+source/gnome-screensaver/… (you can find it in the link that I gave you in the answer). To install, follow this post: Installing applications from source –  Radu Rădeanu Jun 28 '13 at 6:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.