Files
dotfiles/setup.sh
T
2026-06-18 12:59:44 +02:00

52 lines
1.4 KiB
Bash
Executable File

#!/bin/sh
echo "
_ _ ( ) ( )_
(_) _ _ ___ (_) ___| |__ _ _| _)____
| |/ _ ) _ \ | __) _ \ ) ( ) | (_ )
| | (_| | ( ) | |__ \ | | | (_) | |_ / /_
_ | |\__ _)_) (_)_)____/_) (_)\___/ \__)____)
( )_| |
\___/
=> Migration to V4
-> WARNING: This will remove the old configurations from the system
"
if ! [[ -f ~/.config/janishutz/platform ]]; then
platform=""
read -p "Choose on the platform (l/D): " platform
mkdir ~/.config/janishutz
if [ $platform != "l" ]; then
platform="d"
fi
echo "$platform" >~/.config/janishutz/platform
echo "n" >~/.config/janishutz/docked
fi
confirmation=""
read -p "Also install the system-wide environment file? (y/N) " confirmation
if [[ "$confirmation" == "y" ]]; then
sudo cp ./system/environment /etc/environment
fi
rm -rf ~/.config/hypr/*.conf
rm ~/.config/platform
rm -rf ~/.config/rofi
rm -rf ~/.config/ags
rm -rf ~/.config/astal
cp -r ./config/* ~/.config
confirmation=""
read -p "Use repo version of DMS config? (y/N) " confirmation
if [[ "$confirmation" == "y" ]]; then
cp -r ./dms/* ~/.config/DankMaterialShell/
else
cp -r ~/.config/DankMaterialShell/settings.json ./dms
cp -r ~/.config/DankMaterialShell/plugin_settings.json ./dms
cp -r ~/.config/DankMaterialShell/.firstlaunch ./dms
fi
hyprctl reload