This commit is contained in:
Your Name 2023-07-30 15:40:04 -06:00
parent 787db9b632
commit 22695d5da0

View File

@ -97,7 +97,7 @@ hibernate-setup() {
echo "HandleLidSwitchExternalPower=suspend-then-hibernate" >>/etc/systemd/logind.conf
unlink /usr/lib/systemd/system/systemd-suspend.service
rm -f /usr/lib/systemd/system/systemd-suspend.service
ln -s /usr/lib/systemd/system/systemd-suspend-then-hibernate.service /usr/lib/systemd/system/systemd-suspend.service
ln -s /usr/lib/systemd/system/systemd-suspend-then-hibernate.service /usr/lib/systemd/system/systemd-suspend.service
}
create-os-snapshots() {
@ -422,9 +422,33 @@ installBrowser() {
#echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" | tee /etc/apt/sources.list.d/brave-browser-release.list
#apt update
#apt install brave-browser -y
apt install -y firefox-esr
#apt install -y firefox-esr
#Firefox-Latest
cd /tmp
rm -rf /opt/firefox
apt remove firefox-esr -y
wget -O /tmp/firefox.tar.gz "https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US"
tar xvf /tmp/firefox.tar.gz -C /opt/
unlink /usr/bin/firefox
ln -s /opt/firefox/firefox /usr/bin/firefox
#Desktop/App Icon
echo "[Desktop Entry]" >/usr/share/applications/firefox.desktop
echo "Name=Firefox Stable" >>/usr/share/applications/firefox.desktop
echo "Comment=Web Browser" >>/usr/share/applications/firefox.desktop
echo "Exec=/opt/firefox/firefox %u" >>/usr/share/applications/firefox.desktop
echo "Terminal=false" >>/usr/share/applications/firefox.desktop
echo "Type=Application" >>/usr/share/applications/firefox.desktop
echo "Icon=/opt/firefox/browser/chrome/icons/default/default128.png" >>/usr/share/applications/firefox.desktop
echo "Categories=Network;WebBrowser;" >>/usr/share/applications/firefox.desktop
echo "MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;" >>/usr/share/applications/firefox.desktop
echo "StartupNotify=true" >>/usr/share/applications/firefox.desktop
echo "Actions=Private;" >>/usr/share/applications/firefox.desktop
echo "[Desktop Action Private]" >>/usr/share/applications/firefox.desktop
echo "Exec=/opt/firefox/firefox --private-window %u" >>/usr/share/applications/firefox.desktop
echo "Name=Open in private mode" >>/usr/share/applications/firefox.desktop
#Vivaldi
#curl -fsSL https://repo.vivaldi.com/archive/linux_signing_key.pub | gpg --dearmor | tee /usr/share/keyrings/vivaldi.gpg >/dev/null
#echo deb [arch=amd64,armhf signed-by=/usr/share/keyrings/vivaldi.gpg] https://repo.vivaldi.com/archive/deb/ stable main | sudo tee /etc/apt/sources.list.d/vivaldi.list