Include user-dirs.dirs in .profile, and use capitalised versions of the set names.

We already use auto-capitalisation in the shell, so we actually benefit
from having capitalised names, considering it reduces headaches induced
by hardcoded paths. Also, now that we've accepted that the home
directory will be a mess, it will aid standing out.

Also source the file in .profile, because it should've been from the
start.
This commit is contained in:
2026-01-13 12:46:36 +01:00
parent dd604e6a39
commit 4f315f2af8
4 changed files with 14 additions and 11 deletions

View File

@@ -5,12 +5,12 @@
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported. # absolute path. No other format is supported.
# #
XDG_DESKTOP_DIR="$HOME/desktop" export XDG_PICTURES_DIR="$HOME/Photos"
XDG_DOWNLOAD_DIR="$HOME/downloads" export XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_TEMPLATES_DIR="$HOME/templates" export XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_PUBLICSHARE_DIR="$HOME/public" export XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_DOCUMENTS_DIR="$HOME/documents" export XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_MUSIC_DIR="$HOME/music" export XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_PICTURES_DIR="$HOME/photos" export XDG_MUSIC_DIR="$HOME/Music"
XDG_VIDEOS_DIR="$HOME/videos" export XDG_PICTURES_DIR="$HOME/Pictures"
XDG_PUBLIC_DIR="$HOME/public" export XDG_VIDEOS_DIR="$HOME/Videos"

2
.fehbg Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
feh --no-fehbg --image-bg black --bg-center "$(xdg-user-dir PICTURES)/eumetsat/curr.png"

View File

@@ -3,7 +3,7 @@
# set -xv # set -xv
OUTDIR="$HOME/photos/eumetsat" OUTDIR="$(xdg-user-dir PICTURES)/eumetsat"
# full screen coverage # full screen coverage
# PRJ=AUTO:42004,52,5,0 # PRJ=AUTO:42004,52,5,0

View File

@@ -24,6 +24,7 @@ export XDG_CONFIG_HOME="$HOME/.config" # ~/.config /etc
export XDG_DATA_HOME="$HOME/.local/share" # ~/.local/share /usr/share export XDG_DATA_HOME="$HOME/.local/share" # ~/.local/share /usr/share
export XDG_STATE_HOME="$HOME/.var/lib" # ~/.local/state /var/lib export XDG_STATE_HOME="$HOME/.var/lib" # ~/.local/state /var/lib
export XDG_CACHE_HOME="$HOME/.var/cache" # ~/.cache /var/cache export XDG_CACHE_HOME="$HOME/.var/cache" # ~/.cache /var/cache
[ -r "$XDG_CONFIG_HOME/user-dirs.dirs" ] && . "$XDG_CONFIG_HOME/user-dirs.dirs"
# I am not going to set environment variables such as HISTFILE, # I am not going to set environment variables such as HISTFILE,
# Since, cleaning up my $HOME is a losing battle, *every* application # Since, cleaning up my $HOME is a losing battle, *every* application