← Back to context

Comment by amusingimpala75

1 month ago

From the example:

  # XDG "compliant" programs
  .config/ etc/
  .local/state/ var/lib/
  .cache/ var/cache/

This is the first I’ve heard of using ~/etc instead of ~/.config as $XDG_CONFIG_DIR. Is there any precedent for that?

Well, it's just the natural extension of the FHS convention to the home directory.

I didn't come up with this idea, though, I think I saw this in a reddit thread and started doing it myself: I like that the directories are visible and follow the usual structure.

  • Why not push it under a hidden directory? Like ~/.local/etc? If we're reconstructing some of the hierarchy I think it makes sense to group and hide. Isn't the problem that the home folder is getting cluttered?

    • Why would I hide them? They're not really special and since I'm organising them with modetc they're not cluttered. For reference, my home looks something like this

          ~
          ├── bin         binaries and scripts
          ├── etc         configuration files
          ├── var
          │   ├── lib     program data
          │   └── cache   program caches
          ├── src         git repositories
          ├── img         pictures
          ├── mail        email in maildir format
          ├── note        text notes, todo
          ├── doc         documents
          └── down        downloads

      1 reply →