From 5cd6f85b5d786e2262b6edfc2d77ff93dcffb830 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Tue, 5 Jul 2022 13:50:25 +0100 Subject: [PATCH] correct issue with passmenu/command wrapper --- base.nim | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/base.nim b/base.nim index 451f992..796f26b 100644 --- a/base.nim +++ b/base.nim @@ -96,6 +96,7 @@ proc newRofiConfig(): Menu = proc newDmenuConfig(cmd: string = "dmenu"): Menu = var menu = newMenuConfig("dmenu") + menu.command = cmd menu.bottom = "-b" menu.grabkb = "-f" menu.monitor = "-m" @@ -107,14 +108,14 @@ proc newDmenuConfig(cmd: string = "dmenu"): Menu = return menu proc newMenu(): Menu = - if rofi: - return newRofiConfig() - if dmenu: - return newDmenuConfig() - elif passmenu: - return newMenuConfig("passmenu") + if passmenu: + return newDmenuConfig("passmenu") elif command_wrapper: - return newMenuConfig(run_command) + return newDmenuConfig(run_command) + elif rofi: + return newRofiConfig() + elif dmenu: + return newDmenuConfig() return newMenuConfig() proc debugLog*(str: string) =