[Setup] Improve script

This commit is contained in:
Janis Hutz 2025-04-26 12:09:55 +02:00
parent 212296a7d5
commit 651030fd75

12
setup
View File

@ -53,15 +53,22 @@ echo "=> Moving configs to correct destinations"
killall swaybg
cp -r ./config/fish ~/.config/
cp -r ./config/hypr ~/.config/
rm -rf ~/.config/rofi/
cp -r ./config/rofi ~/.config/
# Depending on platform, remove one or the other config and rename remaining one
if [[ "$platform" == "d" ]]; then
echo "Running on desktop"
mv ~/.config/hypr/hyprland_desktop.conf ~/.config/hypr/hyprland.conf
rm ~/.config/hypr/hyprland_*
echo "Running on desktop"
mv ~/.config/rofi/config_desktop.rasi ~/.config/rofi/config.rasi
rm ~/.config/rofi/config_*
else
echo "Running on laptop"
mv ~/.config/hypr/hyprland_laptop.conf ~/.config/hypr/hyprland.conf
rm ~/.config/hypr/hyprland_*
mv ~/.config/rofi/config_laptop.rasi ~/.config/rofi/config.rasi
rm ~/.config/rofi/config_*
fi
cp -r ./config/kitty ~/.config/
@ -73,9 +80,6 @@ cp -r ./config/wlogout/ ~/.config/
cp -r ./config/yazi ~/.config/
cp -r ./config/zathura ~/.config/
echo "
=> Bundling Astal projects
"
echo "
=> Installing yazi plugins