You are not logged in.
Pages: 1
Topic closed
Hi, I just installed st and I can't for the life of me find the config.h file I'm supposed to be editing to configure it.
Where are these types of files usually located? The wiki just refers to it as the "config.h" file which doesn't exactly help me much.
Thank you.
Last edited by gaulderson (2017-05-06 00:34:52)
Offline
Welcome to the arch linux forums gaulderson.
See Pacman#Querying_package_databases ( specifically the entry "To retrieve a list of the files installed by a package" )
Edit:
See also https://git.archlinux.org/svntogit/comm … ackages/st Makepkg PKGBUILD Arch_Build_System
Last edited by loqs (2017-05-05 23:36:54)
Offline
loqs,
Thank you for the quick response.
So running
pacman -Ql stresults in:
st /usr/
st /usr/bin/
st /usr/bin/st
st /usr/share/
st /usr/share/doc/
st /usr/share/doc/st/
st /usr/share/doc/st/README
st /usr/share/licenses/
st /usr/share/licenses/st/
st /usr/share/licenses/st/LICENSE
st /usr/share/man/
st /usr/share/man/man1/
st /usr/share/man/man1/st.1.gzNo explicit config.h yet, but I figure it's probably worth taking a look at the README.
Installation
------------
Edit config.mk to match your local setup (st is installed into
the /usr/local namespace by default).Afterwards enter the following command to build and install st (if
necessary as root):make clean install
So i check /usr/local, but there's nothing there (as would make sense based on what pacman said, but I thought it was worth checking out anyway).
I feel like I'm missing something really obvious here so I apologize in advance.
Offline
If you installed it using pacman, as opposed to building it yoursefl with asp, you just get the vanilla config.
Offline
Ah okay, thank you. Looks like I'm off to the AUR.
Offline
Looks like I'm off to the AUR.
Not exactly. The AUR is just a place where users can submit their PKGBUILDs, but those are not official packages.
Although "installing a package from the AUR" implies using a PKGBUILD to build something with makepkg, the opposite implication is not true: it is quite possible that a PKGBUILD comes from somewhere else than the AUR.
In this case, st is an official package, so its PKGBUILD comes from...
Offline
When running makepkg after cloning the repo, there is a message about editing config.h, but it installs without giving me the ability to edit the file. When running makepkg again after editing config.h, it says "A package has already been built. Installing existing package..." and proceeding with the install does not apply my changes. Two questions:
1. How do I make edits to config.h actually take effect?
2. Is there seriously no way to change the configuration of st after install? Do I really have to reinstall it every time I want to change its settings? That seems ridiculous and unnecessary.
Last edited by melodian (2021-08-08 00:04:33)
Offline
1. How do I make edits to config.h actually take effect?
See the -e and -f flags in `man makepkg`.
2... Do I really have to reinstall it every time I want to change its settings? That seems ridiculous and unnecessary.
Ridiculous is subjective, but yes it's necessary. If you don't accept the logic behind why that method is used, then I'm not sure why you'd even want to use st in the first place. There are ample other terminals out there that have run-time configs. St is the suckless terminal, and compile-time customization and configuration is really at the heart of the suckless philosophy. Not everyone agrees with this philosophy, and there are very sound critiques of it - but if you don't like the suckless approach, don't use their software.
EDIT: Nevermind. I just realized that not only are you not the OP, but tis is an ancent solved thread. Please see our forum guidlines and avoid necrobumping and / or hijacking threads.
Last edited by Trilby (2021-08-08 00:53:28)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
...and compile-time customization and configuration is really at the heart of the suckless philosophy.
Why is that? I can't find anything on their website about it.
Offline
melodian,
This is a 5-year old thread that has already been solved. Please open a new thread for your issue and if you feel it is relevant link to this one (as per the Code of Conduct).
Closing.
All the best,
-HG
Offline
Pages: 1
Topic closed