diff --git a/assets/discord/style.css b/assets/discord/style.css index 861c8a8..e98cc9f 100644 --- a/assets/discord/style.css +++ b/assets/discord/style.css @@ -1,3 +1,7 @@ -.winButtons_c38106 winButtonsWithDivider_c38106 { +.winButtons_c38106.winButtonsWithDivider_c38106 { display: none; } + +.trailing_c38106 { + padding-right: 10px; +} diff --git a/assets/firefox/userChrome.css b/assets/firefox/userChrome.css new file mode 100644 index 0000000..e69de29 diff --git a/assets/firefox/userContent.css b/assets/firefox/userContent.css new file mode 100644 index 0000000..e69de29 diff --git a/modules/features/home/browsers.nix b/modules/features/home/browsers.nix new file mode 100644 index 0000000..6d4e60c --- /dev/null +++ b/modules/features/home/browsers.nix @@ -0,0 +1,166 @@ +{ pkgs, libs, ... }: +{ + programs = { + firefox = { + enable = true; + profiles.default = { + settings = { + "browser.startup.homepage" = "about:home"; + }; + + search = { + default = "google"; + engines = { + youtube = { + name = "YouTube"; + definedAliases = [ + "@yt" + "@youtube" + ]; + icon = "https://www.youtube.com/s/desktop/83c08b77/img/favicon.ico"; + urls = [ + { + template = "https://www.youtube.com/results"; + params = [ + { + name = "search_query"; + value = "{searchTerms}"; + } + ]; + } + ]; + }; + + google = { + name = "Google"; + definedAliases = [ + "@g" + "@google" + ]; + icon = "https://www.gstatic.com/images/branding/searchlogo/ico/favicon.ico"; + urls = [ + { + template = "https://www.google.com/search"; + params = [ + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + { + template = "https://www.google.com/search"; + params = [ + { + name = "udm"; + value = "2"; + } + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; + }; + + github = { + name = "Github"; + definedAliases = [ + "@gh" + "@github" + ]; + icon = "https://github.githubassets.com/favicons/favicon-dark.svg"; + urls = [ + { + template = "https://github.com/search"; + params = [ + { + name = "type"; + value = "repositories"; + } + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; + }; + + reddit = { + name = "Reddit"; + definedAliases = [ + "@rd" + "@reddit" + ]; + icon = "https://www.redditstatic.com/shreddit/assets/favicon/192x192.png"; + urls = [ + { + template = "https://www.reddit.com/search"; + params = [ + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; + }; + + nix-packages = { + name = "Nix Packages"; + definedAliases = [ + "@np" + "@nixpkgs" + ]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + urls = [ + { + template = "https://search.nixos.org/packages"; + params = [ + { + name = "type"; + value = "packages"; + } + { + name = "query"; + value = "{searchTerms}"; + } + ]; + } + ]; + }; + + mynixos = { + name = "My NixOS"; + definedAliases = [ "@mynixos" ]; + icon = "https://mynixos.com/favicon.ico"; + urls = [ + { + template = "https://mynixos.com/search"; + params = [ + { + name = "q"; + value = "{searchTerms}"; + } + ]; + } + ]; + }; + + bing.metaData.hidden = true; + ddg.metaData.hidden = true; + perplexity.metaData.hidden = true; + wikipedia.metaData.hidden = true; + }; + }; + + userChrome = builtins.readFile (libs.root "/assets/firefox/userChrome.css"); + userContent = builtins.readFile (libs.root "/assets/firefox/userContent.css"); + }; + }; + + chromium.enable = false; + }; +} diff --git a/modules/features/system/packages.nix b/modules/features/system/packages.nix index d856935..fce3475 100644 --- a/modules/features/system/packages.nix +++ b/modules/features/system/packages.nix @@ -17,7 +17,7 @@ nodejs bun brightnessctl - wine64 + # wine64 quickshell bluetuith diff --git a/modules/programs/hyprland/settings/window-rules.nix b/modules/programs/hyprland/settings/window-rules.nix index 1410417..13902c6 100644 --- a/modules/programs/hyprland/settings/window-rules.nix +++ b/modules/programs/hyprland/settings/window-rules.nix @@ -1,6 +1,13 @@ { ... }: { wayland.windowManager.hyprland.settings.windowrule = [ + "float, class:(clipse)" + "size 622 652, class:(clipse)" + "stayfocused, class:(clipse)" + + "suppressevent maximize, class:.*" + "nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0" + "opacity 0.0 override, class:^(xwaylandvideobridge)$" "noanim, class:^(xwaylandvideobridge)$" "noinitialfocus, class:^(xwaylandvideobridge)$" diff --git a/modules/programs/nixcord/default.nix b/modules/programs/nixcord/default.nix index 60be60d..248bab7 100644 --- a/modules/programs/nixcord/default.nix +++ b/modules/programs/nixcord/default.nix @@ -1,4 +1,4 @@ -{ lib, osconfig, ... }: +{ lib, libs, osconfig, ... }: { programs.nixcord = lib.mkIf osconfig.device.programs.nixcord.enable { enable = true; @@ -7,9 +7,10 @@ vencord.enable = true; }; - quickCss = builtins.readFile ../../../assets/discord/style.css; + quickCss = builtins.readFile (libs.root "/assets/discord/style.css"); config = { + useQuickCss = true; enableReactDevtools = true; themeLinks = [ "https://catppuccin.github.io/discord/dist/catppuccin-mocha-blue.theme.css" ];