Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@ tmux-ws list
tmux-ws kill project
```

## tmux Status Plugins

Two lightweight status bar plugins are included in `bin/`:

- **tmux-load** — displays system load average
- **tmux-mem** — displays memory usage (used/total)

Add them to your `~/.tmux.conf` status line:

```
set -g status-right "#(tmux-load) #(tmux-mem) %H:%M"
```

After install, both commands are available in your PATH.

## Config

Workspace configs live in `~/.config/tmux-ws/`. Each workspace is a directory with a `workspace.conf` file and optional `hooks/` directory.
Expand Down
2 changes: 2 additions & 0 deletions bin/tmux-load
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
echo -n "load $(cut -d' ' -f1-3 /proc/loadavg)"
2 changes: 2 additions & 0 deletions bin/tmux-mem
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
echo -n "mem $(free -h | sed -n 's/^Mem:[[:space:]]*\([0-9.]*[A-Za-z]*\)[[:space:]]*\([0-9.]*[A-Za-z]*\).*/\2\/\1/p')"
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ if [[ -f "$HOME/.zshrc" ]]; then
fi
fi

# Make script executable
# Make scripts executable
chmod +x "$BIN_DIR/tmux-ws"
chmod +x "$BIN_DIR/tmux-load"
chmod +x "$BIN_DIR/tmux-mem"

echo ""
info "Installed! Reload your shell:"
Expand Down
Loading