From 31243775ed388f93efaf44dc1b84f8fb4ef2b658 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 7 Apr 2023 20:03:22 +0200 Subject: [PATCH] Add scripts for installing firefox --- scripts/Arch/Collections/personal.sh | 3 +++ scripts/Arch/Software/Firefox/install.sh | 5 +++++ scripts/Common/Config/Firefox/firefox.sh | 5 +++++ scripts/Common/Config/Firefox/install.sh | 4 ++++ 4 files changed, 17 insertions(+) create mode 100755 scripts/Arch/Software/Firefox/install.sh create mode 100755 scripts/Common/Config/Firefox/firefox.sh create mode 100755 scripts/Common/Config/Firefox/install.sh diff --git a/scripts/Arch/Collections/personal.sh b/scripts/Arch/Collections/personal.sh index f4f17a28..aedda3ab 100755 --- a/scripts/Arch/Collections/personal.sh +++ b/scripts/Arch/Collections/personal.sh @@ -42,6 +42,9 @@ yay --noconfirm -Syu \ # rclone . "../Software/rclone/install.sh"; +# Firefox +. "../Software/Firefox/install.sh"; + # Brave Browser yay --noconfirm -Syu \ brave-bin \ diff --git a/scripts/Arch/Software/Firefox/install.sh b/scripts/Arch/Software/Firefox/install.sh new file mode 100755 index 00000000..02b4bad9 --- /dev/null +++ b/scripts/Arch/Software/Firefox/install.sh @@ -0,0 +1,5 @@ +#!/bin/bash +pushd "${BASH_SOURCE%/*}" > /dev/null; +yay --noconfirm -Syu firefox; +. "../../../Common/Config/Firefox/install.sh"; +popd > /dev/null; diff --git a/scripts/Common/Config/Firefox/firefox.sh b/scripts/Common/Config/Firefox/firefox.sh new file mode 100755 index 00000000..7c5d43db --- /dev/null +++ b/scripts/Common/Config/Firefox/firefox.sh @@ -0,0 +1,5 @@ +if [ "$XDG_SESSION_TYPE" == "wayland" ]; then + export MOZ_ENABLE_WAYLAND=1 +else + export MOZ_USE_XINPUT2=1 +fi diff --git a/scripts/Common/Config/Firefox/install.sh b/scripts/Common/Config/Firefox/install.sh new file mode 100755 index 00000000..405a045b --- /dev/null +++ b/scripts/Common/Config/Firefox/install.sh @@ -0,0 +1,4 @@ +#!/bin/bash +pushd "${BASH_SOURCE%/*}" > /dev/null; +sudo cp ./firefox.sh /etc/profile.d/; +popd > /dev/null; \ No newline at end of file