2023-11-27 18:03:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
config="/usr/bin/git --git-dir=$HOME/.cfg --work-tree=$HOME"
|
|
|
|
|
|
|
|
$config add "$XDG_CONFIG_HOME/alacritty"
|
|
|
|
$config add "$XDG_CONFIG_HOME/fontconfig"
|
2024-01-22 23:51:58 +00:00
|
|
|
$config add "$XDG_CONFIG_HOME/gtk-2.0"
|
2023-11-27 18:03:12 +00:00
|
|
|
$config add "$XDG_CONFIG_HOME/gtk-3.0"
|
|
|
|
$config add "$XDG_CONFIG_HOME/gtk-4.0"
|
|
|
|
$config add "$XDG_CONFIG_HOME/hypr"
|
|
|
|
$config add "$XDG_CONFIG_HOME/mako"
|
|
|
|
$config add "$XDG_CONFIG_HOME/nvim"
|
|
|
|
$config add "$XDG_CONFIG_HOME/sway"
|
2024-04-05 19:11:06 +00:00
|
|
|
$config add "$XDG_CONFIG_HOME/swaylock"
|
2023-11-27 18:03:12 +00:00
|
|
|
$config add "$XDG_CONFIG_HOME/waybar"
|
|
|
|
$config add "$XDG_CONFIG_HOME/wofi"
|
2024-01-22 23:51:58 +00:00
|
|
|
$config add "$XDG_CONFIG_HOME/desktop-common"
|
|
|
|
$config add "$XDG_CONFIG_HOME/ranger"
|
|
|
|
$config add "$XDG_CONFIG_HOME/kitty"
|
2023-11-27 18:03:12 +00:00
|
|
|
$config add "$XDG_CONFIG_HOME/mimeapps.list"
|
|
|
|
$config add "$XDG_CONFIG_HOME/pfetch_logos"
|
|
|
|
$config add "$XDG_CONFIG_HOME/starship.toml"
|
|
|
|
$config add "$XDG_CONFIG_HOME/user-dirs.dirs"
|
|
|
|
$config add "$HOME/.gtkrc-2.0"
|
|
|
|
$config add "$HOME/.gnupg/gpg-agent.conf"
|
|
|
|
$config add "$HOME/.gitconfig"
|
|
|
|
$config add "$HOME/.zshrc"
|
|
|
|
$config add "$HOME/.zprofile"
|
|
|
|
$config add "$HOME/.local/share/fonts"
|
2023-11-28 14:08:22 +00:00
|
|
|
$config add "$HOME/.local/share/dbus-1"
|
2023-11-27 18:03:12 +00:00
|
|
|
$config add "$HOME/.local/bin/dotfiles"
|
|
|
|
$config add "$HOME/.ssh/config"
|
|
|
|
|
|
|
|
aur="$HOME/aur"
|
|
|
|
packages="$HOME/packages"
|
|
|
|
|
2023-11-27 18:05:45 +00:00
|
|
|
paru -Qeqm > $aur
|
|
|
|
pacman -Qeq | grep -vf "$aur" > "$packages"
|
2023-11-27 18:03:12 +00:00
|
|
|
|
2024-04-09 22:18:55 +00:00
|
|
|
root_dir() {
|
|
|
|
mkdir -p "$HOME/.root$1"
|
|
|
|
cp "$1"/* "$HOME/.root$1"
|
|
|
|
$config add "$HOME/.root$1"
|
|
|
|
rm -fr "$HOME/.root$1"
|
|
|
|
}
|
|
|
|
|
|
|
|
root_file() {
|
|
|
|
dir=$(basename "$1")
|
|
|
|
mkdir -p "$HOME/.root$dir"
|
|
|
|
cp "$1" "$HOME/.root$dir"
|
|
|
|
$config add "$HOME/.root$dir"
|
|
|
|
rm -fr "$HOME/.root$dir"
|
|
|
|
}
|
|
|
|
|
|
|
|
root_dir /etc/initcpio/post
|
|
|
|
root_dir /etc/pacman.d/hooks
|
|
|
|
root_dir /etc/mkinitcpio.d
|
|
|
|
root_dir /etc/cmdline.d
|
|
|
|
root_file /etc/paru.conf
|
|
|
|
root_file /etc/mkinitcpio.conf
|
|
|
|
root_file /etc/makepkg.conf
|
|
|
|
|
2023-11-27 18:03:12 +00:00
|
|
|
$config add "$aur"
|
|
|
|
$config add "$packages"
|
|
|
|
|
|
|
|
rm "$aur"
|
|
|
|
rm "$packages"
|