init
This commit is contained in:
24
.gitmodules
vendored
Normal file
24
.gitmodules
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
[submodule "nwg-bar"]
|
||||
path = nwg-bar
|
||||
url = https://git.everestlinux.org/lw-everestlinux/nwg-bar-config
|
||||
[submodule "waybar"]
|
||||
path = waybar
|
||||
url = https://git.everestlinux.org/lw-everestlinux/waybar-config
|
||||
[submodule "fuzzel"]
|
||||
path = fuzzel
|
||||
url = https://git.everestlinux.org/lw-everestlinux/fuzzel-config
|
||||
[submodule "gtk"]
|
||||
path = gtk
|
||||
url = https://git.everestlinux.org/lw-everestlinux/gtk-themes
|
||||
[submodule "icons"]
|
||||
path = icons
|
||||
url = https://git.everestlinux.org/lw-everestlinux/icons
|
||||
[submodule "kitty"]
|
||||
path = kitty
|
||||
url = https://git.everestlinux.org/lw-everestlinux/kitty-config
|
||||
[submodule "riceman"]
|
||||
path = riceman
|
||||
url = https://git.everestlinux.org/lw-everestlinux/riceman
|
||||
[submodule "hypr"]
|
||||
path = hypr
|
||||
url = https://git.everestlinux.org/lw-everestlinux/hyprland-config
|
||||
1
fuzzel
Submodule
1
fuzzel
Submodule
Submodule fuzzel added at 239c1fec55
1
gtk
Submodule
1
gtk
Submodule
Submodule gtk added at eba4b69a87
1
hypr
Submodule
1
hypr
Submodule
Submodule hypr added at 79591a8216
1
icons
Submodule
1
icons
Submodule
Submodule icons added at d3e4c412d9
42
install.sh
Executable file
42
install.sh
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
update_submodules() {
|
||||
echo "Preparing to update submodules..."
|
||||
git submodule update --init --recursive --remote
|
||||
}
|
||||
|
||||
backup_old_configs() {
|
||||
echo "Backing up old config files..."
|
||||
mkdir -p ${HOME}/.config/dotfiles-old
|
||||
mv ${HOME}/.config/fuzzel ${HOME}/.config/dotfiles-old
|
||||
mv ${HOME}/.config/hypr ${HOME}/.config/dotfiles-old
|
||||
mv ${HOME}/.config/kitty ${HOME}/.config/dotfiles-old
|
||||
mv ${HOME}/.config/nwg-bar ${HOME}/.config/dotfiles-old
|
||||
mv ${HOME}/.config/waybar ${HOME}/.config/dotfiles-old
|
||||
echo "Saved backups of old configurations to ${HOME}/.config/dotfiles-old"
|
||||
}
|
||||
|
||||
install_riceman() {
|
||||
install ${PWD}/riceman/riceman ${HOME}/.local/bin -m 500
|
||||
echo "Installed riceman theme manager"
|
||||
}
|
||||
|
||||
symlink() {
|
||||
echo "Symlinking configuration directories to ${HOME}/.config..."
|
||||
for d in */; do
|
||||
[ -d "${d}" ] || continue
|
||||
base="${d%/}"
|
||||
|
||||
case "$base" in
|
||||
gtk|icons|riceman) continue ;;
|
||||
esac
|
||||
|
||||
ln -svf "${PWD}/${d}" "$HOME/.config/$base"
|
||||
done
|
||||
echo "Finished linking directories"
|
||||
}
|
||||
|
||||
update_submodules "$@"
|
||||
backup_old_configs "$@"
|
||||
install_riceman "$@"
|
||||
symlink "$@"
|
||||
1
kitty
Submodule
1
kitty
Submodule
Submodule kitty added at e1a8d00163
1
nwg-bar
Submodule
1
nwg-bar
Submodule
Submodule nwg-bar added at 3b9cdc02b4
1
riceman
Submodule
1
riceman
Submodule
Submodule riceman added at 0ad5373e52
1
waybar
Submodule
1
waybar
Submodule
Submodule waybar added at 535ddf7175
Reference in New Issue
Block a user