From da8e1da2690cd59929f27259b7e36f558c48ab2d Mon Sep 17 00:00:00 2001 From: snit Date: Thu, 2 Jan 2025 15:51:10 -0600 Subject: [PATCH] /comp/hier7.gmi addendum ii --- comp/hier7.gmi | 21 +++++++++++++++++++-- meta/post-ideas.gmi | 2 ++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/comp/hier7.gmi b/comp/hier7.gmi index f875217..1606d19 100644 --- a/comp/hier7.gmi +++ b/comp/hier7.gmi @@ -135,7 +135,7 @@ Currently this is what my home directory looks like: * ~/var/lib/ for state data (replaces ~/.local/state) * ~/.mozilla/ for Firefox data (can't move) * ~/.ssh/ for OpenSSH data (can't move) -* ~/.profile for my shell profile +* ~/.profile for my shell profile (can't move) * ~/.shrc for my interactive shell settings ## Conclusion @@ -148,9 +148,26 @@ Anyways, that's all I've got for now. If you've any questions or feedback on thi => https://matrix.to/#/@snit:isekai.rocks Matrix -## Addendum 1 +## Addendum I Just wanted to add that I no longer mount ~/tmp/ as a tmpfs. It honestly works fine for the most part, but I had transmission set to download incomplete torrents to ~/tmp/ before moving them to ~/media/ when finished, which gave me a lot of out-of-memory errors if I downloaded a large enough torrent, or a lot of torrents at once. Also, I use trash-cli and have rm aliased to it. When ~/tmp/ is mounted as a tmpfs, it actually gets its own ~/tmp/.Trash/ directory, as its a different filesystem from /home. Its not a big deal but its somewhat annoying having two separate trash directories. And if you haven't figured it out already from uh everything above this, annoyances when it comes to directories are intolerable on my system. So I don't mount it anymore, and instead just use it as a regular directory that I clear out sometimes. The only real benefit it used to bring was clearing out automatically on shutdown, but I could probably just add an rm line to my .profile for a similar effect. + +## Adendum II +I've made a couple more changes since the last update. + +First, I've updated my ~/.profile to work similarly to Arch's /etc/profile, which actually outsources most of its work to files in /etc/profile.d/. I've opted to do the same thing, with specific files for my XDG Base Directory compliance, and for setting other variables related to Wayland or fcitx5. Since I'd put most of ~/.profile in ~/etc/, and ~/.shrc can be put literally anywhere (as it's set by $ENV), I've opted to move it to ~/etc/sh/shrc. This reduces my total number of cringe noncompliant dotfiles in $HOME to three. + +The other change that I've made is the addition of ~/libexec/ and ~/sbin/, which I think are truly underutilised directories even in the system hierarchies (Arch foregoes them entirely in favour of just using /bin/ and /lib/). + +I use ~/libexec/ for anything I'd normally put in ~/bin/, but that I'd rarely, if ever, run directly. Most of these are scripts related to setting up my window manager, and are thus only ever executed by my window manager. There's also one that I have run at shell startup, which prints every dotfile that clutters my home directory, and automatically deletes all dotfiles in a specified list (only deleting what I know I don't care about). I mostly added ~/libexec/ because I've been thinking of ways to keep my $PATH namespace less cluttered, and this is something easy to implement AND quite elegant in my opinion. + +I don't actually use ~/sbin/ on my home systems. There's only one script I use at home that needs to be run as root, and it's run by my window manager, so I've opted instead to just give it a nopass option in my /etc/doas.conf, and place it in ~/libexec/. On isekai.rocks, though, I do actually use ~/sbin/. The main two scripts I use in ~/sbin/ are one to sync the live isekai.rocks capsule to the git repository, and another to set up a new user account on the pubnix. There was also previously one that updated Minecraft mods, automatically creating new zip files for download, and restarting the server to load the new mods. + +So, to recap, the changes I've made since the original post were: +* Stop mounting ~/tmp/ as a tmpfs +* Move ~/.shrc to ~/etc/sh/shrc +* Create ~/libexec/ +* Create ~/sbin/ diff --git a/meta/post-ideas.gmi b/meta/post-ideas.gmi index 34530c4..c772463 100644 --- a/meta/post-ideas.gmi +++ b/meta/post-ideas.gmi @@ -11,6 +11,7 @@ A collection of ideas that I'd like to write about if I ever feel like it, sorte * My browser setup, or really any other odd aspect of my current setup * A list of things I would like to see in my ideal operating system, POSIX-compatibility be damned * Tag-based filesystem benefits from a perspective other than media curation (system administration, programming, everyday usage) +* Customisation and choice in software versus having a cohesive system, and how to have both at once (standard interfaces between programs?) ## /lang/ * Holistic conlanging @@ -46,3 +47,4 @@ A collection of ideas that I'd like to write about if I ever feel like it, sorte * Gatekeeping is good, actually (sometimes) (i.e. IRC, 4chan) * What makes a good Minecraft (or general in-game) currency? * Why Minecraft is a really bad game for (purely in-game) capitalism most of the time +* Why do people find suffering to be cool? The kind of suffering that you see in people who fake mental illness or disability, or that you see in certain cases of chuunibyou