XDG Directory Structures
Hey guys,
So I've really come to enjoy the XDG way of saving configuration files.
e.g. ~/.i3/config (less preferred, standard) ~/.config/i3/config (preferred, xdg)
My question is... how compatible is this with other configuration files?
Is it possible to move the configuration files below into xdg structure preferred?
- ~/.bashrc
- ~/.fehbg
- ~/.Xresources
- ~/.zshrc
- ~/.xinitrc
About this post
- Posted
- Archived
- Score
- 14 · 100% up
- Kind
- Text
- ID
- 54ebmk
6 comments
You could place them there and create a symlink to what the application usually looks for. But that wouldn't really clean up your directory at all... :/ Sadly, a lot of applications are just not yet XDG compliant.
Deleted before we saved it.
For some it's not even a matter of time. For instance, the tmux core contributor refuses to add support.
The wiki has a page on XDG base directory support... https://wiki.archlinux.org/index.php/XDG_Base_Directory_support#Supported
It's not on that page, but feh should work: the man page says that it will try reading from
$XDG_CONFIG_HOM/feh/. The others will be more difficult.. I'd do as /u/-Eunjae suggested if you really want it to happen.I moved .zshrc to ~/.config/zsh same with bash among a few other things
.bashrcBash doesn't support XRDB; I resolve it by having symlinks
I also have it put
HISTFILEin an XDG location:.xinitrcNeither xinit nor Xorg support XDG. I resolve it by having a pair of symlinks:
.XresourcesTo quote Archwiki ([annotation] mine):
Now, you've implied that you use xinit instead of a proper XDM. If that's the case, it's just a matter of adjusting the
xrdbcommand in your xinitrc. I have it use the command