From 2259995584f674a4895d28502b2a66f7081846f1 Mon Sep 17 00:00:00 2001 From: Grey Jones Date: Mon, 19 Oct 2026 20:36:56 +0100 Subject: [PATCH] switch laptop browser to librewolf --- .../kitagawa/equibop/equicord-settings.json | 154 +++++++++++++++--- dotfiles/kitagawa/niri.kdl | 6 +- dotfiles/kitagawa/noctalia/settings.toml | 7 +- modules/components/window-managers/biri.nix | 4 +- .../features/applications/gui/librewolf.nix | 131 +++++++++++++++ modules/hosts/kitagawa/kitagawa.nix | 2 +- 6 files changed, 273 insertions(+), 31 deletions(-) create mode 100644 modules/features/applications/gui/librewolf.nix diff --git a/dotfiles/kitagawa/equibop/equicord-settings.json b/dotfiles/kitagawa/equibop/equicord-settings.json index 298b239..34665e5 100644 --- a/dotfiles/kitagawa/equibop/equicord-settings.json +++ b/dotfiles/kitagawa/equibop/equicord-settings.json @@ -4,7 +4,7 @@ "authenticated": false, "settingsSync": false, "url": "https://cloud.equicord.org/", - "settingsSyncVersion": 1790690445480 + "settingsSyncVersion": 1792432679474 }, "enableOnlineThemes": true, "enabledThemeLinks": [ @@ -61,25 +61,12 @@ "removeUnavailableEmojiPicker": true, "removeProfileFrame": true, "removeLibraryAboveDms": false, - "removeFamilyCenterAboveDms": false + "removeFamilyCenterAboveDms": false, + "removeDisplayNameStyles": true }, "DisableCallIdle": { "enabled": true }, - "EquicordHelper": { - "accountStandingButton": false, - "disableAdoptTagPrompt": false, - "enabled": true, - "forceRoleIcon": false, - "hideVoiceIndicatorForMutedChannels": false, - "jsonGateway": false, - "noBulletPoints": false, - "noMirroredCamera": false, - "noModalAnimation": false, - "removeActivitySection": false, - "restoreFileDownloadButton": false, - "showYourOwnActivityButtons": false - }, "FakeNitro": { "disableEmbedPermissionCheck": false, "emojiSize": 48, @@ -106,7 +93,7 @@ "enabled": true }, "NewPluginsManager": { - "enabled": true + "enabled": false }, "NoTrack": { "disableAnalytics": true, @@ -758,9 +745,6 @@ "FastDeleteChannels": { "enabled": false }, - "FavouriteAnything": { - "enabled": false - }, "FileUpload": { "enabled": false }, @@ -970,7 +954,95 @@ }, "Questify": { "enabled": false, - "migrationVersion": 1 + "migrationVersion": 1, + "disableSponsoredBanner": false, + "disableRelocationNotices": true, + "disableFriendsListPromo": true, + "disableMembersListPromo": true, + "disableAccountPanelPromo": true, + "disableAccountPanelQuestProgress": false, + "disableOrbsAndQuestsBadges": false, + "autoCompleteQuestTypes": { + "PLAY_ON_DESKTOP": false, + "PLAY_ON_XBOX": false, + "PLAY_ON_PLAYSTATION": false, + "PLAY_ACTIVITY": false, + "WATCH_VIDEO": false, + "WATCH_VIDEO_ON_MOBILE": false, + "ACHIEVEMENT_IN_ACTIVITY": false + }, + "disableQuestsEverything": false, + "allowChangingDangerousSettings": false, + "hideNonAutoCompletableQuests": false, + "completeVideoQuestsQuicker": false, + "preventVideoQuestsPausing": false, + "makeMobileVideoQuestsDesktopCompatible": false, + "autoCompleteQuestsSimultaneously": false, + "resumeInterruptedQuests": false, + "questButtonIncludedTypes": { + "1": true, + "2": true, + "3": true, + "4": true, + "5": true, + "WATCH_VIDEO": true, + "WATCH_VIDEO_ON_MOBILE": true, + "ACHIEVEMENT_IN_ACTIVITY": true, + "ACHIEVEMENT_IN_GAME": true, + "PLAY_ACTIVITY": true, + "PLAY_ON_DESKTOP": true, + "PLAY_ON_DESKTOP_V2": true, + "STREAM_ON_DESKTOP": true, + "PLAY_ON_PLAYSTATION": true, + "PLAY_ON_XBOX": true + }, + "questButtonLeftClickAction": "open-quests", + "questButtonMiddleClickAction": "plugin-settings", + "questButtonRightClickAction": "context-menu", + "questButtonDisplay": "always", + "questButtonIndicator": "both", + "questButtonBadgeColor": 2842239, + "notifyOnQuestComplete": true, + "questCompletedAlertSound": "bop_message1", + "questCompletedAlertVolume": 100, + "notifyOnNewQuests": true, + "newQuestAlertSound": "discodo", + "newQuestAlertVolume": 100, + "notifyOnNewExcludedQuests": false, + "newExcludedQuestAlertSound": null, + "newExcludedQuestAlertVolume": 100, + "questFetchInterval": 2700, + "questTileUnclaimedColor": { + "enabled": true, + "color": 2842239 + }, + "questTileGradient": "intense", + "questTilePreload": true, + "questTileClaimedColor": { + "enabled": true, + "color": 6105983 + }, + "questTileIgnoredColor": { + "enabled": true, + "color": 8334124 + }, + "questTileExpiredColor": { + "enabled": true, + "color": 2368553 + }, + "questOrder": [ + "UNCLAIMED", + "CLAIMED", + "IGNORED", + "EXPIRED" + ], + "hiddenQuestStatuses": [], + "unclaimedSubsort": "Expiring ASC", + "claimedSubsort": "Claimed DESC", + "ignoredSubsort": "Recent DESC", + "expiredSubsort": "Expiring DESC", + "rememberQuestPageSort": true, + "rememberQuestPageFilters": true }, "Quoter": { "enabled": false @@ -1194,9 +1266,6 @@ "MusicRichPresence": { "enabled": false }, - "TenorGifSearch": { - "enabled": false - }, "AutoJumpToMessage": { "enabled": false, "onlyWhenUnfocused": true @@ -1209,6 +1278,40 @@ }, "VoiceMessagesInBackground": { "enabled": true + }, + "GifProviderSwitcher": { + "enabled": false + }, + "AddAttachments": { + "enabled": false + }, + "BetterImageEditor": { + "enabled": false + }, + "ReactionTimestamps": { + "enabled": false + }, + "FixDiscordCss": { + "enabled": true + }, + "EquiTweaks": { + "accountStandingButton": false, + "disableAdoptTagPrompt": false, + "enabled": true, + "forceRoleIcon": false, + "hideVoiceIndicatorForMutedChannels": false, + "jsonGateway": false, + "noBulletPoints": false, + "noMirroredCamera": false, + "noModalAnimation": false, + "removeActivitySection": false, + "restoreFileDownloadButton": false, + "showYourOwnActivityButtons": false, + "noOnboarding": false, + "enableAutoCorrect": false + }, + "FavoriteAnything": { + "enabled": false } }, "useQuickCss": true, @@ -1239,5 +1342,6 @@ "logLimit": 50 }, "ignoreResetWarning": false, - "userCssVars": {} + "userCssVars": {}, + "nativeTitleBar": false } \ No newline at end of file diff --git a/dotfiles/kitagawa/niri.kdl b/dotfiles/kitagawa/niri.kdl index b1ba2d9..aa56c25 100644 --- a/dotfiles/kitagawa/niri.kdl +++ b/dotfiles/kitagawa/niri.kdl @@ -35,7 +35,7 @@ layout { center-focused-column "never" } binds { - Mod+B hotkey-overlay-title="Open web browser (Floorp)" { spawn "floorp"; } + Mod+B hotkey-overlay-title="Open web browser (LibreWolf)" { spawn "librewolf"; } Mod+E hotkey-overlay-title="Open file manager (Nautilus)" { spawn "nautilus" "-w"; } Mod+Comma { spawn "noctalia" "msg" "panel-toggle" "dunarand/bookmarks:panel" "search"; } @@ -48,6 +48,9 @@ binds { Mod+equal { set-column-width "+2%"; } Mod+minus { set-column-width "-2%"; } + Mod+Shift+equal { set-window-height "+2%"; } + Mod+Shift+minus { set-window-height "-2%"; } + XF86Favorites { spawn "niri-toggle-dwt"; } } window-rule { @@ -55,6 +58,7 @@ window-rule { } window-rule { match app-id="^floorp$" + match app-id="^librewolf$" match app-id="^code$" match app-id="^obsidian$" match title="^takamaki$" app-id="^.*\\.Remmina$" diff --git a/dotfiles/kitagawa/noctalia/settings.toml b/dotfiles/kitagawa/noctalia/settings.toml index 05c09d2..66a3240 100644 --- a/dotfiles/kitagawa/noctalia/settings.toml +++ b/dotfiles/kitagawa/noctalia/settings.toml @@ -1,4 +1,4 @@ -config_version = 14 +config_version = 15 [audio] enable_sounds = true @@ -181,6 +181,8 @@ auto_locate = true [lockscreen] blur_intensity = 0.54999998770654202 tint_intensity = 0.24999999441206455 +transition = [ "zoom" ] +transition_duration = 200 [lockscreen_widgets] enabled = true @@ -341,7 +343,8 @@ polkit_agent = true wallpaper_placement = "floating" [shell.screen_corners] - size = 16 + enabled = true + size = 12 [shell.screenshot] confirm_region = true diff --git a/modules/components/window-managers/biri.nix b/modules/components/window-managers/biri.nix index 7d33052..62e3d85 100644 --- a/modules/components/window-managers/biri.nix +++ b/modules/components/window-managers/biri.nix @@ -12,7 +12,7 @@ }; }; - flake.homeModules.graphics = { config, lib, ... }: { + flake.homeModules.graphics = { config, lib, pkgs, ... }: { config = lib.mkIf (builtins.elem "biri" config.components.windowManagers) { features.applications.shellScripts = { niri-scratch-workspace-toggle = '' @@ -53,7 +53,7 @@ echo '{"dwt": false}' | jq '.' > niri.json fi PRETTY_STATE=$(if jq -e '.dwt' niri.json >/dev/null; then echo "on"; else echo "off"; fi) - notify-send -e -a "niri-toggle-dwt script" "Toggled DWT $PRETTY_STATE" + ${pkgs.libnotify}/bin/notify-send -e -a "niri-toggle-dwt script" "Toggled DWT $PRETTY_STATE" ''; niri-clear-state = '' diff --git a/modules/features/applications/gui/librewolf.nix b/modules/features/applications/gui/librewolf.nix new file mode 100644 index 0000000..d804986 --- /dev/null +++ b/modules/features/applications/gui/librewolf.nix @@ -0,0 +1,131 @@ +{ inputs, self, ... }: { + imports = [ (inputs.helpers.mkMirroredModulesFlakeModule "graphicsOptions" ({ lib, ... }: { + options.features.applications.gui.librewolf.enable = lib.mkEnableOption "LibreWolf Browser"; + })) ]; + + flake.nixosModules.graphics = { pkgs, lib, config, ... }: { + config = lib.mkIf (config.features.applications.gui.librewolf.enable) (inputs.helpers.mkIfElse (config.features.nixos.home-manager.enable) { + home-manager.users.${config.info.userName}.features.applications.gui.librewolf.enable = lib.mkDefault true; + } { + environment.systemPackages = [ pkgs.librewolf-bin ]; + }); + }; + + flake.homeModules.graphics = { pkgs, lib, config, ... }: { + config = lib.mkIf (config.features.applications.gui.librewolf.enable) ( + let + firefox-addons = inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; + in { + programs.librewolf = { + enable = true; + nativeMessagingHosts = [ + pkgs.firefoxpwa + ]; + profiles.default = { + extensions = { + packages = with firefox-addons; [ + bitwarden + indie-wiki-buddy + pwas-for-firefox + ]; + + settings = { + ${firefox-addons.ublock-origin.addonId} = { + force = true; + settings = { + "firstInstall" = false; + "hidingAds" = true; + "clickingAds" = true; + "blockingMalware" = true; + "disableClickingForDNT" = true; + "clickProbability" = 0.75; + selectedFilterLists = [ + "user-filters" + "eff-dnt-whitelist" + "ublock-filters" + "ublock-badware" + "ublock-privacy" + "ublock-quick-fixes" + "ublock-unbreak" + "easylist" + "easyprivacy" + "urlhaus-1" + "fanboy-cookiemonster" + "ublock-cookies-easylist" + "adguard-cookies" + "ublock-cookies-adguard" + "fanboy-ai-suggestions" + "easylist-chat" + "easylist-newsletters" + "easylist-notifications" + "easylist-annoyances" + "adguard-mobile-app-banners" + "adguard-other-annoyances" + "adguard-popup-overlays" + "adguard-widgets" + "ublock-annoyances" + ]; + }; + }; + }; + }; + + search = { + engines = { + nixpkgs = { + name = "nixpkgs packages"; + urls = [ + { + template = "https://search.nixos.org/packages?query={searchTerms}"; + } + ]; + icon = "https://wiki.nixos.org/favicon.ico"; + definedAliases = ["@np"]; + }; + nixos-options = { + name = "NixOS options"; + urls = [ + { + template = "https://search.nixos.org/options?query={searchTerms}"; + } + ]; + icon = "https://wiki.nixos.org/favicon.ico"; + definedAliases = ["@no"]; + }; + nixos-wiki = { + name = "NixOS Wiki"; + urls = [ + { + template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; + } + ]; + icon = "https://wiki.nixos.org/favicon.ico"; + definedAliases = ["@nw"]; + }; + noogle = { + name = "Noogle"; + urls = [ + { + template = "https://noogle.dev/q/?term={searchTerms}"; + } + ]; + icon = "https://noogle.dev/favicon.ico"; + definedAliases = ["@ng"]; + }; + arch-wiki = { + name = "ArchWiki"; + urls = [ + { + template = "https://wiki.archlinux.org/index.php?search={searchTerms}"; + } + ]; + icon = "https://wiki.archlinux.org/favicon.ico"; + definedAliases = ["@aw"]; + }; + }; + }; + }; + }; + }); + }; +} diff --git a/modules/hosts/kitagawa/kitagawa.nix b/modules/hosts/kitagawa/kitagawa.nix index efd2236..4ae3e74 100644 --- a/modules/hosts/kitagawa/kitagawa.nix +++ b/modules/hosts/kitagawa/kitagawa.nix @@ -41,7 +41,7 @@ kitty.enable = true; vscode.enable = true; equibop.enable = true; - floorp.enable = true; + librewolf.enable = true; remmina.enable = true; spotify = { enable = true;