fix(desktop): make calc a tab-reachable mode again (task 0024)

rofi-calc shows its result in rofi's message widget, not a list entry,
so a tab-reachable calc mode renders it while a calc folded into
combi-modi does not (combi stays the active mode and drops the
sub-mode's message). List calc in modi and drop the dedicated key.
This commit is contained in:
2026-07-22 16:16:50 -04:00
parent af5922b681
commit 6149fd8fa6
2 changed files with 10 additions and 11 deletions

View File

@@ -42,22 +42,20 @@ in
package = rofiPkg;
# drun, run and window share one prompt through combi.
# emoji is the separate mode the same window tabs to.
# calc and emoji are separate modes the window tabs to.
# calc stays out of combi-modi because its result shows in rofi's
# message widget, which a merged combi list does not surface.
extraConfig = {
modi = "combi,emoji";
modi = "combi,calc,emoji";
combi-modi = "drun,run,window";
show-icons = true;
};
};
# 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.
# The launcher and the session menu, kept next to the tool they drive.
# $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}"
];
};