wmtools/i3bar_tools_threaded/i3bar_date_threads.nim

19 lines
277 B
Nim
Raw Normal View History

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()