fix(desktop): give calc its own key instead of combi (task 0024)

rofi-calc's live result only shows with the global -no-show-match flag,
which inside combi would unfilter the drun/run/window app search. Move
math evaluation to its own Super+C invocation carrying that flag, and
return combi to drun,run,window with emoji as the tab-away mode.
This commit is contained in:
2026-07-22 16:10:10 -04:00
parent 05044de33e
commit af5922b681
2 changed files with 11 additions and 5 deletions

View File

@@ -41,19 +41,23 @@ in
enable = true;
package = rofiPkg;
# drun, run, window and calc share one prompt through combi.
# drun, run and window share one prompt through combi.
# emoji is the separate mode the same window tabs to.
extraConfig = {
modi = "combi,emoji";
combi-modi = "drun,run,window,calc";
combi-modi = "drun,run,window";
show-icons = true;
};
};
# The launcher and the session menu, kept next to the tool they drive.
# The launcher, a calculator and the session menu, each next to its tool.
# calc runs on its own key, not in combi.
# Its live result needs rofi's global -no-show-match flag, which would
# unfilter the combi prompt's own app search.
# $mod is defined by the compositor config these binds share.
wayland.windowManager.hyprland.settings.bind = [
"$mod, R, exec, ${rofiPkg}/bin/rofi -show combi"
"$mod, C, exec, ${rofiPkg}/bin/rofi -show calc -modi calc -no-show-match -no-sort"
"$mod SHIFT, X, exec, ${powerMenu}"
];
};