qutebrowser is the default browser now

This commit is contained in:
Andrea Ciceri 2022-04-24 15:26:00 +02:00
parent 39521036fb
commit d4962d6fc3
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
4 changed files with 20 additions and 5 deletions

View file

@ -6,7 +6,7 @@
services.pipewire.enable = true; services.pipewire.enable = true;
environment.sessionVariables = { environment.sessionVariables = {
MOZ_ENABLE_WAYLAND = "1"; MOZ_ENABLE_WAYLAND = "1";
XDG_CURRENT_DESKTOP = "sway"; # https://github.com/emersion/xdg-desktop-portal-wlr/issues/20 #XDG_CURRENT_DESKTOP = "sway"; # https://github.com/emersion/xdg-desktop-portal-wlr/issues/20
XDG_SESSION_TYPE = "wayland"; # https://github.com/emersion/xdg-desktop-portal-wlr/pull/11 #XDG_SESSION_TYPE = "wayland"; # https://github.com/emersion/xdg-desktop-portal-wlr/pull/11
}; };
} }

View file

@ -1,5 +1,19 @@
{ {
programs.qutebrowser = { programs.qutebrowser = {
enable = true; enable = true;
keyBindings = {
normal = {
"<Ctrl-V>" = "spawn mpv {url}";
",l" = ''config-cycle spellcheck.languages ["it-IT"] ["en-US"]'';
};
};
settings = {
editor.command = [
"emacsclient"
"+{line}:{column}"
"{file}"
"-c"
];
};
}; };
} }

View file

@ -59,7 +59,7 @@
in in
lib.mkOptionDefault { lib.mkOptionDefault {
"${modifier}+x" = "exec emacsclient -c"; "${modifier}+x" = "exec emacsclient -c";
"${modifier}+b" = "exec firefox"; "${modifier}+b" = "exec qutebrowser";
"${modifier}+s" = "exec ${screenshotScript}"; "${modifier}+s" = "exec ${screenshotScript}";
"XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl s +5%"; "XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl s +5%";
"XF86MonBrightnessDown" = "exec ${pkgs.brightnessctl}/bin/brightnessctl s 5%-"; "XF86MonBrightnessDown" = "exec ${pkgs.brightnessctl}/bin/brightnessctl s 5%-";

View file

@ -41,7 +41,8 @@
"pass-clone" = "[ -d .password-store ] && echo 'Password store archive already exists' || git clone git@git.sr.ht:~zrsk/pass ~/.password-store"; "pass-clone" = "[ -d .password-store ] && echo 'Password store archive already exists' || git clone git@git.sr.ht:~zrsk/pass ~/.password-store";
"getpass" = "pass show $(find .password-store/ -name \"*.gpg\" | sed \"s/\\.password-store\\/\\(.*\\)\\.gpg$/\\1/g\" | fzf) | wl-copy; ((sleep 60 && wl-copy --clear) &)"; "getpass" = "pass show $(find .password-store/ -name \"*.gpg\" | sed \"s/\\.password-store\\/\\(.*\\)\\.gpg$/\\1/g\" | fzf) | wl-copy; ((sleep 60 && wl-copy --clear) &)";
"cat" = "bat"; "cat" = "bat";
"em" = "emacsclient -c"; "em" = "[[ -z \$XDG_CURRENT_DESKTOP ]] && emacsclient -c -nw || emacsclient -c";
"emw" = "emacsclient -c";
"emnw" = "emacsclient -c -nw"; "emnw" = "emacsclient -c -nw";
}; };
localVariables = { localVariables = {
@ -49,7 +50,7 @@
SPACESHIP_TIME_SHOW = "true"; SPACESHIP_TIME_SHOW = "true";
SPACESHIP_USER_SHOW = "always"; SPACESHIP_USER_SHOW = "always";
SPACESHIP_HOST_SHOW = "always"; SPACESHIP_HOST_SHOW = "always";
EDITOR = "vim"; EDITOR = "em";
NIX_BUILD_SHELL = "${pkgs.zsh-nix-shell}/scripts/buildShellShim.zsh"; NIX_BUILD_SHELL = "${pkgs.zsh-nix-shell}/scripts/buildShellShim.zsh";
PROMPT = "\\\${IN_NIX_SHELL:+[nix-shell] }$PROMPT"; PROMPT = "\\\${IN_NIX_SHELL:+[nix-shell] }$PROMPT";
}; };