2024-01-01 15:08:18 +00:00
|
|
|
# Config Example
|
2024-01-01 15:10:59 +00:00
|
|
|
```json
|
|
|
|
|
[
|
2024-01-01 15:08:18 +00:00
|
|
|
{"boot": [
|
|
|
|
|
{"grub": [
|
2024-01-01 15:17:37 +00:00
|
|
|
{"themes": ["GradientGuy"]}
|
2024-01-01 15:08:18 +00:00
|
|
|
]}
|
|
|
|
|
]},
|
|
|
|
|
{"etc": [
|
|
|
|
|
"installList.txt",
|
|
|
|
|
"mkinitcpio.conf",
|
|
|
|
|
"pacman.conf",
|
2024-01-01 15:17:05 +00:00
|
|
|
{"default": ["grub"]},
|
2024-01-01 15:08:18 +00:00
|
|
|
{"pacman.d": ["hooks"]},
|
|
|
|
|
{"iwd":
|
|
|
|
|
["main.conf"]},
|
|
|
|
|
{"udev": [
|
|
|
|
|
{"rules.d": [
|
|
|
|
|
"60-thrustmaster.rules",
|
|
|
|
|
"80-yubikey.rules"
|
|
|
|
|
]}
|
|
|
|
|
]}
|
|
|
|
|
]},
|
|
|
|
|
{"usr": [
|
|
|
|
|
{"share": [
|
|
|
|
|
{"applications": [
|
|
|
|
|
"spotify.desktop",
|
|
|
|
|
"org.gnome.Evolution.desktop"
|
|
|
|
|
]},
|
|
|
|
|
{"icons": [
|
|
|
|
|
{"default": ["index.theme"]}
|
|
|
|
|
]}
|
|
|
|
|
]}
|
|
|
|
|
]},
|
|
|
|
|
{"home": [
|
|
|
|
|
{"$USER": [
|
|
|
|
|
".zshrc",
|
|
|
|
|
{".config": [
|
|
|
|
|
"btop",
|
|
|
|
|
"dunst",
|
|
|
|
|
"eww",
|
|
|
|
|
"hypr",
|
|
|
|
|
"kitty",
|
|
|
|
|
"qt5ct",
|
|
|
|
|
"rofi",
|
|
|
|
|
"spotify-tui",
|
|
|
|
|
"swaylock",
|
|
|
|
|
"zsh",
|
|
|
|
|
"gtk-3.0",
|
|
|
|
|
"cron",
|
|
|
|
|
{"systemd": [
|
|
|
|
|
{"user": ["spotifyd.service"]}
|
|
|
|
|
]},
|
|
|
|
|
"nvim"
|
|
|
|
|
]}
|
|
|
|
|
]}
|
|
|
|
|
]}
|
2024-01-01 15:10:59 +00:00
|
|
|
]
|
|
|
|
|
```
|
2024-01-01 15:08:18 +00:00
|
|
|
|
|
|
|
|
# Dotfiles Help Output
|
2024-01-01 15:10:59 +00:00
|
|
|
```console
|
|
|
|
|
CLI utility to help with managing user dotfiles
|
2024-01-01 15:08:18 +00:00
|
|
|
|
|
|
|
|
Usage: dotfiles [OPTIONS] <COMMAND>
|
|
|
|
|
|
|
|
|
|
Commands:
|
|
|
|
|
collect Collect files into a destination file
|
|
|
|
|
install Installs dotfiles from a git url
|
|
|
|
|
help Print this message or the help of the given subcommand(s)
|
|
|
|
|
|
|
|
|
|
Options:
|
|
|
|
|
-c, --config <CONFIG_FILE_PATH>
|
|
|
|
|
The file path to the config file [default: config.json]
|
|
|
|
|
-d, --destination <DESTINATION_DIR_PATH>
|
|
|
|
|
The path to the directory to do work in [default: ~/dotfiles]
|
|
|
|
|
-u, --use-username
|
|
|
|
|
Whether to treat the user's home folder as their username or "$USER"
|
|
|
|
|
-h, --help
|
|
|
|
|
Print help
|
|
|
|
|
-V, --version
|
2024-01-01 15:10:59 +00:00
|
|
|
Print version
|
|
|
|
|
```
|
2024-01-01 15:08:18 +00:00
|
|
|
|
|
|
|
|
# Collect Help Output
|
2024-01-01 15:10:59 +00:00
|
|
|
```console
|
|
|
|
|
Collect files into a destination directory
|
2024-01-01 15:08:18 +00:00
|
|
|
|
|
|
|
|
Usage: dotfiles collect
|
|
|
|
|
|
|
|
|
|
Options:
|
2024-01-01 15:10:59 +00:00
|
|
|
-h, --help Print help
|
|
|
|
|
```
|
2024-01-01 15:08:18 +00:00
|
|
|
|
|
|
|
|
# Install Help Output
|
2024-01-01 15:11:39 +00:00
|
|
|
```console
|
|
|
|
|
Installs dotfiles from a git url.
|
2024-01-01 15:08:18 +00:00
|
|
|
|
|
|
|
|
The repo either needs to have:
|
|
|
|
|
|
|
|
|
|
1)a config contained in the root directory
|
|
|
|
|
|
|
|
|
|
2)a config written to match the file structure of the repo
|
|
|
|
|
|
|
|
|
|
Usage: dotfiles install <URL>
|
|
|
|
|
|
|
|
|
|
Arguments:
|
|
|
|
|
<URL>
|
|
|
|
|
The git url to pull the repo from
|
|
|
|
|
|
|
|
|
|
Options:
|
|
|
|
|
-h, --help
|
2024-01-01 15:10:59 +00:00
|
|
|
Print help (see a summary with '-h')
|
|
|
|
|
```
|