Screen saver There is an option that you

Screen saver There is an option that you can add when you run the X server to have a screen saver come on after a set number of minutes of idle time. Using the xset command, you can change that timeout value. (As with the background examples just shown, your desktop environment may take over control of the screensaver function.) There are different ways to initially set the screen saver timeout value when you start X. $ X -s 15 $ xinit — -s 15 serverargs=”-s 15″ In the first example, you simply run the X command with the -s 15 option to have the screen saver come on after 15 minutes of inactivity. If you run xinit, two dashes on the command line indicate that the next arguments are to be passed to the X server (in this case, -s 15 is passed). The last example isn t a command at all. It is a line in the startx command. As the root user, edit the startx command and add -s 15 to the serverargs line between the quotes. This causes the -s 15 argument to be passed to the server. To change the screen saver timeout value after X has started, use the xset command as follows: $ xset s 15 You can also add the xset command line to an initialization file (such as .xinitrc), to have it set the timeout value each time the desktop starts up. If you simply want the screen saver off, type xset s off. To turn it on, type xset s on. To have the screen be blanked when it times out, type xset s blank. Tip You now know how to set your screen saver for the desktop. But what if you want to turn off the screen saver when you are in text mode? Just type setterm -blank 0. The screen saver will never come on. X Application resources Most X applications support some, or all, of the standard X options (geometry, foreground, background, etc.), as well as some options that are specific to the application. Many of them start with a set of default options defined. You can override these default options in several different ways. There are separate resource files for each X application (that chooses to create one) in the /usr/lib/X11/app-defaults directory. Each file is named after the X client it represents, with the exception that the first one or two characters are capitalized. Although it is not recommended, you could edit these files and change the resources. In that way everyone who starts X on your system will start with the same set of resources set for their applications. The preferred way to change resources for your X clients is to copy the resource file you want to change to your home directory. Then make changes and additions to it. When you start the X client that is associated with that file, the resources are incorporated into the client. Even if there is no default resource file for an X client, you can create one. For example, I created a $HOME/XEyes file and added the following lines to it: XEyes*title: My Eyes XEyes*foreground: Red XEyes*background: Yellow When I ran the xeyes command, the title “My Eyes” appeared on the task bar for the application. The eyeballs were colored yellow and the pupils were red. Instead of using individual files, you can add X resources associated with any client into your .Xresources or .Xdefaults file. When you make a change to those files, you can immediately merge those changes into the current desktop as follows:
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.

Leave a Reply