Added custom wallpapers to chicago95 install
This commit is contained in:
2024-11-12 20:00:42 +10:00
parent 866f7fd60a
commit cf9f0414be

View File

@@ -299,34 +299,33 @@ installChicago95() {
sudo update-grub2 sudo update-grub2
echo [Chicago95] Running Client installer echo [Chicago95] Running Client installer
python3 /tmp/Chicago95/installer.py python3 /tmp/Chicago95/installer.py
read -n 1
echo [Chicago95] Installing startup sound / wallpapers echo [Chicago95] Installing startup sound / wallpapers
cp "/tmp/Chicago95/Extras/Microsoft Windows 95 Startup Sound.ogg" "$user_home/.themes/Chicago95/misc/Microsoft Windows 95 Startup Sound.ogg" cp "/tmp/Chicago95/Extras/Microsoft Windows 95 Startup Sound.ogg" "$user_home/.themes/Chicago95/misc/Microsoft Windows 95 Startup Sound.ogg"
mkdir -p $user_home/.config/autostart mkdir -p $user_home/.config/autostart
echo "[Desktop Entry]" > "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "[Desktop Entry]" | tee "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
echo "Encoding=UTF-8" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "Encoding=UTF-8" | tee -a "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
echo "Version=0.9.4" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "Version=0.9.4" | tee -a "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
echo "Type=Application" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "Type=Application" | tee -a "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
echo "Name=Windows Logon Sound" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "Name=Windows Logon Sound" | tee -a "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
echo "Comment=Plays the windows 95 logon music" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "Comment=Plays the windows 95 logon music" | tee -a "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
echo "Exec=play \"$user_home/.themes/Chicago95/misc/Microsoft Windows 95 Startup Sound.ogg\"" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "Exec=play \"$user_home/.themes/Chicago95/misc/Microsoft Windows 95 Startup Sound.ogg\"" | tee -a "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
echo "OnlyShowIn=XFCE;" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "OnlyShowIn=XFCE;" | tee -a "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
echo "RunHook=0" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "RunHook=0" | tee -a "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
echo "StartupNotify=false" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "StartupNotify=false" | tee -a "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
echo "Terminal=false" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "Terminal=false" | tee -a "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
echo "Hidden=false" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "Hidden=false" | tee -a "$user_home/.config/autostart/Windows Logon Sound.desktop" > /dev/null
cp -r /tmp/Chicago95/Extras/Backgrounds $user_home/.themes/Chicago95/misc clone https://git.tcmeta.net/kurtis/chicago95-wallpapers.git $user_home/.themes/Chicago95/wallpapers
echo [Chicago95] Fixing Lock screen echo [Chicago95] Fixing Lock screen
echo "polkit.addRule(function(action, subject) {" | sudo tee /etc/polkit-1/rules.d/85-suspend.rules > /dev/null echo "[User Permissions]" | sudo tee /etc/polkit-1/localauthority/any/10-suspend-user.pkla > /dev/null
echo " if (action.id == \"org.freedesktop.login1.suspend\" &&" | sudo tee -a /etc/polkit-1/rules.d/85-suspend.rules > /dev/null echo "Identity=unix-group:suspenders" | sudo tee -a /etc/polkit-1/localauthority/any/10-suspend-user.pkla > /dev/null
echo " subject.isInGroup(\"users\")) {" | sudo tee -a /etc/polkit-1/rules.d/85-suspend.rules > /dev/null echo "ResultAny=no" | sudo tee -a /etc/polkit-1/localauthority/any/10-suspend-user.pkla > /dev/null
echo " return polkit.Result.YES;" | sudo tee -a /etc/polkit-1/rules.d/85-suspend.rules > /dev/null echo "ResultInactive=no" | sudo tee -a /etc/polkit-1/localauthority/any/10-suspend-user.pkla > /dev/null
echo " }" | sudo tee -a /etc/polkit-1/rules.d/85-suspend.rules > /dev/null echo "ResultActive=yes" | sudo tee -a /etc/polkit-1/localauthority/any/10-suspend-user.pkla > /dev/null
echo "});" | sudo tee -a /etc/polkit-1/rules.d/85-suspend.rules > /dev/null
echo [Chigaco95] Setting custom Settings echo [Chigaco95] Setting custom Settings
xfconf-query -n -t 'string' -c xfce4-keyboard-shortcuts -p "/commands/custom/Super_L" -s xfce4-popup-whiskermenu xfconf-query -n -t 'string' -c xfce4-keyboard-shortcuts -p "/commands/custom/Super_L" -s xfce4-popup-whiskermenu
xfconf-query -r -c xfce4-keyboard-shortcuts -p "/commands/custom/<Primary>Escape" xfconf-query -r -c xfce4-keyboard-shortcuts -p "/commands/custom/<Primary>Escape"
xfconf-query -c xfwm4 -p "/general/tile_on_move" -s true xfconf-query -c xfwm4 -p "/general/tile_on_move" -s true
xfconf-query xfconf-query -c xfce4-desktop -p "/backdrop/screen0/monitoreDP-1/workspace0/last-image" -s "$user_home/.themes/Chicago95/wallpapers/clouds.jpg"
echo [Chicago95] Okay done echo [Chicago95] Okay done
return 1 return 1
} }