From 8a5f9961ee3b70fe470e30b43b61798710fc622a Mon Sep 17 00:00:00 2001 From: Paul Wilde <paul@paulwilde.uk> Date: Wed, 4 May 2022 16:27:03 +0100 Subject: [PATCH] added run switchTwmMode at startup rather than running it in numerous other places:wq --- base.nim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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":