mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-19 12:47:27 +02:00
Compare commits
8 Commits
729013c3c1
...
23bbedf852
Author | SHA1 | Date | |
---|---|---|---|
23bbedf852 | |||
344caa700d | |||
05a3cb6c08 | |||
38710540f2 | |||
6a916ed3b9 | |||
7bab72fb3c | |||
006ed65597 | |||
859f2a9f1d |
@ -47,8 +47,6 @@ repos:
|
||||
- id: destroyed-symlinks
|
||||
- id: detect-private-key
|
||||
- id: fix-byte-order-marker
|
||||
#- id: fix-encoding-pragma
|
||||
#args: [--remove]
|
||||
- id: mixed-line-ending
|
||||
args: [--fix=auto]
|
||||
- id: pretty-format-json
|
||||
|
@ -92,7 +92,8 @@
|
||||
"Fallback": false,
|
||||
"Locked": true,
|
||||
"ProviderURL": "https://dns0.eu/",
|
||||
"ProviderURL_outside_europe_aminda_comment": "Swap to https://unfiltered.adguard-dns.com/dns-query if device is expected to cross continents from Europe?"
|
||||
"ProviderURL_outside_europe_aminda_comment": "Swap to https://unfiltered.adguard-dns.com/dns-query if device is expected to cross continents from Europe?",
|
||||
"ProviderURL_with_ECS_comment": "If changing this to something with non-private ECS, remember to disable ECS in preferences of TRR!"
|
||||
},
|
||||
"DisableEncryptedClientHello": false,
|
||||
"DisableFirefoxAccounts": false,
|
||||
@ -331,7 +332,7 @@
|
||||
"network.trr.disable-ECS": {
|
||||
"Status": "locked",
|
||||
"Type": "boolean",
|
||||
"Value": true
|
||||
"Value": false
|
||||
},
|
||||
"network.trr.display_fallback_warning": {
|
||||
"Status": "locked",
|
||||
@ -434,6 +435,7 @@
|
||||
{
|
||||
"Alias": "dl",
|
||||
"Description": "Minimal, ad-free version of DuckDuckGo",
|
||||
"IconURL": "https://start.duckduckgo.com/static-assets/favicons/DDG-icon_256x256.png",
|
||||
"Method": "POST",
|
||||
"Name": "DuckDuckGo Lite",
|
||||
"PostData": "q={searchTerms}",
|
||||
@ -443,6 +445,7 @@
|
||||
{
|
||||
"Alias": "d",
|
||||
"Description": "DuckDuckGo Start page version",
|
||||
"IconURL": "https://start.duckduckgo.com/static-assets/favicons/DDG-icon_256x256.png",
|
||||
"Method": "GET",
|
||||
"Name": "DuckDuckGo Start",
|
||||
"SuggestURLTemplate": "https://start.duckduckgo.com/ac/?q={searchTerms}&type=list",
|
||||
@ -460,6 +463,7 @@
|
||||
{
|
||||
"Alias": "b",
|
||||
"Description": "Brave Search",
|
||||
"IconURL": "https://cdn.search.brave.com/serp/v2/_app/immutable/assets/favicon.acxxetWH.ico",
|
||||
"Method": "GET",
|
||||
"Name": "Brave Search",
|
||||
"SuggestURLTemplate": "https://search.brave.com/api/suggest?q={searchTerms}",
|
||||
@ -468,6 +472,7 @@
|
||||
{
|
||||
"Alias": "bg",
|
||||
"Description": "Brave Search Goggles",
|
||||
"IconURL": "https://cdn.search.brave.com/serp/v2/_app/immutable/assets/favicon.acxxetWH.ico",
|
||||
"Method": "GET",
|
||||
"Name": "Brave Search Goggles",
|
||||
"SuggestURLTemplate": "https://search.brave.com/api/suggest?q={searchTerms}",
|
||||
|
@ -17,9 +17,16 @@ touch /etc/firefox/policies/policies.json
|
||||
chmod -v a+r /etc/firefox/policies/policies.json
|
||||
printf "WARNING! LibreWolf default profile may be masked!\nhttps://codeberg.org/librewolf/issues/issues/1767\n"
|
||||
|
||||
# Note to self on ln:
|
||||
# -s is obviously symbolic link.
|
||||
# -n will not follow symlink if it's a directory stopping the symlinks.
|
||||
# pointing to the directory containing them.
|
||||
# -v is obviously verbose.
|
||||
# -f is obviously force so there won't be error message about it already
|
||||
# existing.
|
||||
|
||||
# Firefox ESR
|
||||
ln -sfv /etc/firefox /etc/firefox-esr
|
||||
rm -fv /etc/firefox-esr/firefox-esr
|
||||
ln -fnsv /etc/firefox /etc/firefox-esr
|
||||
|
||||
# Chromium
|
||||
mkdir -vp /etc/opt/chromium/policies/managed
|
||||
@ -28,25 +35,17 @@ mkdir -vp /etc/opt/chromium/policies/recommended
|
||||
chmod -v a+rx /etc/opt/chromium/policies/{managed,recommended}/
|
||||
|
||||
# Brave
|
||||
ln -sfv /etc/opt/chromium /etc/brave
|
||||
rm -fv /etc/brave/brave
|
||||
ln -fnsv /etc/opt/chromium /etc/brave
|
||||
|
||||
# Vivaldi
|
||||
ln -sfv /etc/opt/chromium /etc/chromium
|
||||
rm -fv /etc/chromium/chromium
|
||||
ln -fnsv /etc/opt/chromium /etc/chromium
|
||||
|
||||
# Google Chrome
|
||||
ln -sfv /etc/opt/chromium /etc/opt/chrome
|
||||
rm -fv /etc/etc/opt/chrome/chrome
|
||||
ln -fnsv /etc/opt/chromium /etc/opt/chrome
|
||||
|
||||
# Microsoft Edge
|
||||
# NOTE! It breaks chrome:// URLs so the recommended policy apps as new tab page
|
||||
# won't work and wants to open Firefox instead, so I am managing the recommended
|
||||
# policy separately
|
||||
#ln -sfv /etc/opt/chromium /etc/opt/edge
|
||||
mkdir -vp /etc/opt/edge/policies/recommended
|
||||
ln -sfv /etc/opt/chromium/policies/managed /etc/opt/edge/policies/managed
|
||||
rm -fv /etc/opt/edge/policies/managed/managed
|
||||
printf "WARNING! Edge recommended profiles are managed separately.\n"
|
||||
# I used to have a separate policy for it so remember to remove this manually
|
||||
# if it exists!
|
||||
ln -fnsv /etc/opt/chromium /etc/opt/edge
|
||||
|
||||
set +x
|
||||
|
@ -8,7 +8,6 @@
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
|
||||
- [`apps-as-homepage.json`](#apps-as-homepagejson)
|
||||
- [`brave-search.json`](#brave-searchjson)
|
||||
- [`disable-default-browser-check.json`](#disable-default-browser-checkjson)
|
||||
- [`duckduckgo.json`](#duckduckgojson)
|
||||
@ -24,12 +23,6 @@
|
||||
<!-- prettier-ignore-end -->
|
||||
<!-- editorconfig-checker-enable -->
|
||||
|
||||
## `apps-as-homepage.json`
|
||||
|
||||
Sets the new tab page to `chrome://apps` and homepage as the new tab page.
|
||||
However regardless of allowing the user to change homepage, the new tab page
|
||||
won't change.
|
||||
|
||||
## `brave-search.json`
|
||||
|
||||
Sets and displays recommendation on the use of search.brave.com as a search engine by default.
|
||||
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"HomepageIsNewTabPage": true,
|
||||
"NewTabPageLocation": "chrome://apps"
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"DefaultSearchProviderEnabled": true,
|
||||
"DefaultSearchProviderImageURL": "https://cdn.search.brave.com/serp/v2/_app/immutable/assets/favicon.acxxetWH.ico",
|
||||
"DefaultSearchProviderKeyword": "b",
|
||||
"DefaultSearchProviderName": "Brave",
|
||||
"DefaultSearchProviderNewTabURL": "",
|
||||
|
@ -1,8 +1,11 @@
|
||||
{
|
||||
"DefaultSearchProviderEnabled": true,
|
||||
"DefaultSearchProviderImageURL": "https://start.duckduckgo.com/static-assets/favicons/DDG-icon_256x256.png",
|
||||
"DefaultSearchProviderKeyword": "d",
|
||||
"DefaultSearchProviderName": "DuckDuckGo",
|
||||
"DefaultSearchProviderNewTabURL": "",
|
||||
"DefaultSearchProviderSearchURL": "https://start.duckduckgo.com/?q={searchTerms}",
|
||||
"DefaultSearchProviderSuggestURL": "https://start.duckduckgo.com/ac/?q={searchTerms}&type=list"
|
||||
"DefaultSearchProviderNewTabURL": "https://start.duckduckgo.com/chrome_newtab?addon=newext",
|
||||
"DefaultSearchProviderSearchURL": "https://start.duckduckgo.com/?q={searchTerms}&addon=newext",
|
||||
"DefaultSearchProviderSuggestURL": "https://start.duckduckgo.com/ac/?q={searchTerms}&type=list",
|
||||
"HomepageIsNewTabPage": true,
|
||||
"NewTabPageLocation": "https://start.duckduckgo.com/chrome_newtab?addon=newext"
|
||||
}
|
||||
|
@ -5,5 +5,7 @@
|
||||
"DefaultSearchProviderName": "Ecosia",
|
||||
"DefaultSearchProviderNewTabURL": "https://www.ecosia.org/newtab/?addon=chromegpo",
|
||||
"DefaultSearchProviderSearchURL": "https://www.ecosia.org/search?q={searchTerms}&addon=chromegpo",
|
||||
"DefaultSearchProviderSuggestURL": "https://ac.ecosia.org/autocomplete?q={searchTerms}"
|
||||
"DefaultSearchProviderSuggestURL": "https://ac.ecosia.org/autocomplete?q={searchTerms}",
|
||||
"HomepageIsNewTabPage": true,
|
||||
"NewTabPageLocation": "https://www.ecosia.org/newtab/?addon=chromegpo"
|
||||
}
|
||||
|
1
etc/opt/edge/policies/.gitignore
vendored
1
etc/opt/edge/policies/.gitignore
vendored
@ -1 +0,0 @@
|
||||
managed
|
@ -1 +0,0 @@
|
||||
../../chromium/policies/managed
|
6
etc/opt/edge/policies/recommended/.gitignore
vendored
6
etc/opt/edge/policies/recommended/.gitignore
vendored
@ -1,6 +0,0 @@
|
||||
brave-search.json
|
||||
disable-default-browser-check.json
|
||||
duckduckgo.json
|
||||
ecosia.json
|
||||
enable-home.json
|
||||
no-bookmarks-bar.json
|
@ -1,37 +0,0 @@
|
||||
# Microsoft Edge recommended policies
|
||||
|
||||
<!-- editorconfig-checker-disable -->
|
||||
<!-- prettier-ignore-start -->
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
|
||||
- [Fedora?](#fedora)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
<!-- prettier-ignore-end -->
|
||||
<!-- editorconfig-checker-enable -->
|
||||
|
||||
Because apparently Microsoft is so allergic to Chrome, despite being based on
|
||||
Chromium that they have to rewrite `chrome://` into `edge://` without handling
|
||||
automatic redirect from the former, so my policy for apps as new page breaks
|
||||
and suggests opening _Firefox Developer Edition_ for whatever reason.
|
||||
|
||||
Thus separate recommended profiles for Microsoft Edge, just so this one is
|
||||
fixed.
|
||||
|
||||
**_Don't expect this directory to be updated, I will probably forget it
|
||||
myself._**
|
||||
|
||||
## Fedora?
|
||||
|
||||
```bash
|
||||
# Removes all three versions of Microsoft Edge from the system.
|
||||
sudo dnf remove -y microsoft-edge-{stable,beta,dev}
|
||||
# Remove all three Microsoft Edge repositories
|
||||
rm -rv /etc/yum.repos.d/microsoft-edge{,-beta,-dev}.repo
|
||||
# Removes the crontab entries to restore the above, if they didn't get removed
|
||||
# already.
|
||||
rm -v /etc/cron.daily/microsoft-edge{,-beta,-dev}
|
||||
```
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"HomepageIsNewTabPage": true,
|
||||
"NewTabPageLocation": "edge://apps"
|
||||
}
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/brave-search.json
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/disable-default-browser-check.json
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/duckduckgo.json
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/ecosia.json
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/enable-home.json
|
@ -1 +0,0 @@
|
||||
../../../chromium/policies/recommended/no-bookmarks-bar.json
|
Loading…
x
Reference in New Issue
Block a user