From 34303758e6a1357d0bb41f2e300732eeb404571a Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 22 Mar 2019 11:49:12 +0100 Subject: [PATCH] specify home directory structure --- .config/shell/login.d/xdg.sh | 6 ++++++ .config/user-dirs.dirs | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .config/user-dirs.dirs diff --git a/.config/shell/login.d/xdg.sh b/.config/shell/login.d/xdg.sh index 9e5c596..de86d61 100644 --- a/.config/shell/login.d/xdg.sh +++ b/.config/shell/login.d/xdg.sh @@ -1,3 +1,9 @@ +# these are mandatory for the shell to work export XDG_CONFIG_HOME="$HOME/.config" export XDG_CACHE_HOME="$HOME/.cache" + +# these are my personal 'important' directories + +export XDG_PROJECTS_DIR="$HOME/projects" + export EDITOR=nvim diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs new file mode 100644 index 0000000..0384e6d --- /dev/null +++ b/.config/user-dirs.dirs @@ -0,0 +1,15 @@ +# This file is written by xdg-user-dirs-update +# If you want to change or add directories, just edit the line you're +# interested in. All local changes will be retained on the next run. +# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped +# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an +# absolute path. No other format is supported. +# +XDG_DESKTOP_DIR="$HOME/desktop" +XDG_DOWNLOAD_DIR="$HOME/downloads" +XDG_TEMPLATES_DIR="$HOME/templates" +XDG_PUBLICSHARE_DIR="$HOME/public" +XDG_DOCUMENTS_DIR="$HOME/documents" +XDG_MUSIC_DIR="$HOME/music" +XDG_PICTURES_DIR="$HOME/pictures" +XDG_VIDEOS_DIR="$HOME/videos"