0.1.1 • Published 6 years ago

tmux-status-daemon v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Tmux Status Daemon

Commitizen friendly NPM version NPM Downloads


Installation

$ npm install -g tmux-status-daemon

Usage

You will have a tool after installation:

$ tmuxstatusd

This daemon listens to the /tmp/tmux-status.sock Unix socket.

You can check this (via the netcat for example):

# <position> <whoami>
$ echo "right" "$(whoami)" | nc -U /tmp/tmux-status.sock

And you will see:

Now you need to daemonize it as a service (on an init-based unix or Linux system):

$ cp /usr/lib/node_modules/tmux-status-daemon/extra/init.d/tmuxstatusd /etc/init.d/tmuxstatusd
$ chmod +x /etc/init.d/tmuxstatusd
$ systemctl daemon-reload
$ systemctl enable tmuxstatusd
$ systemctl start tmuxstatusd

Add the following line into your ~/.tmux.conf:

set -g status-right '#(echo "right" "$(whoami)" | nc -U /tmp/tmux-status.sock)'

And then you will see this:

Screenshot


Contributing

  1. Fork it (https://github.com/SuperPaintman/express-lazy-middleware/fork)
  2. Create your feature branch (git checkout -b feature/<feature_name>)
  3. Commit your changes (git commit -am '<type>(<scope>): added some feature')
  4. Push to the branch (git push origin feature/<feature_name>)
  5. Create a new Pull Request

Contributors

<!--

Changelog

Changelog -->


License

MIT

0.1.1

6 years ago

0.1.0

6 years ago