fork/home-manager
git clone https://git.julia.blue/fork/home-manager
af715ed8
master
1{ lib , pkgs , ...} : 2 3{ 4programs . qutebrowser = { 5enable = true ; 6 7enableDefaultBindings = false ; 8 9keyBindings = { 10normal = { 11"<Ctrl-v>" = "spawn mpv {url}" ; 12",l" = ''config-cycle spellcheck.languages ["en-GB"] ["en-US"]'' ; 13"<F1>" = lib . mkMerge [ 14"config-cycle tabs.show never always" 15"config-cycle statusbar.show in-mode always" 16"config-cycle scrolling.bar never always" 17]; 18}; 19prompt = { "<Ctrl-y>" = "prompt-yes" ; }; 20}; 21}; 22 23test . stubs . qutebrowser = { }; 24 25nmt . script = let 26qutebrowserConfig = if pkgs . stdenv . hostPlatform . isDarwin then 27".qutebrowser/config.py" 28else 29".config/qutebrowser/config.py" ; 30in '' 31assertFileContent \ 32home-files/ ${ qutebrowserConfig } \ 33${ 34pkgs . writeText "qutebrowser-expected-config.py" '' 35config.load_autoconfig(False) 36c.bindings.default = {} 37config.bind(",l", "config-cycle spellcheck.languages [\"en-GB\"] [\"en-US\"]", mode="normal") 38config.bind("<Ctrl-v>", "spawn mpv {url}", mode="normal") 39config.bind("<F1>", "config-cycle tabs.show never always ;; config-cycle statusbar.show in-mode always ;; config-cycle scrolling.bar never always", mode="normal") 40config.bind("<Ctrl-y>", "prompt-yes", mode="prompt")'' 41} 42'' ; 43}