dotfiles/scripts/manager.bash
2025-06-03 18:00:44 +01:00

33 lines
669 B
Bash
Executable File

#!/bin/bash
cd ~/Code/dotfiles
git pull
# Replace the monitors part of hyprland config
current_host=""
if [[ $(hostnamectl hostname) == "john-desktop" ]]; then
current_host="DESKTOP"
else
current_host="LAPTOP"
fi
echo Current hostname: $current_host
sed -i "s/#$current_host: //" config/hypr/hyprland.conf
for file in "config"/*; do
echo "rsync -av $file ~/.config --delete"
rsync -a $file ~/.config --delete
done
for file in "local/share"/*; do
echo "rsync -av $file ~/.local/share --delete"
rsync -a $file ~/.local --delete
done
DISPLAY=:0 kitty metapac sync
# Cleanup
sed -i "s/^monitor/#$current_host: monitor/" config/hypr/hyprland.conf