Compare commits

...

2 Commits

Author SHA1 Message Date
1a77f983ca Update
Changed tcmeta key storage to local user instead of system
2024-11-10 05:53:46 +10:00
e574826aff Update
Added fixes to Chicago95 Setup
2024-11-09 20:34:36 +10:00

View File

@@ -75,7 +75,7 @@ vMenuSettings() {
menuItems=("$menuNumberIndex. Update vargtools") menuItems=("$menuNumberIndex. Update vargtools")
menuActions=(updateVargtools) menuActions=(updateVargtools)
# Check if git key has been given # Check if git key has been given
if ! [ -f /etc/vargtools/tcmeta ]; then if ! [ -f $user_home/.config/vargtools/tcmeta ]; then
menuNumberIndex=$((menuNumberIndex+1)) menuNumberIndex=$((menuNumberIndex+1))
menuItems+=("$menuNumberIndex. Set TCMeta Key") menuItems+=("$menuNumberIndex. Set TCMeta Key")
menuActions+=(setTcmetaKey) menuActions+=(setTcmetaKey)
@@ -110,6 +110,11 @@ vMenuSystem() {
menuItems+=("$menuNumberIndex. Update / Install Brave Policy ") menuItems+=("$menuNumberIndex. Update / Install Brave Policy ")
menuActions+=(configBrave) menuActions+=(configBrave)
fi fi
if [ ! -d "$user_home/.config/vargtools/tcmeta" ]; then
menuNumberIndex=$((menuNumberIndex+1))
menuItems+=("$menuNumberIndex. Setup dotfiles ")
menuActions+=(setupDotFiles)
fi
menuItems+=("B. Back ") menuItems+=("B. Back ")
menuActions+=(vMenuMain) menuActions+=(vMenuMain)
menuTitle=" VargTools" menuTitle=" VargTools"
@@ -204,11 +209,15 @@ setTcmetaKey() {
logo logo
echo [TCMeta] please enter the git key echo [TCMeta] please enter the git key
read -r key read -r key
sudo echo $key > /etc/vargtools/tcmeta echo $key > $user_home/.config/vargtools/tcmeta
echo [TCMeta] Key Applied echo [TCMeta] Key Applied
return 1 return 1
} }
setupDotFiles() {
}
installChicago95() { installChicago95() {
logo logo
echo [Chicago95] Installing prereqs echo [Chicago95] Installing prereqs
@@ -233,7 +242,7 @@ installChicago95() {
sudo sed -i -e "s/\(user-session *= *\).*/\1xfce/" /etc/lightdm/lightdm.conf sudo sed -i -e "s/\(user-session *= *\).*/\1xfce/" /etc/lightdm/lightdm.conf
sudo cp -r /tmp/Chicago95/Lightdm/Chicago95 /usr/share/lightdm-webkit/themes/ sudo cp -r /tmp/Chicago95/Lightdm/Chicago95 /usr/share/lightdm-webkit/themes/
echo [Chicago95] Generating Config echo [Chicago95] Generating Config
echo "#" | sudo tee -a /etc/lightdm/lightdm-webkit2-greeter.conf > /dev/null echo "#" | sudo tee /etc/lightdm/lightdm-webkit2-greeter.conf > /dev/null
echo "# [greeter]" | sudo tee -a /etc/lightdm/lightdm-webkit2-greeter.conf > /dev/null echo "# [greeter]" | sudo tee -a /etc/lightdm/lightdm-webkit2-greeter.conf > /dev/null
echo "# debug_mode = Greeter theme debug mode." | sudo tee -a /etc/lightdm/lightdm-webkit2-greeter.conf > /dev/null echo "# debug_mode = Greeter theme debug mode." | sudo tee -a /etc/lightdm/lightdm-webkit2-greeter.conf > /dev/null
echo "# detect_theme_errors = Provide an option to load a fallback theme when theme errors are detected." | sudo tee -a /etc/lightdm/lightdm-webkit2-greeter.conf > /dev/null echo "# detect_theme_errors = Provide an option to load a fallback theme when theme errors are detected." | sudo tee -a /etc/lightdm/lightdm-webkit2-greeter.conf > /dev/null
@@ -298,6 +307,17 @@ installChicago95() {
echo "Terminal=false" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "Terminal=false" >> "$user_home/.config/autostart/Windows Logon Sound.desktop"
echo "Hidden=false" >> "$user_home/.config/autostart/Windows Logon Sound.desktop" echo "Hidden=false" >> "$user_home/.config/autostart/Windows Logon Sound.desktop"
cp -r /tmp/Chicago95/Extras/Backgrounds $user_home/.themes/Chicago95/misc cp -r /tmp/Chicago95/Extras/Backgrounds $user_home/.themes/Chicago95/misc
echo [Chicago95] Fixing Lock screen
echo "polkit.addRule(function(action, subject) {" | sudo tee /etc/polkit-1/rules.d/85-suspend.rules > /dev/null
echo " if (action.id == \"org.freedesktop.login1.suspend\" &&" | sudo tee -a /etc/polkit-1/rules.d/85-suspend.rules > /dev/null
echo " subject.isInGroup(\"users\")) {" | sudo tee -a /etc/polkit-1/rules.d/85-suspend.rules > /dev/null
echo " return polkit.Result.YES;" | sudo tee -a /etc/polkit-1/rules.d/85-suspend.rules > /dev/null
echo " }" | sudo tee -a /etc/polkit-1/rules.d/85-suspend.rules > /dev/null
echo "});" | sudo tee -a /etc/polkit-1/rules.d/85-suspend.rules > /dev/null
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 -r -c xfce4-keyboard-shortcuts -p "/commands/custom/<Primary>Escape"
xfconf-query -c xfwm4 -p "/general/tile_on_move" -s true
echo [Chicago95] Okay done echo [Chicago95] Okay done
return 1 return 1
} }