mkdir -p ~/'Wine Prefixes' && WINEPREFIX=~/'Wine Prefixes/osu!' WINEARCH='win32' wineboot
WINEPREFIX=~/'Wine Prefixes/osu!' winetricks --unattended dotnet40 corefonts cjkfonts
wget 'https://m1.ppy.sh/r/osu!install.exe' -O ~/'osu!install.exe' --no-check-certificate && WINEPREFIX=~/'Wine Prefixes/osu!' wine ~/'osu!install.exe'
rm -Rf ~/'Wine Prefixes/osu!/drive_c/users/'$USER'/Local Settings/Application Data/osu!/Skins' ~/'Wine Prefixes/osu!/drive_c/users/'$USER'/Local Settings/Application Data/osu!/Songs' && mv ~/'Downloads/osu!/Skins' ~/'Downloads/osu!/Songs' ~/'Wine Prefixes/osu!/drive_c/users/'$USER'/Local Settings/Application Data/osu!'
WINEPREFIX=~/'Wine Prefixes/osu!' winetricks 'sandbox'
rm -Rf ~/'osu!install.exe' ~/'Downloads/osu!' && sync
sed -i 's/HighResolution = 0/HighResolution = 1/g' ~/'Wine Prefixes/osu!/drive_c/users/'$USER'/Local Settings/Application Data/osu!/osu!.'$USER'.cfg'
sed -i 's/DimLevel = 30/DimLevel = 75/g' ~/'Wine Prefixes/osu!/drive_c/users/'$USER'/Local Settings/Application Data/osu!/osu!.'$USER'.cfg'
sed -i 's/CursorSize = 1/CursorSize = 1.25/g' ~/'Wine Prefixes/osu!/drive_c/users/'$USER'/Local Settings/Application Data/osu!/osu!.'$USER'.cfg'
mkdir -p ~/'.local/share/applications/wine/Programs/osu!'
nano ~/'.local/share/applications/wine/Programs/osu!/osu!.desktop'
[Desktop Entry] Name=osu! Categories=Game; Exec=env WINEDEBUG=-all WINEPREFIX='/home/CHANGEME/Wine Prefixes/osu!' wine '/home/CHANGEME/Wine Prefixes/osu!/drive_c/users/CHANGEME/Local Settings/Application Data/osu!/osu!.exe' Type=Application StartupNotify=true Path=/home/CHANGEME/Wine Prefixes/osu!/drive_c/users/CHANGEME/Local Settings/Application Data/osu! Icon=A7AA_osu!.0
sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/wine/Programs/osu!/osu!.desktop'
WINEPREFIX=~/'Wine Prefixes/osu!' winecfg
WINEPREFIX=~/'Wine Prefixes/osu!' winetricks
WINEPREFIX=~/'Wine Prefixes/osu!' regedit
WINEPREFIX=~/'Wine Prefixes/osu!' wineserver -k
cd ~/'Wine Prefixes/osu!/drive_c/users/'$USER'/Local Settings/Application Data/osu!' && WINEPREFIX=~/'Wine Prefixes/osu!' wine ~/'Wine Prefixes/osu!/drive_c/users/'$USER'/Local Settings/Application Data/osu!/osu!.exe'
xdg-open ~/'Wine Prefixes/osu!/drive_c/users/'$USER'/Local Settings/Application Data/osu!'