+ firefox
This commit is contained in:
26
dots/firefox/policies.json
Normal file
26
dots/firefox/policies.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"policies": {
|
||||
"documentation": "https://mozilla.github.io/policy-templates/"
|
||||
, "DisableFirefoxStudies": true
|
||||
, "comment1": "never run SHIELD studies or do Heartbeat surveys"
|
||||
, "DisablePocket": true
|
||||
, "DisableTelemetry": true
|
||||
, "DisplayBookmarksToolbar": "never"
|
||||
, "comment2": "{always, never, newtab}"
|
||||
, "DisplayMenuBar": "default-off"
|
||||
, "comment3": "{always, default-off, default-on, never}"
|
||||
, "DontCheckDefaultBrowser": true
|
||||
, "EnableTrackingProtection":
|
||||
{
|
||||
"Value": true
|
||||
, "Locked": true
|
||||
, "Cryptomining": true
|
||||
, "Fingerprinting": true
|
||||
}
|
||||
, "OverrideFirstRunPage": ""
|
||||
, "comment4": "specify a URL to be used as the first run page"
|
||||
, "OverridePostUpdatePage": ""
|
||||
, "comment5": "specify a URL to be displayed after Firefox is updated"
|
||||
, "SearchBar": "unified"
|
||||
}
|
||||
}
|
||||
59
dots/firefox/user.js
Normal file
59
dots/firefox/user.js
Normal file
File diff suppressed because one or more lines are too long
9
dots/firefox/userChrome.css
Normal file
9
dots/firefox/userChrome.css
Normal file
@@ -0,0 +1,9 @@
|
||||
/* disable top bar and top tabs */
|
||||
|
||||
#TabsToolbar {
|
||||
visibility: collapse;
|
||||
}
|
||||
|
||||
#titlebar {
|
||||
display: none;
|
||||
}
|
||||
@@ -76,6 +76,26 @@ deploy_file() {
|
||||
ls -al ${_trg_path}
|
||||
}
|
||||
|
||||
firefox_profile_dir() {
|
||||
# locate profile folder
|
||||
old_dir=`pwd`
|
||||
ffdir=~/.mozilla/firefox/
|
||||
pattern=".default-release"
|
||||
cd ${ffdir}
|
||||
for _dir in *"${pattern}"*; do
|
||||
[ -d "${_dir}" ] && dir="${_dir}" && break
|
||||
done
|
||||
cd ${old_dir}
|
||||
|
||||
if [ -z "$dir" ]
|
||||
then
|
||||
echo "firefox profile folder not found"
|
||||
else
|
||||
ffprofiledir=${ffdir}${dir}
|
||||
echo "${ffprofiledir}"
|
||||
fi
|
||||
}
|
||||
|
||||
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||
|
||||
# dots (dot files)
|
||||
@@ -100,6 +120,21 @@ if [ ${operation} == "dots" ] ; then
|
||||
file_path=/etc
|
||||
deploy_file "${dots_trg}/environment/${file_name}" "${file_path}/${file_name}" no_chown
|
||||
|
||||
# firefox
|
||||
file_name=policies.json
|
||||
file_path=/usr/lib/firefox/distribution
|
||||
deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
firefox_profile_dir()
|
||||
|
||||
#file_name=user.json
|
||||
#file_path=/home/${user}/.mozilla/firefox/...
|
||||
#deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}"
|
||||
#file_name=userChrome.css
|
||||
#file_path=/home/${user}/.mozilla/firefox/.../chrome
|
||||
#deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
|
||||
# hypridle
|
||||
file_name=hypridle.conf
|
||||
file_path=/home/${user}/.config/hypr
|
||||
|
||||
Reference in New Issue
Block a user