From 6910400bb38bb69a9e81b932b01fa51802cb0c47 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 26 Jul 2026 23:28:11 +0530 Subject: feat: replace w3m with chawan for HTML rendering and web browsing - Create web.chawan module with enable/package options, kitty desktop entry, and programs.chawan.settings (buffer.images=true, display.image-mode=auto) - Update neomutt macros, mailcap, and assertions from w3m to chawan - Switch waybar window-rewrite and workspace icon from W3M to Chawan - Drop web/w3m module --- modules/web/w3m/assertions.nix | 13 ------------- modules/web/w3m/default.nix | 37 ------------------------------------- 2 files changed, 50 deletions(-) delete mode 100644 modules/web/w3m/assertions.nix delete mode 100644 modules/web/w3m/default.nix (limited to 'modules/web/w3m') diff --git a/modules/web/w3m/assertions.nix b/modules/web/w3m/assertions.nix deleted file mode 100644 index b5ae2be..0000000 --- a/modules/web/w3m/assertions.nix +++ /dev/null @@ -1,13 +0,0 @@ -# Assertions - Validates kitty is enabled for w3m desktop entry -{ config, ... }: -{ - assertions = [ - { - assertion = !config.web.w3m.enable || config.terminal.kitty.enable; - message = '' - web.w3m is enabled but terminal.kitty.enable is not. - w3m's desktop entry requires kitty as the terminal launcher. Please enable terminal.kitty. - ''; - } - ]; -} diff --git a/modules/web/w3m/default.nix b/modules/web/w3m/default.nix deleted file mode 100644 index a4fdb1f..0000000 --- a/modules/web/w3m/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -# w3m - Text-based web browser and pager -{ - config, - lib, - ... -}: -{ - imports = [ - ./assertions.nix - ]; - - options.web.w3m = { - enable = lib.mkEnableOption "Enables w3m."; - package = lib.mkOption { - type = lib.types.package; - default = config.programs.w3m.finalPackage; - defaultText = lib.literalExpression "config.programs.w3m.finalPackage"; - description = "Package to use for w3m. Defaults to the wrapped finalPackage from programs.w3m."; - }; - }; - - config = lib.mkIf config.web.w3m.enable { - xdg.desktopEntries."w3m" = { - name = "w3m"; - exec = "${lib.getExe config.terminal.kitty.package} --class w3m -e ${lib.getExe' config.web.w3m.package "w3m"}"; - icon = "kitty"; - categories = [ "Network" ]; - comment = "Text-based web browser"; - terminal = false; - type = "Application"; - }; - programs.w3m.enable = true; - home.packages = [ - config.web.w3m.package - ]; - }; -} -- cgit v1.2.3