Repository navigation
Getting Started
Follow these steps to build, install, and run ananta for the first time.
curl -fsSL https://raw.githubusercontent.com/dip-bash/ananta/main/install.sh | bash
ananta --initYou need Go 1.22 or newer.
git clone https://github.com/<you>/ananta
cd ananta
go mod tidy
make buildThis produces a file called ananta in the current folder.
Run:
./ananta --initThis writes two files to ~/.config/ananta/:
-
config.toml— your settings and key bindings -
wallpaper.toml— the program that draws behind your panes
You do not need to edit anything yet. The built-in defaults work great.
./anantaThis opens session "main". The first time, it starts a background server and attaches to it. You will see an empty workspace.
The default leader key is alt. All shortcuts are written as leader+<key>, so leader+enter means alt+enter.
Try these right away:
| Press | What happens |
|---|---|
alt+enter |
Open a new pane (a new column) |
alt+s |
Stack a new pane below the focused one |
alt+h / alt+l / alt+j / alt+k
|
Focus left / right / down / up |
alt+1 … alt+9
|
Switch to workspace 1 … 9 |
alt+o |
Open the overview (see all workspaces at once) |
alt+a |
Enter copy mode (vim-style selection) |
alt+d |
Detach — the session keeps running |
alt+Q |
Quit the session for good |
Open a pane and run a command that keeps printing, so you can see scrollback in action:
-
alt+enter— open a new pane - Type
yesand press Enter — the pane fills withylines -
shift+pageup— scroll back through the history - Type anything — you jump back to the live screen
-
alt+d— detach - Close your terminal
- Reopen a terminal and run
./ananta— youryesprocess is still running
Detaching is the superpower of ananta. Your programs keep running on the server even when no terminal is attached.
# From inside ananta:
alt+d # detach; close your terminal if you want
# Later, from any terminal:
./ananta # attach to "main"
./ananta -s work # attach to session "work"
./ananta ls # list all live sessions
./ananta kill work # end a session and everything in it
You can drive a running session from any shell or script. The program always goes in double quotes, as one argument:
ananta open "htop" -n 3 -w 0.33 # htop in workspace 3, one third width
ananta open "tail -f /var/log/syslog" --below
ananta open "make watch" -k # keep focus where it is
ananta workspace 3 # switch view
ananta focus left # move focus
ananta width 50% # resize focused column
ananta send -e "make test" # type into a pane, press Enter after
ananta close # close the focused pane
ananta list # list panes
ananta action overview # run any action by nameNow that you are up and running, dig deeper:
- Key Bindings — the full shortcut cheat sheet
- Sessions — how the background server works
- Workspaces and Layout — columns, stacks, overview
-
Configuration — every option in
config.toml
Tip: Press alt+/ inside ananta to open a scrollable help overlay that shows your current key bindings.