diff --git a/home/programs/browser.nix b/home/programs/browser.nix new file mode 100644 index 0000000..ed7e4df --- /dev/null +++ b/home/programs/browser.nix @@ -0,0 +1,43 @@ +{ + programs.qutebrowser = { + enable = true; + searchEngines = { + DEFAULT = "https://search.brave.com/search?q={}"; + w = "https://en.wikipedia.org/index.php?search={}"; + aw = "https://wiki.archlinux.org/?search={}"; + nw = "https://nixos.wiki/index.php?search={}"; + yt = "https://yewtu.be/results?search_query={}"; + nixpkgs = "https://search.nixos.org/packages?channel=unstable&query={}"; + nixos = "https://search.nixos.org/options?channel=unstable&query={}"; + home = "https://mipmip.github.io/home-manager-option-search/?query={}"; + }; + settings = { + colors = { + webpage.preferred_color_scheme = "dark"; + }; + tabs = { + background = false; + indicator.width = 0; + favicons.scale = 2.0; + position = "left"; + show = "switching"; + }; + }; + keyBindings = { + normal = { + "gvy" = "spawn mpv {url}"; + "gvf" = "hint links spawn mpv {url}"; + }; + }; + extraConfig = '' + c.tabs.padding = { + "bottom" : 10, + "left" : 5, + "right" : 5, + "top" : 10 + } + ''; + }; + + +} diff --git a/home/programs/graphical.nix b/home/programs/graphical.nix index afcb49b..49e576e 100644 --- a/home/programs/graphical.nix +++ b/home/programs/graphical.nix @@ -1,4 +1,9 @@ {pkgs, ...}: { + + imports = [ + ./browser.nix + ]; + home.packages = with pkgs; [ imv obs-studio @@ -61,35 +66,4 @@ programs.librewolf.enable = true; - programs.qutebrowser = { - enable = true; - searchEngines = { - DEFAULT = "https://search.brave.com/search?q={}"; - w = "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1"; - aw = "https://wiki.archlinux.org/?search={}"; - nw = "https://nixos.wiki/index.php?search={}"; - nixpkgs = "https://search.nixos.org/packages?channel=unstable&query={}"; - }; - settings = { - colors = { - webpage.preferred_color_scheme = "dark"; - }; - tabs = { - background = false; - indicator.width = 0; - favicons.scale = 2.0; - position = "left"; - show = "always"; - width = 40; - }; - }; - extraConfig = '' - c.tabs.padding = { - "bottom" : 10, - "left" : 5, - "right" : 5, - "top" : 10 - } - ''; - }; }