diff options
| -rw-r--r-- | modules/communication/neomutt/keybindings.nix | 14 | ||||
| -rw-r--r-- | modules/web/chromium/default.nix | 21 | ||||
| -rw-r--r-- | users/arpit.nix | 6 |
3 files changed, 29 insertions, 12 deletions
diff --git a/modules/communication/neomutt/keybindings.nix b/modules/communication/neomutt/keybindings.nix index 4dab4a5..7903d9a 100644 --- a/modules/communication/neomutt/keybindings.nix +++ b/modules/communication/neomutt/keybindings.nix @@ -10,6 +10,7 @@ in { config.programs.neomutt.binds = lib.mkIf config.communication.neomutt.enable [ # Index ------------------------------------------------------------------ + (bind [ "index" ] "$" "noop") (bind [ "index" ] "g" "noop") (bind [ "index" ] "d" "noop") (bind [ "index" ] "z" "noop") @@ -20,6 +21,7 @@ in (bind [ "index" ] "h" "noop") (bind [ "index" ] "<Space>" "noop") (bind [ "index" ] ":q" "exit") + (bind [ "index" ] ":w" "sync-mailbox") (bind [ "index" ] "j" "next-entry") (bind [ "index" ] "k" "previous-entry") (bind [ "index" ] "gg" "first-entry") @@ -67,6 +69,7 @@ in (bind [ "pager" ] "q" "noop") (bind [ "pager" ] "\\Ch" "help") (bind [ "pager" ] ":q" "exit") + (bind [ "pager" ] ":w" "sync-mailbox") (bind [ "pager" ] "j" "next-line") (bind [ "pager" ] "k" "previous-line") (bind [ "pager" ] "gg" "top") @@ -102,8 +105,13 @@ in (bind [ "attach" ] "q" "noop") (bind [ "attach" ] "\\Ch" "help") (bind [ "attach" ] ":q" "exit") + (bind [ "attach" ] ":w" "save-entry") (bind [ "attach" ] "j" "next-entry") (bind [ "attach" ] "k" "previous-entry") + (bind [ "attach" ] "gg" "first-entry") + (bind [ "attach" ] "G" "last-entry") + (bind [ "attach" ] "\\Cd" "half-down") + (bind [ "attach" ] "\\Cu" "half-up") (bind [ "attach" ] "l" "view-attach") (bind [ "attach" ] "s" "save-entry") (bind [ "attach" ] "p" "print-entry") @@ -125,12 +133,18 @@ in (bind [ "browser" ] "\\Cu" "half-up") # Compose menu ----------------------------------------------------------- + (bind [ "compose" ] "g" "noop") (bind [ "compose" ] ":" "noop") (bind [ "compose" ] "q" "noop") (bind [ "compose" ] "\\Ch" "help") (bind [ "compose" ] ":q" "exit") + (bind [ "compose" ] ":w" "postpone-message") (bind [ "compose" ] "j" "next-entry") (bind [ "compose" ] "k" "previous-entry") + (bind [ "compose" ] "gg" "first-entry") + (bind [ "compose" ] "G" "last-entry") + (bind [ "compose" ] "\\Cd" "half-down") + (bind [ "compose" ] "\\Cu" "half-up") (bind [ "compose" ] "y" "send-message") (bind [ "compose" ] "a" "attach-file") (bind [ "compose" ] "e" "edit-message") diff --git a/modules/web/chromium/default.nix b/modules/web/chromium/default.nix index 19038e5..f38cdf8 100644 --- a/modules/web/chromium/default.nix +++ b/modules/web/chromium/default.nix @@ -19,15 +19,14 @@ defaultText = lib.literalExpression "config.programs.chromium.finalPackage"; description = "Package to use for chromium. Defaults to the wrapped finalPackage from programs.chromium."; }; - checkForUpdates = lib.mkOption { - type = lib.types.bool; - default = true; - description = '' - Check GitHub for newer extension releases before building, and abort - with upgrade instructions if the pinned version is stale. Requires - network access during evaluation (pass --impure to nix/home-manager). - ''; - }; + checkForUpdates = lib.mkEnableOption '' + Check GitHub for newer extension releases before building, and abort + with upgrade instructions if the pinned version is stale. Requires + network access during evaluation (pass --impure to nix/home-manager). + ''; + useOpenGL = lib.mkEnableOption '' + Use OpenGL APIs for graphics acceleration + ''; }; config = lib.mkIf config.web.chromium.enable { @@ -43,6 +42,10 @@ [ "--force-device-scale-factor=1.15" "--load-extension=${extensionDirs}" + ] + ++ lib.optionals config.web.chromium.useOpenGL [ + "--use-angle=opengl" + "--use-cmd-decoder=passthrough" ]; }; diff --git a/users/arpit.nix b/users/arpit.nix index 5d41ace..f2a7d8b 100644 --- a/users/arpit.nix +++ b/users/arpit.nix @@ -33,6 +33,7 @@ development.delta.enable = true; development.git.enable = true; development.git.useSSH = true; + development.git.signing.signByDefault = true; development.lazygit.enable = true; development.nixvim.enable = true; development.opencode.enable = true; @@ -86,10 +87,9 @@ # Web web.aria2.enable = true; - web.chromium.enable = true; web.chawan.enable = true; - - development.git.signing.signByDefault = true; + web.chromium.enable = true; + web.chromium.useOpenGL = false; programs.home-manager.enable = true; } |
