From c79b70916da09c7c9a543e0d7c5cdd220641e5db Mon Sep 17 00:00:00 2001 From: Phantop Date: Sat, 11 Jan 2020 15:28:38 -0500 Subject: [PATCH] Change user-dirs handling to a script --- .config/user-dirs.dirs | 15 --------------- .symlinks | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 15 deletions(-) delete mode 100644 .config/user-dirs.dirs diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs deleted file mode 100644 index 99113e0..0000000 --- a/.config/user-dirs.dirs +++ /dev/null @@ -1,15 +0,0 @@ -# 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/" -XDG_DOWNLOAD_DIR="/mnt/LocalDiskD/Downloads" -XDG_DOCUMENTS_DIR="$HOME/Documents" -XDG_MUSIC_DIR="/mnt/LocalDiskD/Music" -XDG_PICTURES_DIR="/mnt/LocalDiskD/Pictures" -XDG_VIDEOS_DIR="/mnt/LocalDiskD/Videos" -XDG_TEMPLATES_DIR="$HOME/" -XDG_PUBLICSHARE_DIR="$HOME/" diff --git a/.symlinks b/.symlinks index 9c5b706..9431bb5 100755 --- a/.symlinks +++ b/.symlinks @@ -3,3 +3,22 @@ for i in Downloads Music Pictures Videos rm ~/$i ln -s $D/$i ~/$i end + +for i in '# This file is written by xdg-user-dirs-update + # If you want to change or add directories, just edit the line youre + # 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/" + XDG_DOWNLOAD_DIR="/mnt/LocalDiskD/Downloads" + XDG_DOCUMENTS_DIR="$HOME/Documents" + XDG_MUSIC_DIR="/mnt/LocalDiskD/Music" + XDG_PICTURES_DIR="/mnt/LocalDiskD/Pictures" + XDG_VIDEOS_DIR="/mnt/LocalDiskD/Videos" + XDG_TEMPLATES_DIR="$HOME/" + XDG_PUBLICSHARE_DIR="$HOME/"' + echo $i > ~.config/user-dirs.dir +end +