No description
Find a file
2023-02-15 22:23:40 +01:00
scripts Formatting 2022-06-19 18:40:33 +02:00
.gitignore working monitor-session-activity.sh, tmux plugin script untested 2021-05-20 09:12:39 +02:00
aw-watcher-tmux.tmux tmux plugin file executable 2021-05-21 13:37:04 +02:00
LICENSE.md Create LICENSE.md 2022-06-23 15:48:19 +02:00
README.md Adding documentation on bash version and Mac OS 2023-02-15 22:23:40 +01:00

aw-watcher-tmux - An activity watcher for tmux

A tmux plugin that allows monitoring activity in sessions and panes with ActivityWatch.

Watches for activity in multiple tmux sessions and reports session_name, window_name, pane_title, pane_current_command, and pane_current_path.

The plugin has been tested on Linux and is expected to work also on macOS and on Windows in Cygwin.

How to install

Requirements

macOS / Mac OSX

MacOS versions might still being shipped with bash versions < 4.0. In this case you will need to upgrade bash. In #2#issuecomment-1331496394 you can find instructions on how to upgrade bash via brew.

Preparation

  1. Install ActivityWatch as described in the getting-started guide.
  2. Install the Tmux Plugin Manager (tpm)

Install the aw-watcher-tmux plugin

  1. Add below line to your ~/.tmux.conf
set -g @plugin 'akohlbecker/aw-watcher-tmux'
  1. Press prefix + I (capital i, as in Install) to fetch the plugin and reload the tmux environment. More detailed instructions are found in the tpm README.

Usage

Once the aw-watcher-tmux plugin is installed it monitors for user activity in all tmux sessions. Any activity is reported to the ActivityWatch REST API at http://localhost:5600/api/.

aw-watcher-tmux creates a new bucket. The existence of this bucket can be checked with http://localhost:5600/api/0/buckets/aw-watcher-tmux.

All activity recorded in this bucket can be seen on http://localhost:5600/#/timeline