![]() The time value should be the number of seconds the script should wait when no input is detected before starting to show the slideshow. To start this script a command similar to the following should be used: bash path/to/script/screensaver.sh time ![]() The folder can also contain folders (or links to folders) containing the images you want the screensaver to show. The script should be downloaded into a folder containing images (or links to the images) you want to appear in the slide show. I have made two scripts which use the these tools, the first of these simply starts a screensaver after a period of inactivity: screensaver.sh With both of these tools installed a simple bash script can be used to start showing a slideshow of images when a certain period of inactivity has taken place. This can be installed with the following command: sudo apt-get install xprintidle The script also uses xprintidle, another simple tool – this time for identifying the time since the last input from a user. You can install it with this command: sudo apt-get install feh The script uses feh, a simple tool for displaying images. (If you’re interested in using xscreensaver there is a script that you can use to stop it running while a full-screen application has focus.) All I wanted was a simple slideshow to show off my pictures when I left my PC alone, so to avoid the workarounds needed for xscreensaver to work properly with the most recent Ubuntu I made my own bash script for it instead. However, if you use the ever-popular caffeine to stop screensavers and lock-screens kicking in when viewing full screen videos or games you might run into some problems. This was the route I previously took with Ubuntu, configuring the webcollage screensaver to point to a local directory for showing images from. Xscreensaver may seem like the obvious route to more interesting screensavers on Ubuntu. However, the alternatives may be overkill if you just want a simple slideshow screensaver, so here’s bash script that does just that. Gnome-screensaver’s blank screen can be a bit of a bore, luckily there are alternatives such as xscreensaver. Those of you on recent versions of Ubuntu may find the default screensaver slightly lacking.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |