File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Tmux online status
2
2
3
- Tmux plugin that displays online status of your workstation.
3
+ Tmux plugin that enables displaying online status for your workstation.
4
+
5
+ Introduces a new ` #{online_status} ` format.
6
+
7
+ ### Usage
8
+
9
+ Add ` #{online_status} ` format string to your existing ` status-right ` tmux
10
+ option.
11
+
12
+ Here's the example:
13
+
14
+ # in .tmux.conf
15
+ set -g status-right "Online: #{online_status} | %a %h-%d %H:%M "
16
+
17
+ The above will result in this:<br />
18
+ ![ online indicator] ( /screenshots/online_indicator.png ) <br />
19
+ or this<br />
20
+ ![ offline indicator] ( /screenshots/offline_indicator.png ) <br />
21
+
22
+ The icon will of course change as you connect/disconnect from the internet.
4
23
5
24
### Installation with [ Tmux Plugin Manager] ( https://github.com/bruno-/tpm ) (recommended)
6
25
@@ -13,6 +32,8 @@ Add plugin to the list of TPM plugins in `.tmux.conf`:
13
32
14
33
Hit ` prefix + I ` to fetch the plugin and source it.
15
34
35
+ ` #{online_status} ` interpolation should now work.
36
+
16
37
### Manual Installation
17
38
18
39
Clone the repo:
@@ -28,12 +49,19 @@ Reload TMUX environment:
28
49
# type this in terminal
29
50
$ tmux source-file ~/.tmux.conf
30
51
52
+ ` #{online_status} ` interpolation should now work.
53
+
31
54
### Limitations
32
55
33
56
Online status icon most likely won't be instant. The duration depends on the
34
57
` status-interval ` Tmux option. So, it might take anywhere between 5 and 60
35
58
seconds for online status icon to change.
36
59
60
+ Set ` status-interval ` to a low number to make this faster, example:
61
+
62
+ # in .tmux.conf
63
+ set -g status-interval 5
64
+
37
65
### License
38
66
39
67
[ MIT] ( LICENSE.md )
You can’t perform that action at this time.
0 commit comments