wmtools/i3bar_tools_threaded/i3bar_date_threads.nim
2022-04-29 09:15:19 +01:00

18 lines
277 B
Nim

import std/threadpool
import i3bar_date
import i3bar_base
proc await_click_info() =
while true:
let input = parseInput()
if input.button == 1:
openCalendar(input)
proc main() =
spawn getDate()
spawn await_click_info()
sync()
if isMainModule:
main()