-
Notifications
You must be signed in to change notification settings - Fork 2
/
transformationsetup.sh
73 lines (60 loc) · 2.63 KB
/
transformationsetup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
#Distribution check and prep
arch_check=`cat /etc/os-release | grep ID_LIKE | cut -d '=' -f2,2`
if [ "$arch_check" == arch ];then
sudo pacman -S unzip --noconfirm
sudo pacman -S zip --noconfirm
sudo pacman -S plymouth --noconfirm
else
echo
fi
## Copy items section
sudo echo "Copying Items"
sudo cp -rf wallpaper/* /usr/share/wallpapers/
sudo cp cursors-icons/win7startorb.png /usr/share/icons/
sudo unzip cursors-icons/Windows-7.zip -d /usr/share/icons/
zip -s 0 cursors-icons/We10X.zip --out cursors-icons/We10X-unsplit.zip
sudo unzip cursors-icons/We10X-unsplit.zip -d /usr/share/icons/
sudo tar xf cursors-icons/Win-8.1-NS.tar.gz --directory /usr/share/icons/
sudo tar xf cursors-icons/Win-8.1-S.tar.gz --directory /usr/share/icons/
sudo cp -rf desktopthemes/* /usr/share/plasma/desktoptheme/
sudo mkdir /usr/share/aurorae/ && sudo mkdir /usr/share/aurorae/themes/
sudo unzip Se7enAero.zip -d /usr/share/aurorae/themes/
sudo cp -rf gtktheme/* /usr/share/themes/
convert splashtheme/org.Win7.desktop/contents/splash/images/background-logon-default-windows-7.png -resize $(xrandr | grep \* | awk '{print $1}')! splashtheme/org.Win7.desktop/contents/splash/images/background.png
sudo cp -rf splashtheme/* /usr/share/plasma/look-and-feel/
sudo cp "Lock Widgets.desktop" /usr/share/applications/
sudo cp "Unlock Widgets.desktop" /usr/share/applications/
sudo cp "Win 7 Splash Fix.desktop" /usr/share/applications/
sudo cp -rf sevenfonts/* /usr/share/fonts/
sudo cp -rf plymouththeme/* /usr/share/plymouth/themes/
clear
## Copy user config files section
read -p "Copy presets? ALL CURRENT USER PROFILE DESKTOP SETTINGS WILL BE OVERWRITTEN! Y/N?:" USER_OPTION
if [ "$USER_OPTION" == 'Y' ];then
sudo echo "Copying presets"
cp -rf presets/.kde ~/
rm ~/.config/plasma-org.kde.plasma.desktop-appletsrc
cp -rf presets/.config ~/
sudo cp -rf sddmsettings/* /usr/share/sddm/themes/breeze/
sudo cp -rf sddmsettings/* /usr/share/sddm/themes/breath2/
sudo cp -rf sddmsettings/* /usr/share/sddm/themes/kubuntu/
clear
else
echo "Skipping"
sleep 2
clear
fi
## Boot Splash theme selection
sudo echo "Setting Boot splash theme"
sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/7/7.plymouth 100
sudo update-alternatives --config default.plymouth
sudo update-initramfs -u
clear
# Arch Boot Splash theme setup
sudo plymouth-set-default-theme -R 7
## Complete section
echo "Setup complete! Enjoy!"
echo "Logging out!"
sleep 5
qdbus org.kde.ksmserver /KSMServer logout 0 0 0