wmtools/i3bar_tools/i3bar_tides_threads.nim

22 lines
380 B
Nim
Raw Normal View History

import i3bar_tides
import i3bar_base
import std/re
import std/threadpool
import std/osproc
proc await_click_info() =
while true:
let input = parseInput()
case input.button:
of 1:
let state = execCmd("xdg-open " & replace(url,re"\%LOC",loc))
else:
let no = false
proc main() =
spawn getTides()
spawn await_click_info()
sync()
main()