mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
fix: stop links opening in wrong profile
This commit is contained in:
parent
875083a74e
commit
3f6f3fbed7
6 changed files with 117 additions and 16 deletions
|
|
@ -7919,6 +7919,7 @@ This holds packages that I can use as provided, or with small modifications (as
|
||||||
picard-tools
|
picard-tools
|
||||||
audacity
|
audacity
|
||||||
sox
|
sox
|
||||||
|
feishin
|
||||||
|
|
||||||
# printing
|
# printing
|
||||||
cups
|
cups
|
||||||
|
|
@ -9684,11 +9685,12 @@ I used to build the firefox addon =bypass-paywalls-clean= myself here, but the m
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox; # uses overrides
|
package = pkgs.firefox; # uses overrides
|
||||||
policies = {
|
policies = {
|
||||||
CaptivePortal = false;
|
# CaptivePortal = false;
|
||||||
DisableFirefoxStudies = true;
|
DisableFirefoxStudies = true;
|
||||||
DisablePocket = true;
|
DisablePocket = true;
|
||||||
DisableTelemetry = true;
|
DisableTelemetry = true;
|
||||||
DisableFirefoxAccounts = false;
|
DisableFirefoxAccounts = false;
|
||||||
|
DisplayBookmarksToolbar = "always";
|
||||||
NoDefaultBookmarks = true;
|
NoDefaultBookmarks = true;
|
||||||
OfferToSaveLogins = false;
|
OfferToSaveLogins = false;
|
||||||
OfferToSaveLoginsDefault = false;
|
OfferToSaveLoginsDefault = false;
|
||||||
|
|
@ -9938,7 +9940,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
||||||
lib.recursiveUpdate
|
lib.recursiveUpdate
|
||||||
{
|
{
|
||||||
"${modifier}+q" = "kill";
|
"${modifier}+q" = "kill";
|
||||||
"${modifier}+f" = "exec firefox";
|
"${modifier}+f" = "exec firefox -p cl_adm";
|
||||||
"${modifier}+Shift+f" = "exec swaymsg fullscreen";
|
"${modifier}+Shift+f" = "exec swaymsg fullscreen";
|
||||||
"${modifier}+Space" = "exec fuzzel";
|
"${modifier}+Space" = "exec fuzzel";
|
||||||
"${modifier}+Shift+Space" = "floating toggle";
|
"${modifier}+Shift+Space" = "floating toggle";
|
||||||
|
|
@ -10359,6 +10361,11 @@ The rest of the settings is at [[#h:bbf2ecb6-c8ff-4462-b5d5-d45b28604ddf][work]]
|
||||||
id = 3;
|
id = 3;
|
||||||
<<firefoxprofile>>
|
<<firefoxprofile>>
|
||||||
};
|
};
|
||||||
|
# i need this profile because xdg-open uses cl_adm profile no matter what i do
|
||||||
|
cl_adm_real = {
|
||||||
|
id = 4;
|
||||||
|
<<firefoxprofile>>
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -10403,11 +10410,18 @@ The rest of the settings is at [[#h:bbf2ecb6-c8ff-4462-b5d5-d45b28604ddf][work]]
|
||||||
};
|
};
|
||||||
|
|
||||||
firefox_cl = {
|
firefox_cl = {
|
||||||
name = "Firefox (cl_adm)";
|
name = "Firefox (Main)";
|
||||||
genericName = "Firefox cl";
|
genericName = "Firefox cl";
|
||||||
exec = "firefox -p cl_adm";
|
exec = "firefox -p cl_adm";
|
||||||
inherit terminal categories icon;
|
inherit terminal categories icon;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
firefox_cl_real = {
|
||||||
|
name = "Firefox (cl_adm)";
|
||||||
|
genericName = "Firefox";
|
||||||
|
exec = "firefox -p cl_adm_real";
|
||||||
|
inherit terminal categories icon;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -12929,12 +12943,12 @@ I am not completely sure on electric-pair-mode yet, sometimes it is very helpful
|
||||||
(setq highlight-parentheses-background-colors '("magenta" "blue" "cyan" "green" "yellow" "orange" "red"))
|
(setq highlight-parentheses-background-colors '("magenta" "blue" "cyan" "green" "yellow" "orange" "red"))
|
||||||
(global-highlight-parentheses-mode t))
|
(global-highlight-parentheses-mode t))
|
||||||
|
|
||||||
(electric-pair-mode 1)
|
;; (electric-pair-mode 1)
|
||||||
(setq electric-pair-preserve-balance t)
|
;; (setq electric-pair-preserve-balance t)
|
||||||
(setq electric-pair-skip-self nil)
|
;; (setq electric-pair-skip-self nil)
|
||||||
(setq electric-pair-delete-adjacent-pairs t)
|
;; (setq electric-pair-delete-adjacent-pairs t)
|
||||||
;; don't skip newline when auto-pairing parenthesis
|
;; don't skip newline when auto-pairing parenthesis
|
||||||
(setq electric-pair-skip-whitespace-chars '(9 32))
|
;; (setq electric-pair-skip-whitespace-chars '(9 32))
|
||||||
|
|
||||||
;; in org-mode buffers, do not pair < and > in order not to interfere with org-tempo
|
;; in org-mode buffers, do not pair < and > in order not to interfere with org-tempo
|
||||||
(add-hook 'org-mode-hook (lambda ()
|
(add-hook 'org-mode-hook (lambda ()
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,12 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox; # uses overrides
|
package = pkgs.firefox; # uses overrides
|
||||||
policies = {
|
policies = {
|
||||||
CaptivePortal = false;
|
# CaptivePortal = false;
|
||||||
DisableFirefoxStudies = true;
|
DisableFirefoxStudies = true;
|
||||||
DisablePocket = true;
|
DisablePocket = true;
|
||||||
DisableTelemetry = true;
|
DisableTelemetry = true;
|
||||||
DisableFirefoxAccounts = false;
|
DisableFirefoxAccounts = false;
|
||||||
|
DisplayBookmarksToolbar = "always";
|
||||||
NoDefaultBookmarks = true;
|
NoDefaultBookmarks = true;
|
||||||
OfferToSaveLogins = false;
|
OfferToSaveLogins = false;
|
||||||
OfferToSaveLoginsDefault = false;
|
OfferToSaveLoginsDefault = false;
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
picard-tools
|
picard-tools
|
||||||
audacity
|
audacity
|
||||||
sox
|
sox
|
||||||
|
feishin
|
||||||
|
|
||||||
# printing
|
# printing
|
||||||
cups
|
cups
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ in
|
||||||
lib.recursiveUpdate
|
lib.recursiveUpdate
|
||||||
{
|
{
|
||||||
"${modifier}+q" = "kill";
|
"${modifier}+q" = "kill";
|
||||||
"${modifier}+f" = "exec firefox";
|
"${modifier}+f" = "exec firefox -p cl_adm";
|
||||||
"${modifier}+Shift+f" = "exec swaymsg fullscreen";
|
"${modifier}+Shift+f" = "exec swaymsg fullscreen";
|
||||||
"${modifier}+Space" = "exec fuzzel";
|
"${modifier}+Space" = "exec fuzzel";
|
||||||
"${modifier}+Shift+Space" = "floating toggle";
|
"${modifier}+Shift+Space" = "floating toggle";
|
||||||
|
|
|
||||||
|
|
@ -269,6 +269,84 @@
|
||||||
search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
|
search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
|
||||||
|
|
||||||
};
|
};
|
||||||
|
# i need this profile because xdg-open uses cl_adm profile no matter what i do
|
||||||
|
cl_adm_real = {
|
||||||
|
id = 4;
|
||||||
|
|
||||||
|
isDefault = false;
|
||||||
|
userChrome = builtins.readFile ../../../programs/firefox/chrome/userChrome.css;
|
||||||
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
tridactyl
|
||||||
|
browserpass
|
||||||
|
clearurls
|
||||||
|
darkreader
|
||||||
|
enhancer-for-youtube
|
||||||
|
istilldontcareaboutcookies
|
||||||
|
translate-web-pages
|
||||||
|
ublock-origin
|
||||||
|
reddit-enhancement-suite
|
||||||
|
sponsorblock
|
||||||
|
web-archives
|
||||||
|
onepassword-password-manager
|
||||||
|
single-file
|
||||||
|
widegithub
|
||||||
|
enhanced-github
|
||||||
|
unpaywall
|
||||||
|
don-t-fuck-with-paste
|
||||||
|
plasma-integration
|
||||||
|
];
|
||||||
|
|
||||||
|
search.engines = {
|
||||||
|
"Nix Packages" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/packages";
|
||||||
|
params = [
|
||||||
|
{ name = "type"; value = "packages"; }
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@np" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Wiki" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://nixos.wiki/index.php?search={searchTerms}";
|
||||||
|
}];
|
||||||
|
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
||||||
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
||||||
|
definedAliases = [ "@nw" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://search.nixos.org/options";
|
||||||
|
params = [
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@no" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Home Manager Options" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://home-manager-options.extranix.com/";
|
||||||
|
params = [
|
||||||
|
{ name = "query"; value = "{searchTerms}"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
|
definedAliases = [ "@hm" "@ho" "@hmo" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Google".metaData.alias = "@g";
|
||||||
|
};
|
||||||
|
search.force = true; # this is required because otherwise the search.json.mozlz4 symlink gets replaced on every firefox restart
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -313,11 +391,18 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
firefox_cl = {
|
firefox_cl = {
|
||||||
name = "Firefox (cl_adm)";
|
name = "Firefox (Main)";
|
||||||
genericName = "Firefox cl";
|
genericName = "Firefox cl";
|
||||||
exec = "firefox -p cl_adm";
|
exec = "firefox -p cl_adm";
|
||||||
inherit terminal categories icon;
|
inherit terminal categories icon;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
firefox_cl_real = {
|
||||||
|
name = "Firefox (cl_adm)";
|
||||||
|
genericName = "Firefox";
|
||||||
|
exec = "firefox -p cl_adm_real";
|
||||||
|
inherit terminal categories icon;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1275,12 +1275,12 @@ create a new one."
|
||||||
(setq highlight-parentheses-background-colors '("magenta" "blue" "cyan" "green" "yellow" "orange" "red"))
|
(setq highlight-parentheses-background-colors '("magenta" "blue" "cyan" "green" "yellow" "orange" "red"))
|
||||||
(global-highlight-parentheses-mode t))
|
(global-highlight-parentheses-mode t))
|
||||||
|
|
||||||
(electric-pair-mode 1)
|
;; (electric-pair-mode 1)
|
||||||
(setq electric-pair-preserve-balance t)
|
;; (setq electric-pair-preserve-balance t)
|
||||||
(setq electric-pair-skip-self nil)
|
;; (setq electric-pair-skip-self nil)
|
||||||
(setq electric-pair-delete-adjacent-pairs t)
|
;; (setq electric-pair-delete-adjacent-pairs t)
|
||||||
;; don't skip newline when auto-pairing parenthesis
|
;; don't skip newline when auto-pairing parenthesis
|
||||||
(setq electric-pair-skip-whitespace-chars '(9 32))
|
;; (setq electric-pair-skip-whitespace-chars '(9 32))
|
||||||
|
|
||||||
;; in org-mode buffers, do not pair < and > in order not to interfere with org-tempo
|
;; in org-mode buffers, do not pair < and > in order not to interfere with org-tempo
|
||||||
(add-hook 'org-mode-hook (lambda ()
|
(add-hook 'org-mode-hook (lambda ()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue