added run switchTwmMode at startup rather than running it in numerous other places:wq

This commit is contained in:
Paul Wilde 2022-05-04 16:27:03 +01:00
parent 946f970f31
commit 8a5f9961ee

View file

@ -88,8 +88,6 @@ proc getArguments*(): seq[string] =
return args return args
proc runDMenu*(data: Info, opts: varargs[string], rofi: bool = false): string = proc runDMenu*(data: Info, opts: varargs[string], rofi: bool = false): string =
switch_twm_mode()
# Build dmenu/rofi command # Build dmenu/rofi command
var cmd = "echo -e \"" var cmd = "echo -e \""
# if the text is empty, we don't want to create a menu item of it # 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) output = runDmenu(data,args)
return output return output
# At Start up:
# Switch bindsym mode back to default as it could be being used.
switchTwmMode()
for arg in getArguments(): for arg in getArguments():
case arg: case arg:
of "noloop": of "noloop":