<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1112641&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Aide pour script avec notify-send]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1112641</link>
		<description><![CDATA[Les sujets les plus récents dans Aide pour script avec notify-send.]]></description>
		<lastBuildDate>Thu, 22 Nov 2012 00:19:18 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Aide pour script avec notify-send]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11595721#p11595721</link>
			<description><![CDATA[<p>Tout le mérite revient à pingouinux <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (metalux)]]></author>
			<pubDate>Thu, 22 Nov 2012 00:19:18 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11595721#p11595721</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Aide pour script avec notify-send]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11595691#p11595691</link>
			<description><![CDATA[<p>of course^^<br />merci beaucoup metalux</p>]]></description>
			<author><![CDATA[dummy@example.com (jean bono)]]></author>
			<pubDate>Thu, 22 Nov 2012 00:15:55 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11595691#p11595691</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Aide pour script avec notify-send]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11595681#p11595681</link>
			<description><![CDATA[<p>Bonsoir jean bono,<br />Il faut protéger $note avec des doubles quotes.</p><div class="codebox"><pre><code>notify-send -i /home/bono178/images/travian.jpg &quot;$note&quot;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (metalux)]]></author>
			<pubDate>Thu, 22 Nov 2012 00:14:00 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11595681#p11595681</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Aide pour script avec notify-send]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11595461#p11595461</link>
			<description><![CDATA[<p>Apres quelques bidouilles et recherches je l&#039;ai transforme de la sorte :</p><div class="codebox"><pre><code>#!/bin/bash
note=`zenity --entry --title=&quot;Note&quot; --text=&quot;Note:&quot;`
h=`zenity --entry --title=&quot;Heures&quot; --text=&quot;Combien d&#039;heures?:&quot;`
m=`zenity --entry --title=&quot;Minutes&quot; --text=&quot;Combien de minutes?:&quot;`
s=`zenity --entry --title=&quot;Secondes&quot; --text=&quot;Combien de secondes?:&quot;`
T=$((60*(60*h+m)+s))
sleep $T
notify-send -i /home/bono178/images/travian.jpg $note
mplayer /usr/share/sounds/gnome/default/alerts/glass.ogg 

sleep 5</code></pre></div><p>comme ca j&#039;ai une boite de dialogue pour rentrer les arguments, puis une jolie notif avec une icone et un son<br />C&#039;est le timer parfait<br />Il me manque plus qu&#039;a regler le probleme suivant :<br />si la &quot;note&quot; comporte un espace, ca marche plus<br />si quelqu&#039;un est familier avec ce probleme n&#039;hesitez pas</p><p>Merci pour l&#039;impulsion de depart</p>]]></description>
			<author><![CDATA[dummy@example.com (jean bono)]]></author>
			<pubDate>Wed, 21 Nov 2012 23:36:05 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11595461#p11595461</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Aide pour script avec notify-send]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11594051#p11594051</link>
			<description><![CDATA[<p>Si tu veux donner le temps en séparant heures, minutes et secondes, tu calcules T comme ceci :</p><div class="codebox"><pre><code>T=$((60*(60*h+m)+s))</code></pre></div><p>ou</p><div class="codebox"><pre><code>T=$((3600*h+60*m+s))</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Wed, 21 Nov 2012 21:31:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11594051#p11594051</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Aide pour script avec notify-send]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11593911#p11593911</link>
			<description><![CDATA[<p>ah ok, fallais le savoir ca^^<br />Merci beaucoup pour ton aide</p>]]></description>
			<author><![CDATA[dummy@example.com (jean bono)]]></author>
			<pubDate>Wed, 21 Nov 2012 21:22:58 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11593911#p11593911</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Aide pour script avec notify-send]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11593751#p11593751</link>
			<description><![CDATA[<div class="codebox"><pre><code>T=$(date +&quot;%s&quot; -ud &quot;1970-01-01 $t&quot;)</code></pre></div><p>Tu as raison, c&#039;est bien <strong>$t</strong>, et non <strong>$1</strong>. J&#039;ai corrigé en #2.<br />Cette ligne convertit <strong>t</strong>, qui est dans le format <strong>hh:mm:ss</strong>, en secondes. Le 01/01/1970 est l&#039;origine des temps pour Linux (appelé aussi Epoch).</p>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Wed, 21 Nov 2012 21:14:58 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11593751#p11593751</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Aide pour script avec notify-send]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11593721#p11593721</link>
			<description><![CDATA[<p>Merci nickel avec la correction^^</p><p>est ce que tu peux detailer la ligne qui definit T?</p>]]></description>
			<author><![CDATA[dummy@example.com (jean bono)]]></author>
			<pubDate>Wed, 21 Nov 2012 21:13:46 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11593721#p11593721</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Aide pour script avec notify-send]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11593621#p11593621</link>
			<description><![CDATA[<p>hello pingouinux</p><p>ca marche pas vraiment</p><p>est ce que tu peux detailler avec moi le code?</p><p>x=&quot;$1&quot;&#160; &#160;veut dire que le premier argument du script est enregistre dans la variable x?<br />idem pour t=&quot;$2&quot; ? du coup on prend heure + minute + secondes dans la meme variable? il comprend la difference le script?<br />ensuite cette ligne je comprends pas... T=$(date +&quot;%s&quot; -ud &quot;1970-01-01 $1&quot;)<br />je vois pas pourquoi on utilise pas la variable t non plus...<br />si tu peux m&#039;eclairer <br />Merci</p>]]></description>
			<author><![CDATA[dummy@example.com (jean bono)]]></author>
			<pubDate>Wed, 21 Nov 2012 21:05:26 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11593621#p11593621</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Aide pour script avec notify-send]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11593451#p11593451</link>
			<description><![CDATA[<p>Bonjour,<br />Je ne connais pas <strong>notify-send</strong>, mais voici une suggestion :</p><div class="codebox"><pre><code>$ cat script.sh

#!/bin/bash
x=&quot;$1&quot;
t=&quot;$2&quot;
T=$(date +&quot;%s&quot; -ud &quot;1970-01-01 $t&quot;)
sleep $T
# Lancement de notify-send &quot;$x&quot;</code></pre></div><p>Lancement du script, par exemple avec une temporisation de 1h 5mn 23s :</p><div class="codebox"><pre><code>$ ./script.sh &quot;la phrase&quot; 1:5:23</code></pre></div><p><span class="bbu">Correction</span></p>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Wed, 21 Nov 2012 20:57:41 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11593451#p11593451</guid>
		</item>
		<item>
			<title><![CDATA[Aide pour script avec notify-send]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11592381#p11592381</link>
			<description><![CDATA[<p>Bonjour a tous<br />Je cherche un petit script qui m&#039;afficherait une note ( avec les notifications ) apres un temps defini par moi-meme<br />un peu comme un compte a rebours avec des notifications</p><p>Je voudrais utiliser notify-send qui m&#039;a l&#039;air tres simple d&#039;utilisation<br />et pour la temporisation je pensais faire un &quot;sleep&quot; mais je sais pas trop si ca marcherait</p><p>L&#039;idee c&#039;est de lancer le script et on rentre une phrase &quot;x&quot; et un temps &quot;t&quot;<br />une fois le temps &quot;t&quot; ecoule, notify-send s&#039;active<br />l&#039;ideal serait de pouvoir mettre le temps &quot;t&quot; en heure, minute et secondes<br />du coup on pourrait mettre en input &quot;h&quot;, &quot;m&quot; et &quot;s&quot; et on ferait &quot;t = 3600 x h + 60 x m + s&quot;</p><p>Est ce que c&#039;est realisable? Quelqu&#039;un se sent de me donner un coup de main?<br />Merci<br />Jean Bono</p>]]></description>
			<author><![CDATA[dummy@example.com (jean bono)]]></author>
			<pubDate>Wed, 21 Nov 2012 20:01:25 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11592381#p11592381</guid>
		</item>
	</channel>
</rss>
