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