<?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=4626&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / NetworkManager wifi signal bars]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4626</link>
		<description><![CDATA[The most recent posts in NetworkManager wifi signal bars.]]></description>
		<lastBuildDate>Sun, 31 Oct 2021 09:46:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: NetworkManager wifi signal bars]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32509#p32509</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Is NetworkManager running and connected before your user logs in? I don&#039;t use it myself so I&#039;m not sure how that works.</p><div class="quotebox"><cite>hevidevi wrote:</cite><blockquote><div><p>i call a network status shell script from slstatus</p></div></blockquote></div><p>Wait, what? Why would you do that? <img src="https://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>Please show how you have hooked the shell script into slstatus&#039; components.</p></div></blockquote></div><p>Yes network manager is running before user logs in.</p><p>slstatus in config.h has below function call and i want a network status script that tells me at a glance the wifi is working with minimal info possible, just prints nmcli bars for the wifi and a usb icon for when im using usb phone tethering.</p><div class="codebox"><pre><code>* run_command         custom shell command            command (echo foo)</code></pre></div><p>then i put it as an argument like so.</p><div class="codebox"><pre><code>static const struct arg args[] = {
        /* function format          argument */
        { run_command, &quot; %s &quot;,          (&quot;temperature&quot;) },
        { run_command, &quot; %s &quot;,          (&quot;network&quot;) },
        { run_command, &quot; %s &quot;,          (&quot;volume&quot;) },
         { datetime, &quot;%s;&quot;,                      &quot;%R&quot; }
};</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (hevidevi)]]></author>
			<pubDate>Sun, 31 Oct 2021 09:46:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32509#p32509</guid>
		</item>
		<item>
			<title><![CDATA[Re: NetworkManager wifi signal bars]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32504#p32504</link>
			<description><![CDATA[<p>Is NetworkManager running and connected before your user logs in? I don&#039;t use it myself so I&#039;m not sure how that works.</p><div class="quotebox"><cite>hevidevi wrote:</cite><blockquote><div><p>i call a network status shell script from slstatus</p></div></blockquote></div><p>Wait, what? Why would you do that? <img src="https://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>Please show how you have hooked the shell script into slstatus&#039; components.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 31 Oct 2021 08:14:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32504#p32504</guid>
		</item>
		<item>
			<title><![CDATA[Re: NetworkManager wifi signal bars]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32500#p32500</link>
			<description><![CDATA[<p>i call a network status shell script from slstatus.</p><div class="codebox"><pre><code>#!/bin/sh

get_net=&quot;$(ip r | awk &#039;/^default/{print $5}&#039;)&quot;
get_bars=&quot;$(nmcli -f ACTIVE,SIGNAL,BARS dev wifi list | awk &#039;$1==&quot;yes&quot; {print $3}&#039;)&quot;

if [ &quot;$get_net&quot; = &quot;wlan0&quot; ]; then
        printf &quot;$get_bars&quot;
elif [ &quot;$get_net&quot; = &quot;usb0&quot; ]; then
        printf &quot;:Usb0&quot;
else
        printf &quot;no network&quot;
fi</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (hevidevi)]]></author>
			<pubDate>Sat, 30 Oct 2021 11:55:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32500#p32500</guid>
		</item>
		<item>
			<title><![CDATA[Re: NetworkManager wifi signal bars]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32496#p32496</link>
			<description><![CDATA[<p>I&#039;m confused, <span class="bbc">slstatus</span> is a C program so why have you posted a shell script?</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 30 Oct 2021 09:21:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32496#p32496</guid>
		</item>
		<item>
			<title><![CDATA[NetworkManager wifi signal bars]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32477#p32477</link>
			<description><![CDATA[<p>Just wondering if anyone could shed some light on this weird issue. Probably belongs over at suckless.org but thought id pose the question here. When i start slstatus normally via .xinitrc the bars show up as asterisk symbols but if i start slstatus via xterm or st term then the bars show up. Seems like there is a bug or something starting characters such as these bars via xsetroot or however slstatus prints output to the statusbar and needs a terminal to print the bars?</p><p>how i start slstatus via .xinitrc to show the bars = <span class="bbc">xterm -e nohup slstatus</span> </p><p>code: </p><div class="codebox"><pre><code>nmcli -f ACTIVE,SIGNAL,BARS dev wifi list | awk &#039;$1==&quot;yes&quot; {print $3}&#039;</code></pre></div><p>scrots:</p><p><a href="https://postimages.org/" rel="nofollow"><span class="postimg"><img src="https://i.postimg.cc/gJNyNt5L/2021-10-29-112613-419x91-scrot.png" alt="2021-10-29-112613-419x91-scrot.png" /></span></a></p><p><a href="https://postimages.org/" rel="nofollow"><span class="postimg"><img src="https://i.postimg.cc/hjSb8RCq/2021-10-29-112504-519x101-scrot.png" alt="2021-10-29-112504-519x101-scrot.png" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (hevidevi)]]></author>
			<pubDate>Fri, 29 Oct 2021 01:38:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32477#p32477</guid>
		</item>
	</channel>
</rss>
