-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMacOSBigSurThemeConverter.sh
executable file
·77 lines (69 loc) · 3.63 KB
/
MacOSBigSurThemeConverter.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
74
75
76
77
#!/bin/bash
#killing Lxpanel
killall lxpanel &>/dev/null
#Launching Compton
killall compton &>/dev/null
setsid compton &>/dev/null &
#Launching Plank
nohup plank &>/dev/null &
disown
#Restarting xfwm4
killall xfwm4 &>/dev/null
xfwm4 --replace --compositor=off &>/dev/null &
rm ~/.local/share/MacOSBigSurThemeConverter/assets/.MacOSBigSurLight &>/dev/null
rm ~/.local/share/MacOSBigSurThemeConverter/assets/.MacOSBigSurDark &>/dev/null
if [ "$1" == "--light" ]; then
#Changing Wallpaper
pcmanfm --set-wallpaper="/home/$USER/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurLight/MacOSBigSurLightWallpaper.jpg" &>/dev/null &
#Copying Config Files
cp -r ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurLight/lxsession ~/.config/
cp -r ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurLight/lxterminal ~/.config/
#Restating Desktop
setsid pcmanfm --desktop --profile LXDE-pi &>/dev/null &
sudo update-icon-caches /usr/share/icons/*
#Copying Ulauncher Configs
cp -r ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurLight/ulauncher ~/.config
#Applying Plank Theme
cp -r ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurLight/mcOS-BS-White-Stock ~/.local/share/plank/themes/
gsettings set net.launchpad.plank.dock.settings:/net/launchpad/plank/docks/dock1/ theme mcOS-BS-White-Stock
#Applying Xfce4-panel configuration
xfce4-panel-profiles load ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurLight/MacOSBigSurLight.tar.bz2
#Applying Xfwm4 Theme
killall xfwm4
xfwm4 --replace --compositor=off &>/dev/null &
disown
xfconf-query -c xfwm4 -p /general/theme -s WhiteSur-light &>/dev/null
xfconf-query -c xfwm4 -p /general/button_layout -s "CHM|"
echo " " > ~/.local/share/MacOSBigSurThemeConverter/assets/.MacOSBigSurLight
xfce4-panel-profiles load ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurLight/MacOSBigSurLight.tar.bz2
elif [ "$1" == "--dark" ]; then
#Changing Wallpaper
pcmanfm --set-wallpaper="/home/$USER/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurDark/MacOSBigSurDarkWallpaper.jpg" &>/dev/null &
#Copying Config Files
cp -r ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurDark/lxsession ~/.config/
cp -r ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurDark/lxterminal ~/.config/
#Refreshing Desktop
setsid pcmanfm --desktop --profile LXDE-pi &>/dev/null &
sudo update-icon-caches /usr/share/icons/*
#Copying Ulauncher Configs
cp -r ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurDark/ulauncher ~/.config
#Applying Plank Theme
cp -r ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurDark/mcOS-BS-Black-Stock ~/.local/share/plank/themes/
gsettings set net.launchpad.plank.dock.settings:/net/launchpad/plank/docks/dock1/ theme mcOS-BS-Black-Stock
#Applying Xfce4-panel configuration
xfce4-panel-profiles load ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurDark/MacOSBigSurDark.tar.bz2
#Applying Xfwm4 Theme
xfwm4 --replace --compositor=off &>/dev/null &
disown
xfconf-query -c xfwm4 -p /general/theme -s WhiteSur-dark &>/dev/null
xfconf-query -c xfwm4 -p /general/button_layout -s "CHM|"
echo " " > ~/.local/share/MacOSBigSurThemeConverter/assets/.MacOSBigSurDark
xfce4-panel-profiles load ~/.local/share/MacOSBigSurThemeConverter/assets/MacOSBigSurDark/MacOSBigSurDark.tar.bz2
fi
setsid xfce4-panel &>/dev/null &
setsid nm-applet &>/dev/null &
setsid blueman-applet &>/dev/null &
setsid pcmanfm --desktop --profile LXDE-pi &>/dev/null &
echo " "
echo "Finished Converting Theme"
exit