0.1.1 • Published 6 years ago
tmux-status-daemon v0.1.1
Tmux Status Daemon
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:
Contributing
- Fork it (https://github.com/SuperPaintman/express-lazy-middleware/fork)
- Create your feature branch (
git checkout -b feature/<feature_name>
) - Commit your changes (
git commit -am '<type>(<scope>): added some feature'
) - Push to the branch (
git push origin feature/<feature_name>
) - Create a new Pull Request
Contributors
- SuperPaintman SuperPaintman - creator, maintainer
<!--
Changelog
Changelog -->