From: b3nj4m1n Date: Thu, 12 May 2022 17:52:13 +0000 (+0200) Subject: Add subset of supported programs from arch wiki article X-Git-Tag: v0.2.0.0~110 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/6bdc08811164a6f6a900ad5d83f576d742b7b9b0 Add subset of supported programs from arch wiki article --- diff --git a/README.md b/README.md index 44748d1..a9d99d6 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ 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. + ## Configuration The configuration is done in the _programs/_ directory. diff --git a/programs/alsa.json b/programs/alsa.json new file mode 100644 index 0000000..729d045 --- /dev/null +++ b/programs/alsa.json @@ -0,0 +1,10 @@ +{ + "name": "ALSA", + "files": [ + { + "path": "$HOME/.asoundrc", + "movable": true, + "help": "Supported since _v1.2.3_.\n\nYou can move the file to _XDG_CONFIG_HOME/alsa/asoundrc_.\n" + } + ] +} diff --git a/programs/antimicrox.json b/programs/antimicrox.json new file mode 100644 index 0000000..2fb5e21 --- /dev/null +++ b/programs/antimicrox.json @@ -0,0 +1,15 @@ +{ + "name": "antimicrox", + "files": [ + { + "path": "$HOME/.antimicro", + "movable": true, + "help": "" + }, + { + "path": "$HOME/.antimicrox", + "movable": true, + "help": "" + } + ] +} diff --git a/programs/apvlv.json b/programs/apvlv.json new file mode 100644 index 0000000..1be64c9 --- /dev/null +++ b/programs/apvlv.json @@ -0,0 +1,10 @@ +{ + "name": "apvlv", + "files": [ + { + "path": "$HOME/.apvlvrc", + "movable": true, + "help": "XDG is supported out-of-the-box, so we can simply move the file to _XDG_CONFIG_HOME/apvlv/apvlvrc_.\n" + } + ] +} diff --git a/programs/aria2.json b/programs/aria2.json new file mode 100644 index 0000000..26ad0fe --- /dev/null +++ b/programs/aria2.json @@ -0,0 +1,10 @@ +{ + "name": "aria2", + "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" + } + ] +} diff --git a/programs/asunder.json b/programs/asunder.json new file mode 100644 index 0000000..1c8735c --- /dev/null +++ b/programs/asunder.json @@ -0,0 +1,25 @@ +{ + "name": "asunder", + "files": [ + { + "path": "$HOME/.asunder", + "movable": true, + "help": "Supported since _v2.9.0_.\n\nYou can move the file to _XDG_CONFIG_HOME/asunder/asunder_.\n" + }, + { + "path": "$HOME/.asunder_album_artist", + "movable": true, + "help": "Supported since _v2.9.0_.\n\nYou can move the file to _XDG_CACHE_HOME/asunder/asunder_album_artist_.\n" + }, + { + "path": "$HOME/.asunder_album_genre", + "movable": true, + "help": "Supported since _v2.9.0_.\n\nYou can move the file to _XDG_CACHE_HOME/asunder/asunder_album_genre_.\n" + }, + { + "path": "$HOME/.asunder_album_title", + "movable": true, + "help": "Supported since _v2.9.0_.\n\nYou can move the file to _XDG_CACHE_HOME/asunder/asunder_album_title_.\n" + } + ] +} diff --git a/programs/binwalk.json b/programs/binwalk.json new file mode 100644 index 0000000..97e45dc --- /dev/null +++ b/programs/binwalk.json @@ -0,0 +1,10 @@ +{ + "name": "binwalk", + "files": [ + { + "path": "$HOME/.binwalk", + "movable": true, + "help": "Supported since commit _2051757_.\n\nYou can move the file to _XDG_CONFIG_HOME/binwalk_.\n" + } + ] +} diff --git a/programs/byobu.json b/programs/byobu.json new file mode 100644 index 0000000..5915792 --- /dev/null +++ b/programs/byobu.json @@ -0,0 +1,10 @@ +{ + "name": "byobu", + "files": [ + { + "path": "$HOME/.byobu", + "movable": true, + "help": "Supported since _v4.17_.\n\nYou can move the file to _XDG_CONFIG_HOME/byobu_.\n" + } + ] +} diff --git a/programs/curl.json b/programs/curl.json new file mode 100644 index 0000000..add51ae --- /dev/null +++ b/programs/curl.json @@ -0,0 +1,10 @@ +{ + "name": "cURL", + "files": [ + { + "path": "$HOME/.curlrc", + "movable": true, + "help": "Supported since _v7.73.0_.\n\nYou can move the file to _XDG_CONFIG_HOME/.curlrc_.\n" + } + ] +} diff --git a/programs/git.json b/programs/git.json new file mode 100644 index 0000000..e0a5248 --- /dev/null +++ b/programs/git.json @@ -0,0 +1,10 @@ +{ + "name": "git", + "files": [ + { + "path": "$HOME/.gitconfig", + "movable": true, + "help": "XDG is supported out-of-the-box, so we can simply move the file to _XDG_CONFIG_HOME/git/config_.\n" + } + ] +} diff --git a/programs/goobookrc.json b/programs/goobookrc.json new file mode 100644 index 0000000..8bd3c75 --- /dev/null +++ b/programs/goobookrc.json @@ -0,0 +1,10 @@ +{ + "name": "goobookrc", + "files": [ + { + "path": "$HOME/.goobookrc", + "movable": true, + "help": "Supported since _v3.5_.\n\nYou can move the file to _XDG_CONFIG_HOME/goobookrc_.\n" + } + ] +} diff --git a/programs/latexmk.json b/programs/latexmk.json new file mode 100644 index 0000000..13e152a --- /dev/null +++ b/programs/latexmk.json @@ -0,0 +1,10 @@ +{ + "name": "latexmk", + "files": [ + { + "path": "$HOME/.latexmkrc", + "movable": true, + "help": "XDG is supported out-of-the-box, so we can simply move the file to _XDG_CONFIG_HOME/latexmk/latexmkrc_.\n" + } + ] +} diff --git a/programs/mercurial.json b/programs/mercurial.json new file mode 100644 index 0000000..db08545 --- /dev/null +++ b/programs/mercurial.json @@ -0,0 +1,10 @@ +{ + "name": "mercurial", + "files": [ + { + "path": "$HOME/.hgrc", + "movable": true, + "help": "Supported since _v4.2_.\n\nYou can move the file to _XDG_CONFIG_HOME/hg/hgrc_.\n" + } + ] +} diff --git a/programs/msmtp.json b/programs/msmtp.json new file mode 100644 index 0000000..9233429 --- /dev/null +++ b/programs/msmtp.json @@ -0,0 +1,10 @@ +{ + "name": "msmtp", + "files": [ + { + "path": "$HOME/.msmtprc", + "movable": true, + "help": "Supported since _v1.6.7_.\n\nYou can move the file to _XDG_CONFIG_HOME/msmtp/config_.\n" + } + ] +} diff --git a/programs/notmuch.json b/programs/notmuch.json new file mode 100644 index 0000000..875f6cc --- /dev/null +++ b/programs/notmuch.json @@ -0,0 +1,11 @@ +{ + "name": "notmuch", + "files": [ + { + "path": "$HOME/.notmuch-config", + "movable": true, + "help": "Supported out-of-the-box.\n\nYou can move the file to _XDG_CONFIG_HOME/notmuch/default/config_.\n" + } + ] +} + diff --git a/programs/sandboxd.json b/programs/sandboxd.json new file mode 100644 index 0000000..1a92da3 --- /dev/null +++ b/programs/sandboxd.json @@ -0,0 +1,10 @@ +{ + "name": "sandbox", + "files": [ + { + "path": "$HOME/.sandboxrc", + "movable": true, + "help": "Supported since commit _91e0b6a_.\n\nYou can move the file to _XDG_CONFIG_HOME/sandboxd/sandboxrc_.\n" + } + ] +} diff --git a/programs/scummvm.json b/programs/scummvm.json new file mode 100644 index 0000000..89450c6 --- /dev/null +++ b/programs/scummvm.json @@ -0,0 +1,15 @@ +{ + "name": "scummvm", + "files": [ + { + "path": "$HOME/.scummvmrc", + "movable": true, + "help": "Supported since commit _7d014be_.\n\nYou can move the file to _XDG_CONFIG_HOME/scummvm/scummvm.ini_.\n" + }, + { + "path": "$HOME/.scummvm", + "movable": true, + "help": "Supported since commit _7d014be_.\n\nYou can move the directory to _XDG_DATA_HOME/scummvm/saves_.\n" + } + ] +} diff --git a/programs/swap.json b/programs/swap.json new file mode 100644 index 0000000..aad4fbc --- /dev/null +++ b/programs/swap.json @@ -0,0 +1,10 @@ +{ + "name": "sway", + "files": [ + { + "path": "$HOME/.sway", + "movable": true, + "help": "Supported since commit _614393c_.\n\nYou can move the file _~/.sway/config_ to _XDG_CONFIG_HOME/sway/config_.\n" + } + ] +} diff --git a/programs/tmux.json b/programs/tmux.json new file mode 100644 index 0000000..fa31c53 --- /dev/null +++ b/programs/tmux.json @@ -0,0 +1,10 @@ +{ + "name": "tmux", + "files": [ + { + "path": "$HOME/.tmux.conf", + "movable": true, + "help": "Supported since _v3.2_ (Partial support since _v3.1_).\n\nYou can move the file to _XDG_CONFIG_HOME/tmux/tmux.conf_.\n" + } + ] +} diff --git a/programs/xmobar.json b/programs/xmobar.json new file mode 100644 index 0000000..423605e --- /dev/null +++ b/programs/xmobar.json @@ -0,0 +1,10 @@ +{ + "name": "xmobar", + "files": [ + { + "path": "$HOME/.xmobarrc", + "movable": true, + "help": "Supported since commit _9fc6b37_.\n\nYou can move the file to _XDG_CONFIG_HOME/xmobar/xmobarrc_.\n" + } + ] +} diff --git a/programs/yarn.json b/programs/yarn.json new file mode 100644 index 0000000..163f6bc --- /dev/null +++ b/programs/yarn.json @@ -0,0 +1,15 @@ +{ + "name": "yarn", + "files": [ + { + "path": "$HOME/.yarnrc", + "movable": false, + "help": "You can try to alias _yarn_ to use a custom yarnrc location.\n\n```bash\nyarn --use-yarnrc $XDG_CONFIG_HOME/yarn/config\n```\n\n_yarn_ might still generate this file by itself though.\n" + }, + { + "path": "$HOME/.yarn", + "movable": false, + "help": "Changing this is currently not supported.\n" + } + ] +}