<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=5336&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] make xstarfish randomize the names,]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5336</link>
		<description><![CDATA[The most recent posts in [SOLVED] make xstarfish randomize the names,.]]></description>
		<lastBuildDate>Thu, 17 Nov 2022 21:40:13 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38702#p38702</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>I think you need to explain exactly what you want to do here.</p><p>In respect of this:</p><div class="codebox"><pre><code>#!/bin/sh
while : FLAG=0; do
touch=$(date +%N)
    starfish -d 60 -o ~/Wallpaper/$(date +%N)
sleep 60000
done</code></pre></div><p>Why <span class="bbc">FLAG=0</span>? I think chris2be8 was using that to create an infinite loop but my <span class="bbc">while :</span> bit does that already.</p><p>Why have you set the <span class="bbc">touch</span> variable and then not used it?</p><p>Why are you using the <span class="bbc">-d</span> flag for starfish? I think that controls the delay between switching wallpapers when it&#039;s run in daemon mode. It&#039;s not needed at all if you just want to create a bunch of wallpaper image files.</p><p>If you just want a random wallpaper switcher then run starfish as a daemon, then you won&#039;t have to save any image files at all because they will be generated on demand. I think this is the intended mode of operation anyway.</p></div></blockquote></div><p>I actually, just realized something beyond stupid and possibly insane...</p><p>As long as I keep &quot;using it&quot; and the folder its being created in, is open, theoretically, it should keep pumping them out... and as long as I don&#039;t do what I usually do... aka, use bleachbit, nonstop, etc... to delete thumbnails, etc...</p><p>The problem is basically solved...</p><p>facepalm.jpeg seems appropriate here... like on an insane scale...</p><p>xD</p><p>So...&#160; my apologies, its solved.&#160; Btw, I think that was what you just said, right?</p><p>The funny thing is, for some unknown reason, a lightbulb went off when I was deleted files via bleachbit-gtk...</p><p>the .thumbnails folder... is the solution!</p><p>Anyways, thanks for the help... I appreciate it!</p><p>The only thing I really need to do which should be easy enough, is to make sure when I exit jwm, I have it set to paste those files elsewhere on shutdown...&#160; </p><p><img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Thu, 17 Nov 2022 21:40:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38702#p38702</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38632#p38632</link>
			<description><![CDATA[<p>I think you need to explain exactly what you want to do here.</p><p>In respect of this:</p><div class="codebox"><pre><code>#!/bin/sh
while : FLAG=0; do
touch=$(date +%N)
    starfish -d 60 -o ~/Wallpaper/$(date +%N)
sleep 60000
done</code></pre></div><p>Why <span class="bbc">FLAG=0</span>? I think chris2be8 was using that to create an infinite loop but my <span class="bbc">while :</span> bit does that already.</p><p>Why have you set the <span class="bbc">touch</span> variable and then not used it?</p><p>Why are you using the <span class="bbc">-d</span> flag for starfish? I think that controls the delay between switching wallpapers when it&#039;s run in daemon mode. It&#039;s not needed at all if you just want to create a bunch of wallpaper image files.</p><p>If you just want a random wallpaper switcher then run starfish as a daemon, then you won&#039;t have to save any image files at all because they will be generated on demand. I think this is the intended mode of operation anyway.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Tue, 15 Nov 2022 07:09:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38632#p38632</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38622#p38622</link>
			<description><![CDATA[<p>This was my latest attempt, more or less, I kind of wanted to have it occur every so often, via a specific duration... <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />#!/bin/sh <br />while : ; do<br />dir=&quot;$HOME/WallpaperZone&quot;<br />count=&quot;1&quot;</p><p>mkdir -p &quot;$dir&quot;<br />while [ $count -lt 11 ] ; do<br />&#160; &#160;starfish -o &quot;$dir&quot;/Wallpaper&quot;$count&quot;<br />&#160; &#160;count=$((count+1)) # ah ha ha<br />sleep 60000<br />done</p><p>Actually, this is going to sound insane, but I just found my error... stupid or not</p><p>insert embarrassed face here...&#160; __________</p><p>seems I have two different sets of &quot;whiles&quot;&#160; this doesn&#039;t work, does it...</p><p>xD</p><p>EDIT: FINAL hopefully?</p><p>#!/bin/sh <br />while : FLAG=0; do<br />touch=$(date +%N)<br />&#160; &#160; starfish -d 60 -o ~/Wallpaper/$(date +%N)<br />sleep 60000<br />done</p><p>I use this and it works, except for one thing...</p><p>*Keeps trying to change the most recent one and not create a new one from the CURRENT date*</p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Tue, 15 Nov 2022 00:12:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38622#p38622</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38585#p38585</link>
			<description><![CDATA[<div class="quotebox"><cite>zapper wrote:</cite><blockquote><div><p>Can you show me an example of theloop you mentioned?</p></div></blockquote></div><p>I already have. Replace <span class="bbc">[stuff]</span> with the commands to be repeated.</p><div class="quotebox"><cite>zapper wrote:</cite><blockquote><div><p>Been trying to get it to work, but it gives me the unexpected end issue when I try...</p></div></blockquote></div><p>Show us your attempts.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 14 Nov 2022 06:03:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38585#p38585</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38581#p38581</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>zapper wrote:</cite><blockquote><div><p>is there a finite limit?</p></div></blockquote></div><p>No. Use this construct to start an infinite loop:</p><div class="codebox"><pre><code>while : ; do
   [stuff]
done</code></pre></div><p><a href="https://pubs.opengroup.org/onlinepubs/009696899/utilities/colon.html" rel="nofollow">https://pubs.opengroup.org/onlinepubs/0 … colon.html</a></p><div class="quotebox"><cite>zapper wrote:</cite><blockquote><div><p>how many files would be a bad idea to have in one folder for someone like me?</p></div></blockquote></div><p>Infinite files would be a bad idea. Otherwise the image tiles are about 100KiB in size so it depends how big your hard drive is. Many files would only cause a slowdown if you tried to view them all at once, for example in a graphical file manager with thumbnails enabled.</p></div></blockquote></div><p>Can you show me an example of theloop you mentioned?</p><p>Something akin to,&#160; create new wallpaper via starfish per duration with a different name via date, then start over, </p><p>Been trying to get it to work, but it gives me the unexpected end issue when I try...</p><p>*sigh*</p><p><img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Mon, 14 Nov 2022 03:25:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38581#p38581</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38580#p38580</link>
			<description><![CDATA[<div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><div class="quotebox"><cite>zapper wrote:</cite><blockquote><div><p>I bring this, wondering how many files in a folder would cause me the same problem I have when I read a /etc/hosts type adblock filterlist with 1 million, or one hundred thousand lines on it...</p><p>One million takes a bit to load,&#160; on T430...<br />A lot Longer time on X230 but loadable.</p></div></blockquote></div><p>hi, Have you seen a noticable difference with host addblock?</p><p>I had been using ...</p><div class="codebox"><pre><code># This MVPS HOSTS file is a free download from:            #
# http://winhelp2002.mvps.org/hosts.htm                          #</code></pre></div><p>but unloaded it about 2 months ago and haven&#039;t really noticed a flood of adds. offtopic I know, but... ?</p></div></blockquote></div><p>Yeah... about that... your comment is in fact off topic quite a bit... nothing new for me&#160; tho... <img src="https://dev1galaxy.org/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>With that out of the way, that host link you had, is beyond outdated if you look up their sources.</p><p>Just a heads up...</p><p><img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Mon, 14 Nov 2022 03:22:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38580#p38580</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38545#p38545</link>
			<description><![CDATA[<div class="quotebox"><cite>zapper wrote:</cite><blockquote><div><p>I bring this, wondering how many files in a folder would cause me the same problem I have when I read a /etc/hosts type adblock filterlist with 1 million, or one hundred thousand lines on it...</p><p>One million takes a bit to load,&#160; on T430...<br />A lot Longer time on X230 but loadable.</p></div></blockquote></div><p>hi, Have you seen a noticable difference with host addblock?</p><p>I had been using ...</p><div class="codebox"><pre><code># This MVPS HOSTS file is a free download from:            #
# http://winhelp2002.mvps.org/hosts.htm                          #</code></pre></div><p>but unloaded it about 2 months ago and haven&#039;t really noticed a flood of adds. offtopic I know, but... ?</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Sun, 13 Nov 2022 08:57:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38545#p38545</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38524#p38524</link>
			<description><![CDATA[<div class="quotebox"><cite>zapper wrote:</cite><blockquote><div><p>is there a finite limit?</p></div></blockquote></div><p>No. Use this construct to start an infinite loop:</p><div class="codebox"><pre><code>while : ; do
   [stuff]
done</code></pre></div><p><a href="https://pubs.opengroup.org/onlinepubs/009696899/utilities/colon.html" rel="nofollow">https://pubs.opengroup.org/onlinepubs/0 … colon.html</a></p><div class="quotebox"><cite>zapper wrote:</cite><blockquote><div><p>how many files would be a bad idea to have in one folder for someone like me?</p></div></blockquote></div><p>Infinite files would be a bad idea. Otherwise the image tiles are about 100KiB in size so it depends how big your hard drive is. Many files would only cause a slowdown if you tried to view them all at once, for example in a graphical file manager with thumbnails enabled.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 11 Nov 2022 06:46:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38524#p38524</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38523#p38523</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="codebox"><pre><code>#!/bin/sh 

dir=&quot;$HOME/WallpaperZone&quot;
count=&quot;1&quot;

mkdir -p &quot;$dir&quot;
while [ $count -lt 11 ] ; do
   starfish -o &quot;$dir&quot;/Wallpaper&quot;$count&quot;
   count=$((count+1)) # ah ha ha
done</code></pre></div><p>Add <span class="bbc">set -eo pipefail</span> as the first line (after the shebang) if you want the script to exit after any of the commands fail.</p><p>EDIT: that example provides 10 images, change the <span class="bbc">-lt 11</span> bit to modify that.</p><p>EDIT2: added counting Count reference. I love jokes in the comments.</p></div></blockquote></div><p>This one is very good!</p><p>Just one small thing though, is there a finite limit?</p><p>Also, as a last question, how many files would be a bad idea to have in one folder for someone like me?</p><p>As a huge important hint, I should mention:<br />I have two libreboot X200 computers... one of them is in a very not so good shape, as an unneeded info... <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />One X230,, which mostly works, beyond a key missing, Dual core i5-3380M<br />one T430i which has a quad core processor i7-3632QM</p><p>I bring this, wondering how many files in a folder would cause me the same problem I have when I read a /etc/hosts type adblock filterlist with 1 million, or one hundred thousand lines on it...</p><p>One million takes a bit to load,&#160; on T430...<br />A lot Longer time on X230 but loadable.<br />However, if its the X200... forget about it!</p><p>xD</p><p>Although, beyond this, probably I am good for now.</p><p>But do you have any advice?</p><p>Waiting on that before I mark solved.</p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Fri, 11 Nov 2022 03:24:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38523#p38523</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38506#p38506</link>
			<description><![CDATA[<div class="codebox"><pre><code>#!/bin/sh 

dir=&quot;$HOME/WallpaperZone&quot;
count=&quot;1&quot;

mkdir -p &quot;$dir&quot;
while [ $count -lt 11 ] ; do
   starfish -o &quot;$dir&quot;/Wallpaper&quot;$count&quot;
   count=$((count+1)) # ah ha ha
done</code></pre></div><p>Add <span class="bbc">set -eo pipefail</span> as the first line (after the shebang) if you want the script to exit after any of the commands fail.</p><p>EDIT: that example provides 10 images, change the <span class="bbc">-lt 11</span> bit to modify that.</p><p>EDIT2: added counting Count reference. I love jokes in the comments.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 10 Nov 2022 06:58:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38506#p38506</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38502#p38502</link>
			<description><![CDATA[<div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>I&#039;ve just fixed a bug in the above script (I had a <span class="bbc">do</span> missing) and tested it after replacing &quot;starfish -d duration&quot; with &quot;sleep 5&quot;. So it might work now.</p></div></blockquote></div><p>The above script, works in making multiple directories, but there is one thing:</p><p>After I make the directory, I want to output a file, which I seemed to have forgotten, requires the -o </p><p>option... after the duration.</p><p>After which, I want to make a new wallpaper in said location and when it does, have the command cd used,&#160; &#160; then repeat, etc...</p><p>The folder I want to be the wallpaper one, aka, where it makes new wallpapers:</p><p>would be called WallpaperZone or something like that...</p><p><img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>So it seems I made some really silly blunders, in my explanation of what I wanted... sorry bout that...</p><p>That being said, you got most of this right already. <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Although, I wonder if this can be done directly with, making random wallpapers just in the same directory itself...</p><p>Aka, having each wallpaper have a different date name.</p><p>I wonder...</p><p>Anywho, let me know if this is possible...</p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Wed, 09 Nov 2022 20:04:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38502#p38502</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38501#p38501</link>
			<description><![CDATA[<p>I&#039;ve just fixed a bug in the above script (I had a <span class="bbc">do</span> missing) and tested it after replacing &quot;starfish -d duration&quot; with &quot;sleep 5&quot;. So it might work now.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Wed, 09 Nov 2022 17:21:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38501#p38501</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38492#p38492</link>
			<description><![CDATA[<p>Try the following (WARNING - untested code- WARNING):</p><div class="codebox"><pre><code>#!/bin/bash
FLAG=0
until [[ $FLAG = &quot;1&quot; ]]
do
DIR=$(date +%N)
mkdir $DIR
if  (($?&gt;0)) ;then exit;fi
cd $DIR
if  (($?&gt;0)) ;then exit;fi
starfish -d duration
# Tidy up anything if you want here
cd ..
if  (($?&gt;0)) ;then exit;fi
rmdir $DIR # Optional
if  (($?&gt;0)) ;then exit;fi
done</code></pre></div><p>date +%N returns the current time in nanoseconds, so will very rarely repeat.</p><p>But I don&#039;t have starfish, so I can&#039;t test this. Use at your own risk.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Tue, 08 Nov 2022 17:05:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38492#p38492</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] make xstarfish randomize the names,]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=38488#p38488</link>
			<description><![CDATA[<p>Aka:</p><p>when I type starfish -d duration</p><p>duration being whatever time I mean, sadly it does the same filename no matter what.</p><p>CLI is preferred, but in general, wondered if anyone knows how to do this.</p><p>Or for that matter, even doing something akin to,&#160; making a random directiory, cding to it, then transmitting the format and then cding and repeating again and again.</p><p>Or to put it another way...</p><p>mkdir random directory<br />cd to random directory<br />then make the wallpaper <br />cd<br />repeat</p><p>I have a love for the xstarfish wallpapers it creates.</p><p><img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (zapper)]]></author>
			<pubDate>Tue, 08 Nov 2022 05:53:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=38488#p38488</guid>
		</item>
	</channel>
</rss>
