From c0062d13107c27be620aadbf899a6cf6118eff30 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 2 Jun 2024 12:23:06 -0400 Subject: [PATCH] qutebrowser: Prefer declaring unbinds with null in nix This is possible since the home manager module handles the null case. See: https://github.com/nix-community/home-manager/blob/9b53a10f4c91892f5af87cf55d08fba59ca086af/modules/programs/qutebrowser.nix#L29-L36 --- home/qutebrowser.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/home/qutebrowser.nix b/home/qutebrowser.nix index 6ff95084..2ef7359c 100644 --- a/home/qutebrowser.nix +++ b/home/qutebrowser.nix @@ -73,6 +73,13 @@ in sTj = "set tabs.position bottom"; sTk = "set tabs.position top"; sTl = "set tabs.position right"; + + pp = null; + pP = null; + Pp = null; + PP = null; + wp = null; + wP = null; }; }; @@ -89,13 +96,6 @@ in c.colors.webpage.darkmode.enabled = False - config.unbind('pp', mode='normal') - config.unbind('pP', mode='normal') - config.unbind('Pp', mode='normal') - config.unbind('PP', mode='normal') - config.unbind('wp', mode='normal') - config.unbind('wP', mode='normal') - config.bind('zl', 'spawn --userscript qute-pass') config.bind('zpl', 'spawn --userscript qute-pass --password-only') config.bind('zol', 'spawn --userscript qute-pass --otp-only')