<?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=3437&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Conky on-screen formatting/layout]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3437</link>
		<description><![CDATA[The most recent posts in Conky on-screen formatting/layout.]]></description>
		<lastBuildDate>Tue, 14 Apr 2020 11:36:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Conky on-screen formatting/layout]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21121#p21121</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>HevyDevy wrote:</cite><blockquote><div><p>... hwmon inside conky ...<br />... check in /sys/class/hwmon for the correct outputs ...</p></div></blockquote></div><p>Right.</p><p>That did it.</p><div class="codebox"><pre><code>TEMPERATURES
-------------------------------------
${hr 2}
Core0: +${hwmon 0 temp 2}°C                 Core1: +${hwmon 0 temp 3}°C  
Core2: +${hwmon 0 temp 4}°C                 Core3: +${hwmon 0 temp 5}°C</code></pre></div><p>... got me exactly what I was looking for.</p><div class="quotebox"><blockquote><div><p>TEMPERATURES<br />-------------------------------------<br />Core0: +46.0&#160; &#160; &#160; &#160;Core1: +42.0<br />Core2: +41.0&#160; &#160; &#160; &#160;Core3: +41.0</p></div></blockquote></div><p>Thank you very much for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 14 Apr 2020 11:36:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21121#p21121</guid>
		</item>
		<item>
			<title><![CDATA[Re: Conky on-screen formatting/layout]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21112#p21112</link>
			<description><![CDATA[<p>I forgot about hwmon inside conky so you could just use hwmon inside conky to get the needed formatting and it will be better than piping commands via sensors, awk and fmt. Just check in /sys/class/hwmon for the correct outputs as per below conky commands.</p><div class="codebox"><pre><code>TEMPERATURES
-------------------------------------
Core0:+${hwmon 1 temp 2}°C      Core1:+${hwmon 1 temp 3}°C  |
Core2:+${hwmon 1 temp 4}°C      Core3:+${hwmon 1 temp 5}°C  |</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (HevyDevy)]]></author>
			<pubDate>Tue, 14 Apr 2020 04:51:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21112#p21112</guid>
		</item>
		<item>
			<title><![CDATA[Re: Conky on-screen formatting/layout]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21100#p21100</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>HevyDevy wrote:</cite><blockquote><div><p>fmt is the command you want. <a href="https://linux.die.net/man/1/fmt" rel="nofollow">https://linux.die.net/man/1/fmt</a></p></div></blockquote></div><p>Right ...</p><div class="quotebox"><cite>HevyDevy wrote:</cite><blockquote><div><p>... the way you want it formatted should be below command.</p></div></blockquote></div><p>Thanks a lot ..&#160; =-)</p><p>I had to tailor it a bit ...</p><div class="codebox"><pre><code>${execpi 5 sensors | awk &#039;NR==3{print $1 $2 $3} NR==4{print $1 $2 $3} NR==5 {print $1 $2 $3} NR==6 {print $1 $2 $3}&#039; | fmt -24}</code></pre></div><p>... gets me this:</p><div class="quotebox"><blockquote><div><p>TEMPERATURES<br />-------------------------------------<br />Core0: +52.0 Core1: +52.0&#160; &#160; &#160; &#160; |<br />Core2: +52.0 Core3: +52.0&#160; &#160; &#160; &#160; |</p></div></blockquote></div><p>But I have not found a way to separate the readouts.</p><p>eg: </p><div class="quotebox"><blockquote><div><p>TEMPERATURES<br />-------------------------------------<br />Core0: +52.0&#160; &#160; &#160; &#160;Core1: +52.0&#160; |<br />Core2: +52.0&#160; &#160; &#160; &#160;Core3: +52.0&#160; |</p></div></blockquote></div><p>It seems that spaces do not count and I don&#039;t see a <em>tab</em> or any other argument to use.</p><p>How do I separate them?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Tue, 14 Apr 2020 01:45:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21100#p21100</guid>
		</item>
		<item>
			<title><![CDATA[Re: Conky on-screen formatting/layout]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21099#p21099</link>
			<description><![CDATA[<p>fmt is the command you want. <a href="https://linux.die.net/man/1/fmt" rel="nofollow">https://linux.die.net/man/1/fmt</a></p><p>This is how i do commands for conky sensors, you may need to play around with the fmt (format) values and the awk values.</p><div class="codebox"><pre><code>sensors | awk &#039;NR==3{print $3} NR==4{print $3} NR==5{print $3} NR==6{print $3}&#039; | fmt -20</code></pre></div><p>You dont need cut or grep commands, awk can do all the hard work itself.</p><p>edit: and the way you want it formatted should be below command.</p><div class="codebox"><pre><code>sensors | awk &#039;NR==3{print $1,$3} NR==4{print $1,$3} NR==5{print $1,$3} NR==6{print $1,$3}&#039; | fmt -30</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (HevyDevy)]]></author>
			<pubDate>Tue, 14 Apr 2020 00:43:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21099#p21099</guid>
		</item>
		<item>
			<title><![CDATA[Conky on-screen formatting/layout]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=21097#p21097</link>
			<description><![CDATA[<p>Hello:</p><p>I use <span class="bbc">Conky</span> on my desktop to show, among other things, CPU temperatures.<br />Invaluable when your box sits on the floor of a rather unkept home office.&#160; =^7</p><p>The <span class="bbc">/etc/conky/conky.conf</span> lines that do it are these ...</p><div class="codebox"><pre><code>--- snip ---
TEMPERATURES
${hr 2}
${execpi 5 sensors | grep Core | awk &#039;{print $1 $2 $3}&#039; | cut -c1-15}
--- snip ---</code></pre></div><p>... and what I get is something akin to this:a</p><div class="quotebox"><blockquote><div><p>TEMPERATURES<br />------------------------------------- <br />Core0: +52.0&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; |<br />Core1: +52.0&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; |<br />Core2: +52.0&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; |<br />Core3: +52.0&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; |</p></div></blockquote></div><p>The output shown above in ASCII (*) is more or less to scale and aligned to the right screen margin, in turn represented by the vertically stacked <span class="bbc">Alt+179</span> symbols.</p><p>In order to be able to add a couple of readings <em>without</em> having to squint (more) and/or take up additional screen surface, I&#039;d like to be able to format the output in this manner:</p><div class="quotebox"><blockquote><div><p>TEMPERATURES<br />------------------------------------- <br />Core0: +52.0&#160; &#160; Core1: +52.0&#160; &#160; &#160;|<br />Core2: +52.0&#160; &#160; Core3: +52.0&#160; &#160; &#160;|</p></div></blockquote></div><p>How can I get that done?</p><p>Thanks in advance,</p><p>A.</p><p>(*) This in the absence of a quick and convenient way to upload small graphic files to <em>wherever</em>, directly from the post screen. (a hint?)</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 13 Apr 2020 21:23:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=21097#p21097</guid>
		</item>
	</channel>
</rss>
