
Some people plan their life out and look back at the wealth they've had. It's been a long time since I've used xscreensaver so I'm not sure of the layout of it's preferences file. It may be as simple as putting the word 'programs' on a line with your line underneath, but they might be other ways of indicating the sections. xscreensaver' to get the layout of the file to find the proper way to indicate the 'programs' section. I do not have xscreensaver installed at the present time as this is a new installation, but pull up a terminal and type 'man. If it does not exist in your home directory just create it by using a text editor and putting the line you indicate inside it and saving it in the top level (root) of your home directory, and be sure not to forget the leading period in the filename. The leading period indicates that it is a hidden file so you have to tell your file manager to view hidden files before you will be able to see it. 'xscreensaver' is the actual program file which is in /usr/bin/ but the '.xscreensaver' (note the leading period) is it's preferencces file located in your home directory. More info: How do I configure xscreensaver to use the GNOME lockscreen on Ubuntu 14.I see this is a fairly old post but it went unanswered. Or in shortcuts keyboard add the next command: xscreensaver-command -lock Then still under Brightness & Lock, set "Lock screen after:" to "Screen turns off". Set "Turn screen off when inactive for x minutes" to the same value as you set xscreensavers "Blank after x minutes" setting (e.g. Ensure "Lock screen after" is UNCHECKED.ģ)Finally, go to System Settings / Brightness & Lock. Set the "Blank after x minutes" to your desired amount (e.g. Add a new entry to launch the xscreensaver daemon on startup as xscreensaver -no-splash.Ģ)You need to bring up the xscreensaver config app. Follow the next steps:ġ) xscreensaver needs to be launched at startup via "Startup Applications" (hit Super and type "Startup"). Open your browser to get the path.Įxtra note: Try to use simple name of the videos without special characters.įinally to start with xscreensaver as default. Note: is the url of local file of the index.html. Webscreensaver -url "file:///usr/lib/xscreensaver/webnuxsaver/index.html" Open xscreensaver and search for webscreensaver then click in settings then advanced> Close xscreensaver and open ~/.xscreensaver file then edit ~/.xscreensaver: Then need to open xscreenserver to generate a ~/.xscreensaver file. Open index.html in browser to view everything is working fine and copy de path.Įxample path in browser: file:///usr/lib/xscreensaver/webnuxsaver/index.html cd videos python getArrayVideos.pyĮxample output: Ĭopy the output and add in index.html the array of videos in videosStorage variable.

run getArrayVideos.py inside of the videos folder to get all the array of videos.
Install xscreensaver ubuntu install#
Install xscreensaver sudo apt-get install xscreensaverĬlone webnuxsaver project wherever you want and add mp4/webm format in folder videos. Too old question but here is another way to play a list of videos as screensaver:
Install xscreensaver ubuntu code#
Once this code has been put in, use Ctrl+ S to save, and then change your screensaver to your new one. (ex: *.mp4) The -shuffle tag can also be applied to make the videos play in a random order. If you want to play all the videos in a folder, put something like $HOME/Videos/* You can also limit it to a specific file format by putting that format after the asterisk. "fileDirectory" can be made a single file, or a folder. On the top of the list, put in code similar to this: "Screensaver Name" mpv -really-quiet -no-audio -no-stop-screensaver -loop=inf -fs -wid=$XSCREENSAVER_WINDOW $HOME/fileDirectory Scroll down to the part of the code that says "programs". Go into Terminal, and type gedit ~/.xscreensaver. Mpv can be installed by typing sudo apt-get install mpv. Xscreensaver can be installed by typing sudo apt-get install xscreensaver. There are some really complicated suggestions on here, but making a video your screensaver is really easy when using xscreensaver and mpv.
