From 276671e2d5fc00ff61c82701cbb2d8fbff7ae2f1 Mon Sep 17 00:00:00 2001 From: kitty piapiac Date: Sat, 8 Aug 2020 17:11:11 -0700 Subject: =?UTF-8?q?(.=E3=81=A5=E2=97=A1=EF=B9=8F=E2=97=A1)=E3=81=A5=20repl?= =?UTF-8?q?ace=20README.md=20with=20README.adoc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit testing asciidoc instead of markdown --- README.adoc | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 38 ----------------------------------- src/windowmanager.nim | 2 +- 3 files changed, 56 insertions(+), 39 deletions(-) create mode 100644 README.adoc delete mode 100644 README.md diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..f5f7067 --- /dev/null +++ b/README.adoc @@ -0,0 +1,55 @@ += (/・・)ノ kauw window manager +fox-cat + +:hardbreaks: +:1: https://nim-lang.org +:2: link:src/config.def.nim +:3: https://wiki.archlinux.org/index.php/Xephyr +:4: link:TODO + +kauw is an expiremental tiling window manager built for x11 using nim +currently it is very minimal, but more features are planned/ hoped for + +.goals (・・;) +**** +i have a few goals in mind while working on this project +* be written and configured entirely in {1}[nim] +* be easily configurable +* be easily hackable +* be fairly small and minimalist +* help myself learn and get around x11 +**** + +.(。ヘ°) configuration +**** +the default configuration file is {2}[`config.def.nim`] +duplicate it and rename it to `config.nim`, and you can configure it from there +**** + +.development ⊂(・ヮ・⊂) +**** +clone using +[source, bash] +---- +$ git clone https://github.com/fox-cat/kauw +$ cd kauw +---- +you can build using +[source, bash] +---- +$ nimble build +---- +and you can test using {3}[Xephyr] +[source, bash] +---- +$ Xephyr -ac -screen 1980x1080 -br -reset -terminate 2> /dev/null :2 & +$ DISPLAY=:1 ./kauw +---- +**** + +.(.づ◡﹏◡)づ. todo +**** +see {4}[TODO] +**** + +image::img/kauw.png[kauw] \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 9ac352e..0000000 --- a/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# (/・・)ノ kauw window manager -kauw is an expiremental tiling window manager built for x11 using nim - -currently it is but a skeleton of what's to come - -## goals (・・;) -i have a few goals in mind while writing this project -- written and configured fully in [nim] -- easily configurable -- easily hackable -- be small and fairly minimalist -- help myself learn nim and get around x11 - -## config -the default config is [src/config.def.nim]; you can duplicate it (and be sure to rename it to config.nim) and make changes to your liking - -## development -clone using -``` -$ git clone https://github.com/fox-cat/kauw -$ cd kauw -``` -build using -``` -$ nimble build -``` -and you can test using [xephyr] -``` -$ Xephyr -ac -screen 1980x1080 -br -reset -terminate 2> /dev/null :2 & -$ DISPLAY=:1 ./kauw -``` - -## TODO -see [TODO] - -[nim]: https://nim-lang.org/ -[xephyr]: https://wiki.archlinux.org/index.php/Xephyr -[TODO]: TODO \ No newline at end of file diff --git a/src/windowmanager.nim b/src/windowmanager.nim index 1bda674..de4640c 100644 --- a/src/windowmanager.nim +++ b/src/windowmanager.nim @@ -234,7 +234,7 @@ proc tileWindows (wm: WindowManager) = c = if wm.focused == i: focused else: unfocused discard wm.display.XSetWindowBorder(wm.clients[i], c) - + # Events proc onCreateNotify (wm: WindowManager, e: PXCreateWindowEvent) = return proc onDestroyNotify (wm: WindowManager, e: PXDestroyWindowEvent) = return -- cgit v1.2.3