aboutsummaryrefslogtreecommitdiff
path: root/content/blog/2022-12-17-st.md
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-04-29 14:18:55 -0500
committerChristian Cleberg <hello@cleberg.net>2024-04-29 14:18:55 -0500
commitfdd80eadcc2f147d0198d94b7b908764778184a2 (patch)
treefbec9522ea9aa13e8105efc413d2498c3c5b4cd6 /content/blog/2022-12-17-st.md
parentd6c80fdc1dea9ff242a4d3c7d3939d2727a8da56 (diff)
downloadcleberg.net-fdd80eadcc2f147d0198d94b7b908764778184a2.tar.gz
cleberg.net-fdd80eadcc2f147d0198d94b7b908764778184a2.tar.bz2
cleberg.net-fdd80eadcc2f147d0198d94b7b908764778184a2.zip
format line wrapping and fix escaped characters
Diffstat (limited to 'content/blog/2022-12-17-st.md')
-rw-r--r--content/blog/2022-12-17-st.md56
1 files changed, 26 insertions, 30 deletions
diff --git a/content/blog/2022-12-17-st.md b/content/blog/2022-12-17-st.md
index 46f6cec..13236a0 100644
--- a/content/blog/2022-12-17-st.md
+++ b/content/blog/2022-12-17-st.md
@@ -7,17 +7,15 @@ draft = false
# st
-[st](https://st.suckless.org) standards for Simple Terminal, a simple
-terminal implementation for X made by the
-[suckless](https://suckless.org) team.
+[st](https://st.suckless.org) standards for Simple Terminal, a simple terminal
+implementation for X made by the [suckless](https://suckless.org) team.
-This post walks through the dependencies needed and process to build and
-install `st` on Fedora Workstation.
+This post walks through the dependencies needed and process to build and install
+`st` on Fedora Workstation.
## Obtain Files
-To start, obtain the source files for `st` via
-`git clone`.
+To start, obtain the source files for `st` via `git clone`.
```sh
mkdir ~/suckless && cd ~/suckless
@@ -26,8 +24,8 @@ git clone https://git.suckless.org/st && cd st
## Dependencies
-Once you have the files and are in the `st` directory, ensure
-the following packages are installed.
+Once you have the files and are in the `st` directory, ensure the following
+packages are installed.
```sh
sudo dnf update && sudo dnf upgrade
@@ -42,13 +40,12 @@ Before building, ensure that you read the README file.
cat README
```
-Once you\'ve read the instructions, open the `config.mk` file
-and ensure it matches your setup. If you\'re not sure, leave the default
-options within the file.
+Once you've read the instructions, open the `config.mk` file and ensure it
+matches your setup. If you're not sure, leave the default options within the
+file.
-Finally, you can build `st` with the following command.
-Ensure you run as root (e.g., `sudo`) or else you may not end
-up with a usable application file.
+Finally, you can build `st` with the following command. Ensure you run as root
+(e.g., `sudo`) or else you may not end up with a usable application file.
```sh
sudo make clean install
@@ -56,39 +53,38 @@ sudo make clean install
## Customization (Patches)
-Note that customizing `st` requires you to modify the source
-files or to download one of the [available
-patches](https://st.suckless.org/patches/) for suckless.org.
+Note that customizing `st` requires you to modify the source files or to
+download one of the [available patches](https://st.suckless.org/patches/) for
+suckless.org.
-If you\'ve already installed `st` and want to customize or
-install a patch, start by uninstalling the current program.
+If you've already installed `st` and want to customize or install a patch,
+start by uninstalling the current program.
```sh
cd ~/suckless/st
sudo make uninstall
```
-Next, grab the `<path>.diff` file from the page of the patch
-you chose. For example, I will be using the
-[defaultfontsize](https://st.suckless.org/patches/defaultfontsize/)
-patch in the below example.
+Next, grab the `<path>.diff` file from the page of the patch you chose. For
+example, I will be using the
+[defaultfontsize](https://st.suckless.org/patches/defaultfontsize/) patch in the
+below example.
```sh
wget https://st.suckless.org/patches/defaultfontsize/st-defaultfontsize-20210225-4ef0cbd.diff
```
-Once the file is downloaded inside the `st` folder, apply the
-patch and re-install the program. You may need to install the
-`patch` command if you don\'t have it installed already (you
-should have installed it above).
+Once the file is downloaded inside the `st` folder, apply the patch and
+re-install the program. You may need to install the `patch` command if you
+don't have it installed already (you should have installed it above).
```sh
patch -i st-defaultfontsize-20210225-4ef0cbd.diff
sudo make clean install
```
-Once installed, you can use the default font size patch to launch
-`st` with any font size you wish:
+Once installed, you can use the default font size patch to launch `st` with any
+font size you wish:
```sh
st -z 16