A nano-sized not-really-a session manager intended to replace less-than-robust Bash/etc incantations in .xinitrc.
Go to file
Lily Tsuru 67a38d45e5 cmake install stuff! 2024-02-02 06:39:42 -05:00
cmake implement a process which can restart itself 2024-02-02 05:34:37 -05:00
doc Begin implementing nanosm main logic 2024-02-02 05:50:08 -05:00
src implement toml configutation + logging 2024-02-02 06:30:52 -05:00
third_party add tomlpp 2024-02-01 23:20:42 -05:00
.clang-format Actually implement event loop & process stuff 2024-02-01 22:54:06 -05:00
.editorconfig init 2024-02-01 04:06:07 -05:00
.gitignore init 2024-02-01 04:06:07 -05:00
.gitmodules add tomlpp 2024-02-01 23:20:42 -05:00
CMakeLists.txt cmake install stuff! 2024-02-02 06:39:42 -05:00
LICENSE init 2024-02-01 04:06:07 -05:00
README.md Begin implementing nanosm main logic 2024-02-02 05:50:08 -05:00

README.md

nanosm

A nano-sized not-really-a session manager intended to replace less-than-robust Bash/etc scripts.

Written in C++20, using epoll (without helper libraries), to stay nice and smol (Yes I know io_uring exists, but using it for something tiny that literally just waits and restarts processes would be far more overkill).

Why write this?

Because app & then exec wm is impressively awful. What if your WM crashes, or your panel? Guess you lose them!

And if your WM crashes? Your whole xorg server goes with it, meaning so does everything else.

A more robust solution that's still small and easy to setup (read: Not written in bash) is clearly a better idea.

Installation

$ cmake -Wno-dev -GNinja -Bbuild -DCMAKE_INSTALL_PREFIX=/usr
$ ninja -C build
# ninja -C build install

Configuration

  • Copy /usr/share/doc/nanosm/nanosm.toml to ~/.config/nanosm/ and edit it to your liking.
  • Add exec nanosm to the end of your .xinitrc.