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