correct issue with passmenu/command wrapper
This commit is contained in:
parent
836cfab8d8
commit
5cd6f85b5d
1 changed files with 8 additions and 7 deletions
15
base.nim
15
base.nim
|
@ -96,6 +96,7 @@ proc newRofiConfig(): Menu =
|
||||||
|
|
||||||
proc newDmenuConfig(cmd: string = "dmenu"): Menu =
|
proc newDmenuConfig(cmd: string = "dmenu"): Menu =
|
||||||
var menu = newMenuConfig("dmenu")
|
var menu = newMenuConfig("dmenu")
|
||||||
|
menu.command = cmd
|
||||||
menu.bottom = "-b"
|
menu.bottom = "-b"
|
||||||
menu.grabkb = "-f"
|
menu.grabkb = "-f"
|
||||||
menu.monitor = "-m"
|
menu.monitor = "-m"
|
||||||
|
@ -107,14 +108,14 @@ proc newDmenuConfig(cmd: string = "dmenu"): Menu =
|
||||||
return menu
|
return menu
|
||||||
|
|
||||||
proc newMenu(): Menu =
|
proc newMenu(): Menu =
|
||||||
if rofi:
|
if passmenu:
|
||||||
return newRofiConfig()
|
return newDmenuConfig("passmenu")
|
||||||
if dmenu:
|
|
||||||
return newDmenuConfig()
|
|
||||||
elif passmenu:
|
|
||||||
return newMenuConfig("passmenu")
|
|
||||||
elif command_wrapper:
|
elif command_wrapper:
|
||||||
return newMenuConfig(run_command)
|
return newDmenuConfig(run_command)
|
||||||
|
elif rofi:
|
||||||
|
return newRofiConfig()
|
||||||
|
elif dmenu:
|
||||||
|
return newDmenuConfig()
|
||||||
return newMenuConfig()
|
return newMenuConfig()
|
||||||
|
|
||||||
proc debugLog*(str: string) =
|
proc debugLog*(str: string) =
|
||||||
|
|
Loading…
Reference in a new issue