• Stars
    star
    169
  • Rank 224,453 (Top 5 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 10 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tmux plugin that displays online status of your computer.

Tmux online status

Tmux plugin that enables displaying online status for your workstation.

Introduces a new #{online_status} format.

This plugin is useful if:

  • you spend most of your time in Tmux and don't want to "switch" away from the terminal to check whether you're connected.
  • you have a flaky internet connection and you don't want to be surprised when a simple curl or wget fails because the connection just broke.

Tested and working on Linux, OSX, FreeBSD, and Cygwin.

Usage

Add #{online_status} format string to your existing status-right tmux option.

Here's the example in .tmux.conf:

set -g status-right "Online: #{online_status} | %a %h-%d %H:%M "

OS X
On OS X the above will look like this when online
online indicator
or this when offline
offline indicator

Linux
Online status on Linux
online indicator
offline status
offline indicator

Configure icons

If the icons don't display well on your machine you can change them in .tmux.conf:

set -g @online_icon "ok"
set -g @offline_icon "offline!"

Installation with Tmux Plugin Manager (recommended)

Add plugin to the list of TPM plugins in .tmux.conf:

set -g @plugin 'tmux-plugins/tmux-online-status'

Hit prefix + I to fetch the plugin and source it.

#{online_status} interpolation should now work.

Manual Installation

Clone the repo:

$ git clone https://github.com/tmux-plugins/tmux-online-status ~/clone/path

Add this line to the bottom of .tmux.conf:

run-shell ~/clone/path/online_status.tmux

Reload TMUX environment:

# type this in terminal
$ tmux source-file ~/.tmux.conf

#{online_status} interpolation should now work.

Limitations

Online status icon most likely won't be instant. The duration depends on the status-interval Tmux option. So, it might take anywhere between 5 and 60 seconds for online status icon to change.

Set status-interval to a low number to make this faster, example:

# in .tmux.conf
set -g status-interval 5

Other plugins

You might also find these useful:

  • battery - battery status in Tmux status-right
  • logging - easy logging and screen capturing

License

MIT

More Repositories

1

tpm

Tmux Plugin Manager
Shell
12,082
star
2

tmux-resurrect

Persists tmux environment across system restarts.
Shell
11,249
star
3

tmux-continuum

Continuous saving of tmux environment. Automatic restore when tmux is started. Automatic tmux start when computer is turned on.
Shell
3,263
star
4

tmux-yank

Tmux plugin for copying to system clipboard. Works on OSX, Linux and Cygwin.
Shell
2,682
star
5

tmux-sensible

basic tmux settings everyone can agree on
Shell
1,756
star
6

list

A list of tmux plugins.
1,201
star
7

tmux-copycat

A plugin that enhances tmux search
Shell
1,103
star
8

tmux-logging

Easy logging and screen capturing for Tmux.
Shell
1,034
star
9

tmux-pain-control

standard pane key-bindings for tmux
Shell
755
star
10

tmux-open

Tmux key bindings for quick opening of a highlighted file or url
Shell
631
star
11

tmux-prefix-highlight

Plugin that highlights when you press tmux prefix key
Shell
571
star
12

tmux-sidebar

A sidebar with the directory tree for the current path. Tries to make tmux more IDE like.
Shell
536
star
13

tmux-battery

Plug and play battery percentage and icon indicator for Tmux.
Shell
499
star
14

tmux-cpu

Plug and play cpu percentage and icon indicator for Tmux.
Shell
433
star
15

tmux-sessionist

Lightweight tmux utils for manipulating sessions
Shell
412
star
16

vim-tmux-focus-events

Make terminal vim and tmux work better together.
Vim Script
348
star
17

vim-tmux

vim plugin for tmux.conf
Vim Script
333
star
18

tmux-fpp

Quickly open any path on your terminal window in your $EDITOR of choice!
Shell
308
star
19

tmux-urlview

Quickly open any url on your terminal window!
Shell
266
star
20

tmux-example-plugin

Example Tmux plugin that actually demonstrates how to build plugins for Tmux. The accompanying tutorial is here: https://github.com/tmux-plugins/tpm/blob/master/HOW_TO_PLUGIN.md
Shell
45
star
21

tmux-cowboy

Kill hanging processes fast
Shell
37
star
22

tmux-maildir-counter

Plugin that counts files on a specific mail directory
Shell
32
star
23

tmux-test

A small framework for isolated testing of tmux plugins.
Shell
16
star
24

language-tmux

Atom language support for Tmux config file
CoffeeScript
10
star
25

tmux-newsboat

Display newsboat counters in tmux status line.
Shell
10
star