From: b3nj4m1n Date: Mon, 16 May 2022 18:43:10 +0000 (+0200) Subject: Added antidot configs X-Git-Tag: v0.2.0.0~56 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/c80f3f88dc3dd768fb690d49a7ec4bfcb7cf4bc0?hp=-c Added antidot configs Closes #2 Conversion done using Scr0nch's https://gitlab.com/Scr0nch/antidot-to-xdg-ninja-config-transformer/ --- c80f3f88dc3dd768fb690d49a7ec4bfcb7cf4bc0 diff --git a/README.md b/README.md index d97b7e8..7204c1d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ A shell script which checks your _$HOME_ for unwanted files and directories. When it encounters a file it knows about, it will tell you whether it's possible to move this file to an appropriate location, and how to do it. -Currently, a subset of the [arch wiki page on XDG_BASE_DIR](https://wiki.archlinux.org/title/XDG_Base_Directory) is implemented as configurations. +The configurations are from the [arch wiki page on XDG_BASE_DIR](https://wiki.archlinux.org/title/XDG_Base_Directory), [antidot](https://github.com/doron-cohen/antidot) (thanks to Scr0nch for writing a conversion tool), and contributed by other users. ## Running diff --git a/programs/aria2.json b/programs/aria2.json index 26ad0fe..62751d8 100644 --- a/programs/aria2.json +++ b/programs/aria2.json @@ -1,10 +1,15 @@ { - "name": "aria2", + "name": "aria2_dir", "files": [ { - "path": "$HOME/.aria2", - "movable": true, - "help": "Supported since commit _8bc1d37_.\n\nYou can move the configuration file to _XDG_CONFIG_HOME/aria2/aria2.conf_.\n\nYou can move the cache files to _XDG_CACHE_HOME/aria2_.\n" + "path": "${HOME}/.aria2/dht.dat", + "moveable": true, + "help": "Supported\n\nThe file ${HOME}/.aria2/dht.dat can be moved to ${XDG_CACHE_HOME}/aria2/dht.dat.\n" + }, + { + "path": "${HOME}/.aria2/aria.conf", + "moveable": true, + "help": "Supported\n\nThe file ${HOME}/.aria2/aria.conf can be moved to ${XDG_CONFIG_HOME}/aria2/aria2.conf.\n" } ] } diff --git a/programs/bash.json b/programs/bash.json new file mode 100644 index 0000000..7b8feec --- /dev/null +++ b/programs/bash.json @@ -0,0 +1,10 @@ +{ + "name": "bash", + "files": [ + { + "path": "${HOME}/.bash_history", + "moveable": true, + "help": "Export the following environment variables:\n\n```bash\nexport HISTFILE=${XDG_CACHE_HOME}/bash/history\n```\n" + } + ] +} diff --git a/programs/ccache.json b/programs/ccache.json new file mode 100644 index 0000000..ea23af8 --- /dev/null +++ b/programs/ccache.json @@ -0,0 +1,10 @@ +{ + "name": "ccache", + "files": [ + { + "path": "${HOME}/.ccache", + "moveable": true, + "help": "Export the following environment variables:\n\n```bash\nexport CCACHE_DIR=${XDG_CACHE_HOME}/ccache\n```\n" + } + ] +} diff --git a/programs/chez.json b/programs/chez.json new file mode 100644 index 0000000..722e131 --- /dev/null +++ b/programs/chez.json @@ -0,0 +1,10 @@ +{ + "name": "chez", + "files": [ + { + "path": "${HOME}/.chezscheme_history", + "moveable": true, + "help": "Alias petite to use custom locations:\n\n```bash\nalias petite=petite --eehistory ${XDG_DATA_HOME}/chezscheme/history\nalias scheme=scheme --eehistory ${XDG_DATA_HOME}/chezscheme/history```\n" + } + ] +} diff --git a/programs/fontconfig.json b/programs/fontconfig.json new file mode 100644 index 0000000..396a6f6 --- /dev/null +++ b/programs/fontconfig.json @@ -0,0 +1,10 @@ +{ + "name": "fontconfig", + "files": [ + { + "path": "${HOME}/.fontconfig", + "moveable": true, + "help": "Supported\n\nThe file ${HOME}/.fontconfig can be moved to ${XDG_DATA_HOME}/fontconfig.\n" + } + ] +} diff --git a/programs/fonts.json b/programs/fonts.json new file mode 100644 index 0000000..667f395 --- /dev/null +++ b/programs/fonts.json @@ -0,0 +1,10 @@ +{ + "name": "fonts", + "files": [ + { + "path": "${HOME}/.fonts", + "moveable": true, + "help": "Supported\n\nThe file ${HOME}/.fonts can be moved to ${XDG_DATA_HOME}/fonts.\n" + } + ] +} diff --git a/programs/gdb.json b/programs/gdb.json new file mode 100644 index 0000000..f0898fc --- /dev/null +++ b/programs/gdb.json @@ -0,0 +1,10 @@ +{ + "name": "gdb", + "files": [ + { + "path": "${HOME}/.gdbinit", + "moveable": true, + "help": "Alias gdb to use custom locations:\n\n```bash\nalias gdb=gdb -n -x $XDG_CONFIG_HOME/gdb/init```\n" + } + ] +} diff --git a/programs/gem.json b/programs/gem.json new file mode 100644 index 0000000..d926587 --- /dev/null +++ b/programs/gem.json @@ -0,0 +1,20 @@ +{ + "name": "gem", + "files": [ + { + "path": "${HOME}/.gem/ruby", + "moveable": true, + "help": "Supported\n\nThe file ${HOME}/.gem/ruby can be moved to ${XDG_CONFIG_HOME}/gem.\n" + }, + { + "path": "${HOME}/.gem", + "moveable": true, + "help": "Export the following environment variables:\n\n```bash\nexport GEM_HOME=${XDG_DATA_HOME}/gem\n```\n" + }, + { + "path": "${HOME}/.gem/specs", + "moveable": true, + "help": "Export the following environment variables:\n\n```bash\nexport GEM_SPEC_CACHE=${XDG_CACHE_HOME}/gem\n```\n" + } + ] +} diff --git a/programs/httpie.json b/programs/httpie.json new file mode 100644 index 0000000..2237d48 --- /dev/null +++ b/programs/httpie.json @@ -0,0 +1,10 @@ +{ + "name": "httpie", + "files": [ + { + "path": "${HOME}/.httpie", + "moveable": true, + "help": "Supported\n\nThe file ${HOME}/.httpie can be moved to ${XDG_CONFIG_HOME}/httpie.\n" + } + ] +} diff --git a/programs/less.json b/programs/less.json new file mode 100644 index 0000000..2f0fb8b --- /dev/null +++ b/programs/less.json @@ -0,0 +1,10 @@ +{ + "name": "less", + "files": [ + { + "path": "${HOME}/.lesshst", + "moveable": true, + "help": "Export the following environment variables:\n\n```bash\nexport LESSHISTFILE=${XDG_CACHE_HOME}/less/history\n```\n" + } + ] +} diff --git a/programs/lnav.json b/programs/lnav.json new file mode 100644 index 0000000..404e6ec --- /dev/null +++ b/programs/lnav.json @@ -0,0 +1,10 @@ +{ + "name": "lnav", + "files": [ + { + "path": "${HOME}/.lnav", + "moveable": true, + "help": "Supported\n\nThe file ${HOME}/.lnav can be moved to ${XDG_CONFIG_HOME}/lnav.\n" + } + ] +} diff --git a/programs/mapscii.json b/programs/mapscii.json new file mode 100644 index 0000000..468034d --- /dev/null +++ b/programs/mapscii.json @@ -0,0 +1,10 @@ +{ + "name": "mapscii", + "files": [ + { + "path": "${HOME}/.mapscii", + "moveable": true, + "help": "Supported\n\nThe file ${HOME}/.mapscii can be moved to ${XDG_CACHE_HOME}/mapscii.\n" + } + ] +} diff --git a/programs/pex.json b/programs/pex.json new file mode 100644 index 0000000..69bb3be --- /dev/null +++ b/programs/pex.json @@ -0,0 +1,10 @@ +{ + "name": "pex", + "files": [ + { + "path": "${HOME}/.pex", + "moveable": true, + "help": "Export the following environment variables:\n\n```bash\nexport PEX_ROOT=${XDG_CACHE_HOME}/pex\n```\n" + } + ] +} diff --git a/programs/pylint.json b/programs/pylint.json new file mode 100644 index 0000000..7f196d3 --- /dev/null +++ b/programs/pylint.json @@ -0,0 +1,10 @@ +{ + "name": "pylint", + "files": [ + { + "path": "${HOME}/.pylint.d", + "moveable": true, + "help": "Export the following environment variables:\n\n```bash\nexport PYLINTHOME=${XDG_CACHE_HOME}/pylint\n```\n" + } + ] +} diff --git a/programs/qrcp.json b/programs/qrcp.json new file mode 100644 index 0000000..ea76ddf --- /dev/null +++ b/programs/qrcp.json @@ -0,0 +1,10 @@ +{ + "name": "qrcp", + "files": [ + { + "path": "${HOME}/.qrcp", + "moveable": true, + "help": "Supported\n\nThe file ${HOME}/.qrcp can be moved to ${XDG_CONFIG_HOME}/qrcp/config.json.\n" + } + ] +} diff --git a/programs/racket.json b/programs/racket.json new file mode 100644 index 0000000..430389f --- /dev/null +++ b/programs/racket.json @@ -0,0 +1,10 @@ +{ + "name": "racket", + "files": [ + { + "path": "${HOME}/.racket", + "moveable": true, + "help": "Supported\n\nThe file ${HOME}/.racket can be moved to ${XDG_CONFIG_HOME}/racket.\n" + } + ] +} diff --git a/programs/tig.json b/programs/tig.json new file mode 100644 index 0000000..0d54273 --- /dev/null +++ b/programs/tig.json @@ -0,0 +1,10 @@ +{ + "name": "tig", + "files": [ + { + "path": "${HOME}/.tig_history", + "moveable": true, + "help": "Supported\n\nThe file ${HOME}/.tig_history can be moved to ${XDG_DATA_HOME}/tig/history.\n" + } + ] +} diff --git a/programs/weechat.json b/programs/weechat.json new file mode 100644 index 0000000..d50e22e --- /dev/null +++ b/programs/weechat.json @@ -0,0 +1,10 @@ +{ + "name": "weechat", + "files": [ + { + "path": "${HOME}/.weechat", + "moveable": true, + "help": "Export the following environment variables:\n\n```bash\nexport WEECHAT_HOME=${XDG_CONFIG_HOME}/weechat\n```\nAlias weechat to use custom locations:\n\n```bash\nalias weechat=weechat -d ${XDG_CONFIG_HOME}/weechat```\n" + } + ] +} diff --git a/programs/xcompose.json b/programs/xcompose.json new file mode 100644 index 0000000..36d6b28 --- /dev/null +++ b/programs/xcompose.json @@ -0,0 +1,15 @@ +{ + "name": "xcompose", + "files": [ + { + "path": "${HOME}/.XCompose", + "moveable": true, + "help": "Export the following environment variables:\n\n```bash\nexport XCOMPOSEFILE=${XDG_CONFIG_HOME}/X11/xcompose\n```\n" + }, + { + "path": "${HOME}/.compose-cache", + "moveable": true, + "help": "Export the following environment variables:\n\n```bash\nexport XCOMPOSECACHE=${XDG_CACHE_HOME}/X11/xcompose\n```\n" + } + ] +}