diff options
author | kitty piapiac <kcp@bsd.computer> | 2020-07-29 05:24:02 -0700 |
---|---|---|
committer | kitty piapiac <kcp@bsd.computer> | 2020-07-29 05:24:02 -0700 |
commit | e0e6b6e04d8fcb6014028c70a52ff08ce8206d2f (patch) | |
tree | 609a22a8e6b201fbe2d2d9cbec7ddc53f04ecc00 /src/kauw.nim | |
parent | ed17aeb7079b329ec3c7e66792484660bcf6b3ef (diff) |
(・ω・)b key handlers
Diffstat (limited to 'src/kauw.nim')
-rw-r--r-- | src/kauw.nim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/kauw.nim b/src/kauw.nim index c1b0d4c..feda7fb 100644 --- a/src/kauw.nim +++ b/src/kauw.nim @@ -1,14 +1,22 @@ import + os, /windowmanager, logging, /logger +const version = "0.0.1" + proc main() = + if paramCount() > 0: + if paramStr(1) == "-v": + echo "kauw version " & version + quit QuitSuccess + let wm = createWindowManager() if wm == nil: consoleLog.log(lvlError, "failed to initialize window manager") quit QuitFailure - + wm.run() quit QuitSuccess |