21 lines
380 B
Nim
21 lines
380 B
Nim
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()
|