From 3f36183021f0a0612274112351284f2ee41260a8 Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Sun, 14 Jun 2026 12:11:20 +0100 Subject: [PATCH] feat(menu): Google web search; note calc rework in the roadmap The web module now opens google.com/search instead of DuckDuckGo. Also log a roadmap item to rework calc: qalc -t misparses common phrasings (15% of 200 -> rem(15, 1 B)) and the result only shows in the next menu's -mesg line -- move toward live results as you type. Co-Authored-By: Claude Opus 4.8 --- README.md | 11 ++++++++++- modules/home/rofi.nix | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4c50913..dbe84a3 100644 --- a/README.md +++ b/README.md @@ -272,7 +272,7 @@ close · `SUPER+1..9` workspaces · `Print` region screenshot. `nomarchy-menu` dispatcher: root picker (no args) · `power` (lock/logout/suspend/hibernate/reboot/shutdown, SUPER+X) · `theme` (SUPER+T) · `clipboard` (cliphist, SUPER+CTRL+V) · `calc` - (qalc, copy/chain) · `files` (fd → xdg-open) · `web` (DuckDuckGo). + (qalc, copy/chain) · `files` (fd → xdg-open) · `web` (Google). SUPER+D is `rofi -show drun`. - ✓ shipped modules: `network` (nmtui in `$TERMINAL`) · `bluetooth` (blueman-manager) · `capture` (grim/slurp submenu: region/full → @@ -294,6 +294,15 @@ close · `SUPER+1..9` workspaces · `Print` region screenshot. launcher, no second theming pipeline; the dispatcher owns the menu structure, so the renderer stays swappable (we moved fuzzel → rofi 2.0 once mainline gained native Wayland, for its richer theming) +- **Calculator module rework:** the current `calc` flow + (`modules/home/rofi.nix`) is unsatisfying — you commit the expression + blind, then the result only appears in the *next* menu's `-mesg` line, + and `qalc -t` misparses common phrasings (e.g. `15% of 200` → + `rem(15, 1 B)` instead of `30`). Rework toward live results as you type + (rofi-calc-style: each keystroke re-evaluates and the answer is the top + entry, Enter copies), a more robust qalc invocation, and graceful + handling of parse errors. Decide whether to keep the hand-rolled dmenu + loop or adopt a dedicated calc mode/plugin. - **Theme parity with legacy:** summer-day/night now carry their legacy bar layouts as `waybar.jsonc` whole-swaps (adapted: dead legacy script modules dropped, Nerd-Fonts-v2 codepoints remapped to FontAwesome/v3, diff --git a/modules/home/rofi.nix b/modules/home/rofi.nix index 826ee63..e3a222a 100644 --- a/modules/home/rofi.nix +++ b/modules/home/rofi.nix @@ -106,7 +106,7 @@ let web) q=$(rofi -dmenu -p search < /dev/null) || exit 0 [ -n "$q" ] || exit 0 - exec xdg-open "https://duckduckgo.com/?q=$(urlencode "$q")" ;; + exec xdg-open "https://www.google.com/search?q=$(urlencode "$q")" ;; network) # nmtui in a terminal (NetworkManager is the system network stack).