diff --git a/base.nim b/base.nim index cf2f435..f78c4eb 100644 --- a/base.nim +++ b/base.nim @@ -65,10 +65,10 @@ proc debugLog*(str: string) = defer: f.close() f.writeLine(str) -proc switchTwmMode*() = +proc switchTwmMode*(mode: string = "default") = # I intend to add support for more twm as time goes on (I switch around a lot) # Switch out of an i3 bindsym mode if set - discard execCmd("i3-msg mode \"default\"") + discard execCmd("i3-msg mode \"" & mode & "\"") proc parseInput*(): i3BarInput = let input = readLineFromStdin("")