diff --git a/base.nim b/base.nim index a00d7f8..cf2f435 100644 --- a/base.nim +++ b/base.nim @@ -88,8 +88,6 @@ proc getArguments*(): seq[string] = return args proc runDMenu*(data: Info, opts: varargs[string], rofi: bool = false): string = - switch_twm_mode() - # Build dmenu/rofi command var cmd = "echo -e \"" # if the text is empty, we don't want to create a menu item of it @@ -131,6 +129,13 @@ proc outputData*(data: Info, args: varargs[string]): string {.discardable.} = output = runDmenu(data,args) return output + + +# At Start up: + +# Switch bindsym mode back to default as it could be being used. +switchTwmMode() + for arg in getArguments(): case arg: of "noloop":