summaryrefslogtreecommitdiffstats
path: root/_archive/suckless-software.md
diff options
context:
space:
mode:
Diffstat (limited to '_archive/suckless-software.md')
-rw-r--r--_archive/suckless-software.md28
1 files changed, 9 insertions, 19 deletions
diff --git a/_archive/suckless-software.md b/_archive/suckless-software.md
index 946d0b9..7501ede 100644
--- a/_archive/suckless-software.md
+++ b/_archive/suckless-software.md
@@ -31,31 +31,21 @@ software.
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:
-
-```
-make clean <target>
-```
-
-Where `<target>` is the name of the application (e.g., dwm) found in the
-Makefile. I modify the resulting config.h file and run `make clean install` to
-install the software before committing and pushing my changes to my git repo.
+command generates it from the defaults and compiles the software using `make
+clean <target>` here `<target>` is the name of the application (e.g., dwm)
+found in the Makefile. I modify the resulting config.h file and run `make clean
+install` to install the software before committing and pushing my changes to my
+git repo.
## dwm and slstatus
Since dwm and slstatus are always running, `make install` will likely fail for
them. The operating system will prevent the installer from replacing running
executables with new ones. Hence, we must first stop the running instances of
-these programs:
-
- 1. Quit the window manager: `Mod + Shift + q` (or if you have modified the
- command, use that instead).
- 2. Switch to tty: `Ctrl + Alt + F1`.
- 3. Log in and change the directory to where dwm/slstatus is.
- 4. Run `make install` to install the software.
- 5. Switch back to the graphical session: `Ctrl + Alt + F5`.
- 6. Verify installation: `dwm -v`/`slstatus -v`.
- 7. Commit changes to git and push.
+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 `make
+install` to install the software and switch back to the graphical session
+(Ctrl + Alt + F5).
The key combinations for switching to the tty and back may differ across
systems. The ones listed above are for OpenBSD.