Update
Added Zen Support and autoconfig
This commit is contained in:
39
vargtools
39
vargtools
@@ -116,6 +116,11 @@ vMenuSystem() {
|
||||
menuItems+=("$menuNumberIndex. Update / Install Brave Policy ")
|
||||
menuActions+=(configBrave)
|
||||
fi
|
||||
if [ -x "$(command -v zen)" ]; then
|
||||
menuNumberIndex=$((menuNumberIndex+1))
|
||||
menuItems+=("$menuNumberIndex. Update / Install Zen Policy ")
|
||||
menuActions+=(configZen)
|
||||
fi
|
||||
if [ ! -d "$user_home/.config/vargtools/tcmeta" ]; then
|
||||
if [ ! -d "$user_home/.dotfiles" ]; then
|
||||
menuNumberIndex=$((menuNumberIndex+1))
|
||||
@@ -154,9 +159,21 @@ vMenuSoftware() {
|
||||
menuItems+=("$menuNumberIndex. Brave")
|
||||
menuActions+=(setupBrave)
|
||||
fi
|
||||
if ! [ -x "$(command -v zen)" ]; then
|
||||
menuNumberIndex=$((menuNumberIndex+1))
|
||||
menuItems+=("$menuNumberIndex. Zen")
|
||||
menuActions+=(setupZen)
|
||||
fi
|
||||
if ! [ -x "$(command -v discord)" ]; then
|
||||
menuNumberIndex=$((menuNumberIndex+1))
|
||||
menuItems+=("$menuNumberIndex. Discord")
|
||||
menuActions+=(installDiscord)
|
||||
else
|
||||
menuNumberIndex=$((menuNumberIndex+1))
|
||||
menuItems+=("$menuNumberIndex. Update Discord")
|
||||
menuActions+=(installDiscord)
|
||||
fi
|
||||
|
||||
if ! [ -x "$(command -v subl)" ]; then
|
||||
menuNumberIndex=$((menuNumberIndex+1))
|
||||
menuItems+=("$menuNumberIndex. Sublime Text Editor & Merge")
|
||||
@@ -346,6 +363,7 @@ installDiscord() {
|
||||
setupChromium() {
|
||||
logo
|
||||
installChromium
|
||||
|
||||
configChromium
|
||||
return 1
|
||||
}
|
||||
@@ -357,6 +375,27 @@ setupBrave() {
|
||||
return 1
|
||||
}
|
||||
|
||||
setupZen() {
|
||||
logo
|
||||
installZen
|
||||
configZen
|
||||
return 1
|
||||
}
|
||||
|
||||
configZen() {
|
||||
echo [Zen] Deploying policy
|
||||
sudo mkdir -p /etc/zen/policies
|
||||
sudo chmod -w /etc/zen/policies
|
||||
sudo wget "$base_repo/chromium-policy/raw/branch/main/varg-policy-firefox.json" -O /etc/zen/policies/policies.json
|
||||
echo [Zen] Policy deployed
|
||||
return 1
|
||||
}
|
||||
|
||||
isntallZen() {
|
||||
echo [Zen] Installing from tarbal
|
||||
bash <(curl -s https://updates.zen-browser.app/install.sh)
|
||||
}
|
||||
|
||||
installAppimagelauncher() {
|
||||
wget "https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.2.0/appimagelauncher_2.2.0-travis995.0f91801.bionic_amd64.deb" -O /tmp/appimagelauncher.deb
|
||||
sudo nala install -y /tmp/appimagelauncher.deb
|
||||
|
||||
Reference in New Issue
Block a user