diff options
Diffstat (limited to '_site/blog/suckless-software')
| -rw-r--r-- | _site/blog/suckless-software/index.html | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/_site/blog/suckless-software/index.html b/_site/blog/suckless-software/index.html index ea91072..bab40c6 100644 --- a/_site/blog/suckless-software/index.html +++ b/_site/blog/suckless-software/index.html @@ -2,12 +2,12 @@ <html> <head> <meta charset="utf-8"> - <title>How I manage Suckless software packages</title> + <title>How I manage Suckless software installations</title> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>How I manage Suckless software packages</title> + <title>How I manage Suckless software installations</title> <link rel="stylesheet" href="/assets/css/main.css"> <link rel="stylesheet" href="/assets/css/skeleton.css"> </head> @@ -41,7 +41,7 @@ <main> <div class="container"> <div class="container-2"> - <h2 class="center" id="title">HOW I MANAGE SUCKLESS SOFTWARE PACKAGES</h2> + <h2 class="center" id="title">HOW I MANAGE SUCKLESS SOFTWARE INSTALLATIONS</h2> <h6 class="center">30 NOVEMBER 2025</h5> <br> <div class="twocol justify"><p>Since <a href="https://suckless.org/" class="external" target="_blank" rel="noopener noreferrer">suckless</a> software requires users to modify the @@ -52,8 +52,7 @@ versions are released.</p> <h2 id="initial-setup">Initial setup</h2> <p>When using a suckless program, I usually begin by cloning the project and -setting the remote URL to push a copy of the source code with my patches to my -own git repository:</p> +setting the remote push URL to my own git repository:</p> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git clone git://git.suckless.org/dwm git reset --hard <tag> @@ -61,28 +60,28 @@ git remote set-url --push origin git@git.asciimx.com:/repos/dwm </code></pre></div></div> <p>This way, I can pull updates from the upstream project whenever I want, while -committing my changes to my own git repository. The git reset command aligns my +committing my changes to my git repository. The git reset command aligns my branch head with a stable release before applying patches or installing the software.</p> <p>If all I want to do is reconfigure the software (e.g., change key bindings), which is what I need most of the time, the recommended approach is to modify -the config.h file. If the config.h isn’t yet in the project, the following -command generates it from the defaults and compiles the software using <code class="language-plaintext highlighter-rouge">make -clean <target></code> here <code class="language-plaintext highlighter-rouge"><target></code> is the name of the application (e.g., dwm) -found in the Makefile. I modify the resulting config.h file and run <code class="language-plaintext highlighter-rouge">make clean -install</code> to install the software before committing and pushing my changes to my -git repo.</p> +the config.h file. If the config.h isn’t yet in the project, the +<code class="language-plaintext highlighter-rouge">make clean <target></code> command will generate it from the defaults and compile +the software. The <code class="language-plaintext highlighter-rouge"><target></code> is the name of the application (e.g., dwm) found +in the Makefile. I modify the resulting config.h file and run <code class="language-plaintext highlighter-rouge">make clean +install</code> to install the software before committing and pushing my changes to +the git repo.</p> <h2 id="dwm-and-slstatus">dwm and slstatus</h2> <p>Since dwm and slstatus are always running, <code class="language-plaintext highlighter-rouge">make install</code> will likely fail for -them. The operating system will prevent the installer from replacing running +them. The operating system may prevent the installer from replacing running executables with new ones. Hence, we must first stop the running instances of -these programs (Mod + Shift + q). Then, switch to a tty (Ctrl + Alt + F1), -log in, and change the directory to where dwm/slstatus is. We can run <code class="language-plaintext highlighter-rouge">make -install</code> to install the software and switch back to the graphical session -(Ctrl + Alt + F5).</p> +these programs (in my case, using Mod + Shift + q). Then, switch to a tty +(Ctrl + Alt + F1), log in, and change the directory to where dwm/slstatus is. +We can run <code class="language-plaintext highlighter-rouge">make install</code> to install the software and switch back to the +graphical session (Ctrl + Alt + F5).</p> <p>The key combinations for switching to the tty and back may differ across systems. The ones listed above are for OpenBSD.</p> @@ -121,7 +120,7 @@ q12vu Another old commit. 3fkdf Version 6.5. </code></pre></div></div> -<p>And finally, commit and push all the changes to my own git repository.</p> +<p>And finally, I commit and push all the changes to my git repository.</p> </div> <p class="post-author right">by W. D. Sadeep Madurange</p> |
