added run switchTwmMode at startup rather than running it in numerous other places:wq
This commit is contained in:
parent
946f970f31
commit
8a5f9961ee
1 changed files with 7 additions and 2 deletions
9
base.nim
9
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":
|
||||
|
|
Loading…
Reference in a new issue