Move mackup's config to $XDG_CONFIG_HOME/mackup
- move all of mackup's config files into $XDG_CONFIG_HOME/mackup: + ~/.mackup.cfg => configs for mackup itself + ~/.mackup/*.cfg => custom sync rules applied by mackup - add automatic installation of `pipx` and `mackup` during the setup of the dotfiles + `pipx`'s config is moved into $XDG_CONFIG_HOME + `mackup`s config locations are adapted via a "little hack"
This commit is contained in:
parent
f76b32b790
commit
1cccb7df0e
10 changed files with 68 additions and 6 deletions
16
.config/mackup/README.md
Normal file
16
.config/mackup/README.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Configuration for `mackup`
|
||||
|
||||
This folder contains various **config** files
|
||||
to make [`mackup`](https://github.com/lra/mackup)
|
||||
synchronize (dot) files the general public should *not* see.
|
||||
Their format is described [here](https://github.com/lra/mackup/tree/master/doc#add-support-for-an-application-or-almost-any-file-or-directory).
|
||||
|
||||
|
||||
## Changed Location
|
||||
|
||||
`mackup`'s default configuration lies the the ~/.mackup.cfg file
|
||||
and in the ~/.mackup folder that holds config files with
|
||||
custom sync rules not supported "out of the box."
|
||||
|
||||
With a "little hack" during the setup of the dotfiles in this repository,
|
||||
`mackup`s config files are moved to $XDG_CONFIG_HOME/mackup.
|
||||
5
.config/mackup/anyconnect.cfg
Normal file
5
.config/mackup/anyconnect.cfg
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[application]
|
||||
name = Cisco's AnyConnect
|
||||
|
||||
[configuration_files]
|
||||
.anyconnect
|
||||
5
.config/mackup/gnupg.cfg
Normal file
5
.config/mackup/gnupg.cfg
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[application]
|
||||
name = gnupg
|
||||
|
||||
[configuration_files]
|
||||
.local/share/gnupg/trustdb.gpg
|
||||
14
.config/mackup/histories.cfg
Normal file
14
.config/mackup/histories.cfg
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[application]
|
||||
name = various history files
|
||||
|
||||
[configuration_files]
|
||||
# Note: $XDG_STATE_HOME => ~/.local/state
|
||||
.local/state/bash/history
|
||||
# .local/state/less/history -> less overwrites the symlink unfortunately
|
||||
.local/state/python/history
|
||||
# tig only supports $XDG_DATA_HOME
|
||||
.local/share/tig/history
|
||||
# entire folder as $XDG_CONFIG_HOME/psql/psqlrc sets one history file per database
|
||||
.local/state/psql
|
||||
.local/state/wget/history
|
||||
# .local/state/zsh/history -> zsh overwrites the symlink unfortunately
|
||||
35
.config/mackup/mackup.cfg
Normal file
35
.config/mackup/mackup.cfg
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
[storage]
|
||||
engine = file_system
|
||||
path = /home/alexander/data/getraenkemarkt
|
||||
directory = mackup
|
||||
|
||||
[applications_to_ignore]
|
||||
# Do not sync configuration files managed by
|
||||
# https://code.webartifex.biz/alexander/dotfiles
|
||||
|
||||
alacritty
|
||||
bash
|
||||
bat
|
||||
git
|
||||
flameshot
|
||||
mackup
|
||||
neofetch
|
||||
p10k
|
||||
pgsql
|
||||
poetry
|
||||
ssh
|
||||
vim
|
||||
zsh
|
||||
|
||||
# Do not sync $XDG_DATA_HOME/password-store as it contains symlinks
|
||||
# that Nextcloud does NOT support
|
||||
pass
|
||||
|
||||
|
||||
# This section is mainly needed such that this file
|
||||
# does not cause a ConfigParser error
|
||||
# => Background: The enclosing folder should only
|
||||
# contain config files for individual applications
|
||||
# that are to be synced and not mackup's own config
|
||||
[application]
|
||||
name = mackup
|
||||
5
.config/mackup/nautilus.cfg
Normal file
5
.config/mackup/nautilus.cfg
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[application]
|
||||
name = Gnome Files a.k.a. Nautilus
|
||||
|
||||
[xdg_configuration_files]
|
||||
gtk-3.0/bookmarks
|
||||
5
.config/mackup/ssh_private.cfg
Normal file
5
.config/mackup/ssh_private.cfg
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[application]
|
||||
name = private SSH (config) files
|
||||
|
||||
[configuration_files]
|
||||
.ssh/config
|
||||
Loading…
Add table
Add a link
Reference in a new issue