<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Shell | Ukant Jadia</title><link>https://ukantjadia.github.io/category/shell/</link><atom:link href="https://ukantjadia.github.io/category/shell/index.xml" rel="self" type="application/rss+xml"/><description>Shell</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sat, 30 Dec 2023 14:15:02 +0530</lastBuildDate><image><url>https://ukantjadia.github.io/media/icon_hu5e29e1df12b63ca0c9252c8db4842f1b_8915_512x512_fill_lanczos_center_3.png</url><title>Shell</title><link>https://ukantjadia.github.io/category/shell/</link></image><item><title>Dwmbar vs Dwmblocks, a Task Manager</title><link>https://ukantjadia.github.io/post/dwmbar-vs-dwmblocks-a-taskmanger/</link><pubDate>Sat, 30 Dec 2023 14:15:02 +0530</pubDate><guid>https://ukantjadia.github.io/post/dwmbar-vs-dwmblocks-a-taskmanger/</guid><description>&lt;h1 id="2022-05-17">2022-05-17&lt;/h1>
&lt;h2 id="problem-statement">problem statement&lt;/h2>
&lt;p>with dwmbar the cpu uses is touching its picks and that thing i don&amp;rsquo;t like&lt;/p>
&lt;h2 id="solution">solution&lt;/h2>
&lt;p>to solve this i am trying to get the dwmblocks of Bugswriter&lt;/p>
&lt;h2 id="error-or-problem-faced">error or problem faced&lt;/h2>
&lt;ul>
&lt;li>
&lt;p>get repo&lt;/p>
&lt;/li>
&lt;li>
&lt;p>run make and you may get this error 🔽&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Pasted image 20220518015013.png&lt;/p>
&lt;/li>
&lt;li>
&lt;p>solving this we get this&lt;/p>
&lt;/li>
&lt;/ul>
&lt;h2 id="solution-1">Solution&lt;/h2>
&lt;p>okh now the error is fixed&lt;/p>
&lt;p>So first know what is error about&lt;/p>
&lt;p>&lt;strong>error&lt;/strong>
we are trying to automatically compile the dwmblocks.c file and in the code the library which is ariseing the error that is -lX11
The path to solve this is we have to do the maual compilation of an C language file and that is very easy&lt;/p>
&lt;p>command for compilation is &lt;code>gcc dwmblocks.c -lX11 -o dwmblocks&lt;/code> ▶ gcc as in-build compiler, dwmblocks.c file to compile, -lX11 is lib adding manually during compilation, -o to get output with, dwmblocks as name of output file&lt;/p>
&lt;p>edit the config file according to required blocks&lt;/p>
&lt;p>NOTE📌 : cp the dwmblocks file to the &lt;code>/usr/local/bin&lt;/code> so it can run from any where&lt;/p>
&lt;p>take the dwmbloks script form lukesmith voidrice build use this&lt;/p>
&lt;p>add bar scripts in the &lt;code>/usr/local/bin&lt;/code> this path is given in the documentation of dwmblocks&lt;/p>
&lt;p>now you are ready to run&lt;/p>
&lt;p>&lt;strong>Command&lt;/strong>&lt;/p>
&lt;p>&lt;code>idconfig&lt;/code> &amp;ndash;&amp;gt; configure dynamic linker run-time bindings.&lt;/p>
&lt;p>Used to create links and cache to the most recent shared
libraries .&lt;/p>
&lt;p>&lt;code>gcc &amp;lt;-lib-to-add&amp;gt; -o &amp;lt;output-file-name&amp;gt;&lt;/code>&lt;/p>
&lt;p>&lt;code>gcc dwmblocks.c -lX11 -o dwmblocks&lt;/code>&lt;/p></description></item></channel></rss>