From 7a99abad527459adde3ec118993a4c0521c4110b Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Fri, 3 May 2024 09:46:53 +0200 Subject: [PATCH] Migrate firefox -> floorp --- home/default.nix | 2 +- home/dunst/settings.nix | 2 +- home/firefox/default.nix | 26 -------------------------- home/firefox/extra_policies.nix | 27 --------------------------- home/firefox/search.nix | 22 ---------------------- home/qtile/src/core/keys.py | 2 +- 6 files changed, 3 insertions(+), 78 deletions(-) delete mode 100644 home/firefox/default.nix delete mode 100644 home/firefox/extra_policies.nix delete mode 100644 home/firefox/search.nix diff --git a/home/default.nix b/home/default.nix index 661cedb..68a2283 100644 --- a/home/default.nix +++ b/home/default.nix @@ -10,7 +10,6 @@ ./neofetch ./picom ./dunst - ./firefox ./qtile ./thunar ./tmux @@ -50,6 +49,7 @@ # messaging discord teams-for-linux + floorp # dev gnumake diff --git a/home/dunst/settings.nix b/home/dunst/settings.nix index ebaa688..c45f812 100644 --- a/home/dunst/settings.nix +++ b/home/dunst/settings.nix @@ -3,7 +3,7 @@ global = { alignment = "left"; always_run_script = true; - browser = "${pkgs.firefox-devedition-bin}"; + browser = "${pkgs.floorp}/bin/floorp"; font = "JetBrainsMono Nerd Font Mono 10"; frame_color = "#8AADF4"; diff --git a/home/firefox/default.nix b/home/firefox/default.nix deleted file mode 100644 index 6c07bf1..0000000 --- a/home/firefox/default.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ pkgs, ... }: -{ - programs.firefox = { - enable = true; - - package = pkgs.wrapFirefox pkgs.firefox-bin-unwrapped - (import ./extra_policies.nix { inherit pkgs; }); - - profiles = { - sigmanificient = { - id = 0; - - name = "sigmanificient"; - search = (import ./search.nix { inherit pkgs; }); - settings = { - "browser.newtabpage.pinned" = [ - { title = "NixOS"; url = "https://nixos.org"; } - { title = "Github"; url = "https://github.com"; } - { title = "YouTube"; url = "https://youtube.com"; } - ]; - "general.smoothScroll" = true; - }; - }; - }; - }; -} diff --git a/home/firefox/extra_policies.nix b/home/firefox/extra_policies.nix deleted file mode 100644 index 7cb2aa9..0000000 --- a/home/firefox/extra_policies.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ ... }: -{ - extraPolicies = { - CaptivePortal = false; - DisableFirefoxStudies = true; - DisablePocket = true; - DisableTelemetry = true; - DisableFirefoxAccounts = true; - NoDefaultBookmarks = true; - OfferToSaveLogins = false; - OfferToSaveLoginsDefault = false; - PasswordManagerEnabled = false; - - FirefoxHome = { - Search = false; - Pocket = false; - Snippets = false; - TopSites = false; - Highlights = false; - }; - - UserMessaging = { - ExtensionRecommendations = false; - SkipOnboarding = true; - }; - }; -} diff --git a/home/firefox/search.nix b/home/firefox/search.nix deleted file mode 100644 index 17077a8..0000000 --- a/home/firefox/search.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ pkgs, ... }: -{ - force = true; - default = "DuckDuckGo"; - 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" ]; - }; - - "Bing".metaData.hidden = true; - "Google".metaData.alias = "@g"; - }; -} diff --git a/home/qtile/src/core/keys.py b/home/qtile/src/core/keys.py index 6d33fe1..3b945e6 100644 --- a/home/qtile/src/core/keys.py +++ b/home/qtile/src/core/keys.py @@ -41,7 +41,7 @@ def toggle_keypad(control: int, state: bool): Key([mod, "shift"], "v", lazy.spawn("pavucontrol")), Key([mod], "l", lazy.spawn("betterlockscreen -l")), Key([mod], "f", lazy.window.toggle_floating()), - Key([mod], "b", lazy.spawn("firefox")), + Key([mod], "b", lazy.spawn("floorp")), Key([], "Print", lazy.spawn("flameshot gui --clipboard")), Key([mod], "space", lazy.layout.next()), Key([mod, "shift"], "h", lazy.layout.shuffle_left()),