<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=4816&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Suggestions for a good simple alarm clock/timer]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=4816</link>
		<description><![CDATA[The most recent posts in Suggestions for a good simple alarm clock/timer.]]></description>
		<lastBuildDate>Thu, 20 Jan 2022 11:27:48 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34039#p34039</link>
			<description><![CDATA[<p>^<br />In a similar fashion with ogg123 you can use the -Z option&#160; </p><p>-Z, --random <br />Play files in pseudo-random order forever.</p><div class="codebox"><pre><code>ogg123 -Z  ~/path/to/loud-song.ogg </code></pre></div><p>The obvious thing to note if using as an alarm is make sure you only have loud files in the directory.</p><p>Incidentally I was woken at 7;30 AM this morning with this blasting in my ears </p><p><a href="https://derryth.com/s/free-software-song-best-version" rel="nofollow">https://derryth.com/s/free-software-song-best-version</a></p><p>Hence, I can recommend reading the man page at a sane time of day! If using the at command you can check the queue with </p><div class="codebox"><pre><code>atq </code></pre></div><p> and clear items in it with atrm queue number </p><div class="codebox"><pre><code>atrm 1 2 4 8</code></pre></div><p>:-)</p>]]></description>
			<author><![CDATA[dummy@example.com (Kelsoo)]]></author>
			<pubDate>Thu, 20 Jan 2022 11:27:48 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34039#p34039</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34035#p34035</link>
			<description><![CDATA[<p>alternative (since mplayer supports it...) : </p><div class="codebox"><pre><code>sleep 300 ; mplayer -loop 0 loud-song.ogg</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (xinomilo)]]></author>
			<pubDate>Wed, 19 Jan 2022 21:57:06 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34035#p34035</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34034#p34034</link>
			<description><![CDATA[<p>Once again, HoaS for the win! Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Wed, 19 Jan 2022 21:14:19 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34034#p34034</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34031#p34031</link>
			<description><![CDATA[<p>In which case:</p><div class="codebox"><pre><code>#!/bin/sh

echo &quot;Hello $USER, please enter a countdown time
Add m for minutes and h for hours, seconds is assumed
For example 1h 1m 1 would set the time to 1 hour, 1 minute and 1 second&quot;

read -r time

# shellcheck disable=2086 # word splitting is needed here
sleep $time

while aplay /path/to/sound/file ; do
   :
done</code></pre></div><p>Or</p><div class="codebox"><pre><code>sleep 300 ; while mplayer loud-song.ogg ; do : ; done</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 19 Jan 2022 19:27:49 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34031#p34031</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34029#p34029</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Both versions will play the sound file until it ends (or until the script/command is interrupted with &lt;ctrl&gt;+c).</p></div></blockquote></div><p>I&#039;m sorry, I wasn&#039;t clear. What I want is for it to <em>repeat</em> the sound file until I tell it to stop repeating.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Wed, 19 Jan 2022 18:56:26 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34029#p34029</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34026#p34026</link>
			<description><![CDATA[<p>Both versions will play the sound file until it ends (or until the script/command is interrupted with &lt;ctrl&gt;+c).</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 19 Jan 2022 18:24:51 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34026#p34026</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34025#p34025</link>
			<description><![CDATA[<p>Thanks to all who answered. I have a question for using both Kelsoo&#039;s and HoaS&#039;s answer:</p><p>For Kelsoo&#039;s simple command: <span class="bbc">sleep 300 ; mplayer loud-song.ogg</span></p><p>is there a way to set it so that mplayer continues to play the sound file, until I tell it to stop?</p><p>For HoaS&#039;s script, same question.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Wed, 19 Jan 2022 18:09:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34025#p34025</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34019#p34019</link>
			<description><![CDATA[<p>Here&#039;s a (very) simple script for the timer (replace <span class="bbc">/path/to/sound/file</span> with the actual full path to the sound file you want to use as the alert):</p><div class="codebox"><pre><code>#!/bin/sh

echo &quot;Hello $USER, please enter a countdown time
Add m for minutes and h for hours, seconds is assumed
For example 1h 1m 1 would set the time to 1 hour, 1 minute and 1 second&quot;

read -r time

# shellcheck disable=2086 # word splitting is needed here
sleep $time

aplay /path/to/sound/file</code></pre></div><p>^ Save that as <span class="bbc">timer</span> then</p><div class="codebox"><pre><code>chmod +x timer
sudo mv timer /usr/local/bin/</code></pre></div><p>Then make a menu entry for it:</p><div class="codebox"><pre><code>[Desktop Entry]
Type=Application
Name=Timer
Generic=Timer
Comment=HoaS&#039; simple timer script
Exec=timer
Terminal=true
Categories=Utility;ConsoleOnly;
Keywords=utility;timer</code></pre></div><p>^ Save that as <span class="bbc">timer.desktop</span> then</p><div class="codebox"><pre><code>sudo mkdir -p /usr/local/share/applications
sudo mv timer.desktop /usr/local/share/applications</code></pre></div><p>Now log out and back in again and the &quot;Timer&quot; application should be available under &quot;Utilities&quot;.</p><p>EDIT: the alsa-utils package supplies the <span class="bbc">aplay</span> command so you&#039;ll need to install that along with any required CODECs for the sound file of choice.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 19 Jan 2022 15:45:48 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34019#p34019</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34016#p34016</link>
			<description><![CDATA[<p>While sleep is fine and super easy to remember for boiling a kettle, it&#039;s not so good as an alarm. For that the &quot;at&quot; command is handy.</p><p>at -t ccyymmddhhmm.ss # cc=century yy=year&#160; mm=month dd=day hh=hour mm=minute .ss=seconds (note the dot!) or just don&#039;t bother with .ss</p><p>Set the time to run</p><div class="codebox"><pre><code>at -t 202201192359</code></pre></div><p>press return</p><p>Command to run&#160; e.g.&#160; &#160; </p><div class="codebox"><pre><code>ogg123 ~/Music/Rock/loud-song.ogg</code></pre></div><p>press return<br />press ctrl D</p><p>That&#039;s it. see &quot;man at&quot; for more options like</p><p>Boil an egg</p><div class="codebox"><pre><code>at now + 3 minutes</code></pre></div><p>press &quot;return&quot;</p><div class="codebox"><pre><code>ogg123 ~/path/to/loud-song.ogg</code></pre></div><p>press &quot;return&quot; then press &quot;ctrl D&quot;</p><p>I believe&#160; the return after ogg123 ~/path/to/loud-song.ogg is not strictly necessary but I&#039;ve found it more intuitive and it doesn&#039;t hurt. In other words muscle memory. I keep doing it and it works fine! :-$ </p><p>To switch off the alarm <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> </p><div class="codebox"><pre><code>killall ogg123</code></pre></div><p>Morning alarm clock</p><div class="codebox"><pre><code>at 7:30 AM tomorrow</code></pre></div><p>press &quot;return&quot;</p><div class="codebox"><pre><code>ogg123 ~/Music/Rock/loud-song.ogg</code></pre></div><p>press &quot;return&quot; then press &quot;ctrl D&quot;</p><p>Note make sure your volume is up!</p>]]></description>
			<author><![CDATA[dummy@example.com (Kelsoo)]]></author>
			<pubDate>Wed, 19 Jan 2022 14:28:04 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34016#p34016</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34012#p34012</link>
			<description><![CDATA[<div class="quotebox"><cite>Ron wrote:</cite><blockquote><div><p>I just want a simple timer</p></div></blockquote></div><p>KTeaTime is in Devuan 3 repos: <a href="https://apps.kde.org/kteatime/" rel="nofollow">https://apps.kde.org/kteatime/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (PedroReina)]]></author>
			<pubDate>Wed, 19 Jan 2022 10:30:51 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34012#p34012</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34009#p34009</link>
			<description><![CDATA[<p>`sleep 300` means to delay running the following command (=mplayer...), for 300 seconds (= 5 mins.)<br />not suspend/hibernate the whole computer...</p><p>p.s. not using alarm clocks, so i don&#039;t have an alternative. still boil the water away occasionally <img src="http://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (xinomilo)]]></author>
			<pubDate>Wed, 19 Jan 2022 10:05:42 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34009#p34009</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=34000#p34000</link>
			<description><![CDATA[<p>I assume this is a terminal command? What does &quot;sleep&quot; do? I don&#039;t want my computer to go to sleep.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Wed, 19 Jan 2022 02:17:10 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=34000#p34000</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=33999#p33999</link>
			<description><![CDATA[<div class="codebox"><pre><code>sleep 300 ; mplayer loud-song.ogg</code></pre></div><p>&#160; works for me</p>]]></description>
			<author><![CDATA[dummy@example.com (Kelsoo)]]></author>
			<pubDate>Tue, 18 Jan 2022 22:57:32 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=33999#p33999</guid>
		</item>
		<item>
			<title><![CDATA[Suggestions for a good simple alarm clock/timer]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=33996#p33996</link>
			<description><![CDATA[<p>I used to use an app called Alarm-clock-applet, or something like that. It is not available in the Devuan 3 repos. Can anybody suggest something like it? I just want a simple timer to set that will ring/play an alarm alerting me that time&#039;s up. I usually use it when I set water to boil on the stove-top (one time I forgot and boiled away all the water, yikes).</p><p>On a related question, I see one potential replacement, gnome-clocks, however it needs avahi-daemon installed. On my list of &quot;things to do&quot; after a fresh OS install is to delete avahi-daemon. I don&#039;t have why, just delete it. Is there any reason why having this avahi-daemon is a bad idea? There must have been a reason why I wanted/needed it deleted.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Tue, 18 Jan 2022 18:35:36 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=33996#p33996</guid>
		</item>
	</channel>
</rss>
