Updates
This commit is contained in:
parent
1a051b9e17
commit
4eaf9f7b53
@ -15,29 +15,29 @@ fi
|
|||||||
|
|
||||||
# Check for running NetworkManager.service
|
# Check for running NetworkManager.service
|
||||||
if [[ $(systemctl list-units --all -t service --full --no-legend "NetworkManager.service" | sed 's/^\s*//g' | cut -f1 -d' ') == "NetworkManager.service" ]];then
|
if [[ $(systemctl list-units --all -t service --full --no-legend "NetworkManager.service" | sed 's/^\s*//g' | cut -f1 -d' ') == "NetworkManager.service" ]];then
|
||||||
echo "NetworkManager.service already running."
|
echo ":: NetworkManager.service already running."
|
||||||
else
|
else
|
||||||
sudo systemctl enable NetworkManager.service
|
sudo systemctl enable NetworkManager.service
|
||||||
sudo systemctl start NetworkManager.service
|
sudo systemctl start NetworkManager.service
|
||||||
echo "NetworkManager.service activated successfully."
|
echo ":: NetworkManager.service activated successfully."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for running bluetooth.service
|
# Check for running bluetooth.service
|
||||||
if [[ $(systemctl list-units --all -t service --full --no-legend "bluetooth.service" | sed 's/^\s*//g' | cut -f1 -d' ') == "bluetooth.service" ]];then
|
if [[ $(systemctl list-units --all -t service --full --no-legend "bluetooth.service" | sed 's/^\s*//g' | cut -f1 -d' ') == "bluetooth.service" ]];then
|
||||||
echo "bluetooth.service already running."
|
echo ":: bluetooth.service already running."
|
||||||
else
|
else
|
||||||
sudo systemctl enable bluetooth.service
|
sudo systemctl enable bluetooth.service
|
||||||
sudo systemctl start bluetooth.service
|
sudo systemctl start bluetooth.service
|
||||||
echo "bluetooth.service activated successfully."
|
echo ":: bluetooth.service activated successfully."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d ~/dotfiles/hypr/settings/ ] ;then
|
if [ -d ~/dotfiles/hypr/settings/ ] ;then
|
||||||
rm -rf ~/dotfiles/hypr/settings
|
rm -rf ~/dotfiles/hypr/settings
|
||||||
echo "~/dotfiles/hypr/settings removed."
|
echo ":: ~/dotfiles/hypr/settings removed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create default folder structure
|
# Create default folder structure
|
||||||
xdg-user-dirs-update
|
xdg-user-dirs-update
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo "Cleanup done."
|
echo ":: Cleanup done."
|
@ -8,8 +8,10 @@ fi
|
|||||||
if [ -d ~/dotfiles-versions/$version/vim ]; then
|
if [ -d ~/dotfiles-versions/$version/vim ]; then
|
||||||
_installSymLink vim ~/.config/vim ~/dotfiles/vim/ ~/.config
|
_installSymLink vim ~/.config/vim ~/dotfiles/vim/ ~/.config
|
||||||
fi
|
fi
|
||||||
if [ -d ~/dotfiles-versions/$version/nvim ]; then
|
if [ $neovim == "1" ] ;then
|
||||||
_installSymLink nvim ~/.config/nvim ~/dotfiles/nvim/ ~/.config
|
if [ -d ~/dotfiles-versions/$version/nvim ]; then
|
||||||
|
_installSymLink nvim ~/.config/nvim ~/dotfiles/nvim/ ~/.config
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -d ~/dotfiles-versions/$version/starship ]; then
|
if [ -d ~/dotfiles-versions/$version/starship ]; then
|
||||||
_installSymLink starship ~/.config/starship.toml ~/dotfiles/starship/starship.toml ~/.config/starship.toml
|
_installSymLink starship ~/.config/starship.toml ~/dotfiles/starship/starship.toml ~/.config/starship.toml
|
||||||
|
16
.install/neovim.sh
Normal file
16
.install/neovim.sh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# ------------------------------------------------------
|
||||||
|
# Neovim
|
||||||
|
# ------------------------------------------------------
|
||||||
|
neovim=0
|
||||||
|
if [ -d ~/dotfiles/nvim ]; then
|
||||||
|
echo -e "${GREEN}"
|
||||||
|
figlet "Neovim"
|
||||||
|
echo -e "${NONE}"
|
||||||
|
if gum confirm "Do you want to install the ML4W Neovim configuration and overwrite your existing configuration?"; then
|
||||||
|
echo ":: ML4W Neovim configuration will be installed"
|
||||||
|
neovim=1
|
||||||
|
else
|
||||||
|
rm -rf ~/dotfiles-versions/$version/nvim/
|
||||||
|
echo ":: Installation of ML4W Neovim configuration skipped."
|
||||||
|
fi
|
||||||
|
fi
|
17
.install/reboot.sh
Normal file
17
.install/reboot.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# ------------------------------------------------------
|
||||||
|
# Reboot
|
||||||
|
# ------------------------------------------------------
|
||||||
|
|
||||||
|
echo -e "${GREEN}"
|
||||||
|
figlet "Done"
|
||||||
|
echo -e "${NONE}"
|
||||||
|
if gum confirm "Do you want to reboot your system now?" ;then
|
||||||
|
echo ":: Rebooting now ..."
|
||||||
|
sleep 3
|
||||||
|
systemctl reboot
|
||||||
|
elif [ $? -eq 130 ]; then
|
||||||
|
exit 130
|
||||||
|
else
|
||||||
|
echo ":: Reboot skipped"
|
||||||
|
fi
|
||||||
|
echo ""
|
@ -1 +1 @@
|
|||||||
2831
|
2832
|
Binary file not shown.
@ -64,6 +64,7 @@ source .install/displaymanager.sh
|
|||||||
source .install/issue.sh
|
source .install/issue.sh
|
||||||
source .install/restore.sh
|
source .install/restore.sh
|
||||||
source .install/keyboard.sh
|
source .install/keyboard.sh
|
||||||
|
source .install/neovim.sh
|
||||||
source .install/vm.sh
|
source .install/vm.sh
|
||||||
source .install/hook.sh
|
source .install/hook.sh
|
||||||
source .install/copy.sh
|
source .install/copy.sh
|
||||||
@ -79,10 +80,5 @@ source .install/apps.sh
|
|||||||
source .install/gtk.sh
|
source .install/gtk.sh
|
||||||
source .install/bashrc.sh
|
source .install/bashrc.sh
|
||||||
source .install/cleanup.sh
|
source .install/cleanup.sh
|
||||||
|
source .install/reboot.sh
|
||||||
echo -e "${GREEN}"
|
|
||||||
figlet "Done"
|
|
||||||
echo -e "${NONE}"
|
|
||||||
echo "Please reboot your system!"
|
|
||||||
echo
|
|
||||||
sleep 3
|
sleep 3
|
||||||
|
Loading…
Reference in New Issue
Block a user