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:50 +01:00
parent 8a5f9961ee
commit b32187db91

View file

@ -65,10 +65,10 @@ proc debugLog*(str: string) =
defer: f.close() defer: f.close()
f.writeLine(str) 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) # 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 # Switch out of an i3 bindsym mode if set
discard execCmd("i3-msg mode \"default\"") discard execCmd("i3-msg mode \"" & mode & "\"")
proc parseInput*(): i3BarInput = proc parseInput*(): i3BarInput =
let input = readLineFromStdin("") let input = readLineFromStdin("")