Slideshow into a ScreenSaver? SOLVED -- but Improving
Posted: Sun 02 Sep 2018, 01:00
Hi All,
Edit: Mike Walsh has published versions which can be found from this post, http://murga-linux.com/puppy/viewtopic. ... 66#1003866 but see his post immediately after it for adjustments you may want to make.
Thanks to the following, in no particular order Mike Walsh, musher0, MochiMoppel, fredx181, and anyone I failed to identify including the many who have provided tricks. tips, documentation and advise on employing Yad.
Coders needed. But, I think this may be easy even if above my paygrade.
Background: Recently tjosurplus queried about a screensaver for wary. Watchdog responded "I do not know about screensaver. For slideshow in wary I should use gpicview-0.2.3-w5.pet." Emphasis supplied.
Watchdog's post stimulated this train of thought: "Sceensaver applications in Puppies seem to be 'few and far between'. And each Puppy would need a version of gpicview appropriate to it. But,
it should be possible to write a bash-script which wraps it [screensaver] in a "Do While" loop, terminated when some (any?) key is pressed. As I'm not familiar with gpicview, it might also be necessary to include in that script the selection of a folder into which the photos to be displayed are located (symlinked?).
Such script would probably work in any Puppy that can use gpicview 0.2.2 or later. https://blog.lxde.org/tag/gpicview/"
Since then I installed gpicview in Xenialpup64, and did some further research.
Starting gpicview via terminal with the argument help [i.e. gpicview --help] revealed two significant arguments that can be used:
--slideshow Start slideshow
--display=DISPLAY X display to use
Additionally, if a folder is designated it will begin to display the images in that folder. Consequently, the command, code:
cd /mnt/home/pics && gpicview --slideshow ## I do not suggest this is the best command. My knowledge of bash leaves much to be desired. Offered only because it did the following:
opened gpicview and displayed the first jpg [I haven't checked yet what other file formats are supported] in the /mnt/home/pics folder.
Pressing any key can be dangerous. Press "d" and gpicview will offer to delete; "s" to save. But both "q" and the escape key will end the application; albeit the terminal remained open. Using a bash script, rather than a terminal, should avoid that.
Gpicview did not open "Full Screen". I suspect that the --display argument can somehow be used.
As part of gpicview's installation, the following script is written /root/.config/gpicview/gpicview.conf:
[General]
auto_save_rotated=0
ask_before_save=1
ask_before_delete=1
rotate_exif_only=1
open_maximized=0
bg=#ffffff
bg_full=#000000
slide_delay=5
jpg_quality=90
png_compression=9
show_toolbar=1
Note the "open_maximized=0" argument. I assume (any you know what they say about that ) that 0 = false and 1 would equal true. But you probably don't want it to open Full Screen except when being used as a ScreenSaver. Which brings us back to the --display=DISPLAY argument available when opening gpicview from the terminal or by a script. What Full Screen means on your computer will probably depend on your screen's resolution. And I'm fairly confident that there's a bash command to determine that; another to place it in a variable which variable could be used following --display=.
Gpicview's config file showed slide_delay=5. But gpicview never moved beyond the first graphic displayed. Something wrong with my installation? My usage? And if we can get it to actually slide will it loop back from the last graphic in the folder to the first? [If so, a Do-While loop wouldn't be needed]. How many of the arguments in the config file can be temporarily over-written/altered by arguments in a bash script and how? For example show_toolbar=1 (I assume =true) which you want when using gpicview as a graphic viewer, but you wouldn't want when using it as a screensaver.
gpicview's slideshow capability were developed by Puppy fans/devs. Can we now take it further by adding screensaver capabilities or calling on those capabilities already present but unknown?
mikesLr
Edit: Mike Walsh has published versions which can be found from this post, http://murga-linux.com/puppy/viewtopic. ... 66#1003866 but see his post immediately after it for adjustments you may want to make.
Thanks to the following, in no particular order Mike Walsh, musher0, MochiMoppel, fredx181, and anyone I failed to identify including the many who have provided tricks. tips, documentation and advise on employing Yad.
Coders needed. But, I think this may be easy even if above my paygrade.
Background: Recently tjosurplus queried about a screensaver for wary. Watchdog responded "I do not know about screensaver. For slideshow in wary I should use gpicview-0.2.3-w5.pet." Emphasis supplied.
Watchdog's post stimulated this train of thought: "Sceensaver applications in Puppies seem to be 'few and far between'. And each Puppy would need a version of gpicview appropriate to it. But,
it should be possible to write a bash-script which wraps it [screensaver] in a "Do While" loop, terminated when some (any?) key is pressed. As I'm not familiar with gpicview, it might also be necessary to include in that script the selection of a folder into which the photos to be displayed are located (symlinked?).
Such script would probably work in any Puppy that can use gpicview 0.2.2 or later. https://blog.lxde.org/tag/gpicview/"
Since then I installed gpicview in Xenialpup64, and did some further research.
Starting gpicview via terminal with the argument help [i.e. gpicview --help] revealed two significant arguments that can be used:
--slideshow Start slideshow
--display=DISPLAY X display to use
Additionally, if a folder is designated it will begin to display the images in that folder. Consequently, the command, code:
cd /mnt/home/pics && gpicview --slideshow ## I do not suggest this is the best command. My knowledge of bash leaves much to be desired. Offered only because it did the following:
opened gpicview and displayed the first jpg [I haven't checked yet what other file formats are supported] in the /mnt/home/pics folder.
Pressing any key can be dangerous. Press "d" and gpicview will offer to delete; "s" to save. But both "q" and the escape key will end the application; albeit the terminal remained open. Using a bash script, rather than a terminal, should avoid that.
Gpicview did not open "Full Screen". I suspect that the --display argument can somehow be used.
As part of gpicview's installation, the following script is written /root/.config/gpicview/gpicview.conf:
[General]
auto_save_rotated=0
ask_before_save=1
ask_before_delete=1
rotate_exif_only=1
open_maximized=0
bg=#ffffff
bg_full=#000000
slide_delay=5
jpg_quality=90
png_compression=9
show_toolbar=1
Note the "open_maximized=0" argument. I assume (any you know what they say about that ) that 0 = false and 1 would equal true. But you probably don't want it to open Full Screen except when being used as a ScreenSaver. Which brings us back to the --display=DISPLAY argument available when opening gpicview from the terminal or by a script. What Full Screen means on your computer will probably depend on your screen's resolution. And I'm fairly confident that there's a bash command to determine that; another to place it in a variable which variable could be used following --display=.
Gpicview's config file showed slide_delay=5. But gpicview never moved beyond the first graphic displayed. Something wrong with my installation? My usage? And if we can get it to actually slide will it loop back from the last graphic in the folder to the first? [If so, a Do-While loop wouldn't be needed]. How many of the arguments in the config file can be temporarily over-written/altered by arguments in a bash script and how? For example show_toolbar=1 (I assume =true) which you want when using gpicview as a graphic viewer, but you wouldn't want when using it as a screensaver.
gpicview's slideshow capability were developed by Puppy fans/devs. Can we now take it further by adding screensaver capabilities or calling on those capabilities already present but unknown?
mikesLr