[How To] Lower case home folders

Share your own howto's etc. Not for support questions!

[How To] Lower case home folders

Postby pawRoot » 2018-11-10 21:46

It was always annoying for me that all home folders are starting with uppercase since i manage files mostly in CLI.
I found an easy way to change that and decided to share it.

Keep in mind that i do this RIGHT after doing a minimal install of Debian, so all my home folders are empty (well they actually don't even exist yet).

First create new directories:

Code: Select all
mkdir -p ~/desktop
mkdir -p ~/downloads
mkdir -p ~/templates
mkdir -p ~/public
mkdir -p ~/documents
mkdir -p ~/music
mkdir -p ~/pictures
mkdir -p ~/videos


^Type it one by one in terminal or create script.sh, paste it inside and run it like that
Code: Select all
chmod +x script.sh
./script.sh


Now create a file with settings, ~/.config/user-dirs.dirs and paste this inside

Code: Select all
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"


Voila :mrgreen:
User avatar
pawRoot
 
Posts: 572
Joined: 2016-12-28 18:26
Location: Poland

Re: [How To] Lower case home folders

Postby bw123 » 2018-11-11 00:11

What is ~/Templates and ~/Public for? Why do you need all different folders, can they point to one place just so it doesn't clutter up the house to have them all separate folders?

Why do we need them anyway? Looks like ms windows again... is it a wine thing? or just lazy windows programmers porting to linux for cheap thrills?
https://en.wikipedia.org/wiki/Cheap_Thr ... y_album%29
User avatar
bw123
 
Posts: 3585
Joined: 2011-05-09 06:02
Location: TN_USA

Re: [How To] Lower case home folders

Postby dilberts_left_nut » 2018-11-11 00:33

Gnome.

or more specifically, freedesktop.org

... and, yes, you can point them wherever you want, including to a single folder, or remove the xdg packages completely (but the DE metapackages will get frightened by that).
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4913
Joined: 2009-10-05 07:54
Location: enzed

Re: [How To] Lower case home folders

Postby bw123 » 2018-11-11 00:58

I've really never liked this way of organizing by filetype, maybe I'm weird. Instead I have categories, like Truck, Laptop, House, Projects, etc with several different types of content in each, and other folders in that when they get large. All related content, some html, jpg, video, txtfile whatever all about a certain subject.

I have never used these folders to store the content they are named for. I have Desktop and most of the others pointed to ~/.desktop and it's empty.
User avatar
bw123
 
Posts: 3585
Joined: 2011-05-09 06:02
Location: TN_USA

Re: [How To] Lower case home folders

Postby pawRoot » 2018-11-30 23:23

^These folders are created automatically if you launch for example a browser like Firefox and try to download a file.
User avatar
pawRoot
 
Posts: 572
Joined: 2016-12-28 18:26
Location: Poland


Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable