aboutsummaryrefslogtreecommitdiff
path: root/settings/toggle-settings.sh
diff options
context:
space:
mode:
Diffstat (limited to 'settings/toggle-settings.sh')
-rw-r--r--settings/toggle-settings.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/settings/toggle-settings.sh b/settings/toggle-settings.sh
new file mode 100644
index 0000000..8a7b30a
--- /dev/null
+++ b/settings/toggle-settings.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+SCRIPT_FOLDER=$(realpath $(dirname $0));
+
+# Enable settings ------------------------------------------------------------------------------------------
+if [ "$1" = "--enable" ]; then
+ mv $SCRIPT_FOLDER/"[DISABLED] local-settings.js" $SCRIPT_FOLDER/local-settings.js;
+ mv $SCRIPT_FOLDER/"[DISABLED] policies.json" $SCRIPT_FOLDER/policies.json;
+ mv $SCRIPT_FOLDER/"[DISABLED] librewolf.cfg" $SCRIPT_FOLDER/librewolf.cfg;
+fi
+
+# Disable settings ------------------------------------------------------------------------------------------
+if [ "$1" = "--disable" ]; then
+ mv $SCRIPT_FOLDER/local-settings.js $SCRIPT_FOLDER/"[DISABLED] local-settings.js";
+ mv $SCRIPT_FOLDER/policies.json $SCRIPT_FOLDER/"[DISABLED] policies.json";
+ mv $SCRIPT_FOLDER/librewolf.cfg $SCRIPT_FOLDER/"[DISABLED] librewolf.cfg" ;
+fi
+
+
bgstack15