You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
Tmux plugin to notify you when processes are complete.
10
10
11
-
> [!NOTE]\
11
+
> \[!NOTE]\
12
12
> Notifications are sent via [libnotify](https://gitlab.gnome.org/GNOME/libnotify), and visual bells are raised in the Tmux window. Visual bells can be mapped (in the terminal level) to the X11 urgency bit and handled by your window manager.
13
13
14
14
## Table of Contents <!-- omit in toc -->
@@ -22,6 +22,7 @@ Tmux plugin to notify you when processes are complete.
> Works on Linux and macOS (note: only actively tested on Linux).
46
47
47
48
## Install
@@ -62,6 +63,9 @@ Use `prefix + I` to install.
62
63
63
64
*`prefix + M`: Cancel monitoring of a pane.
64
65
66
+
> \[!IMPORTANT]\
67
+
> There is a known issue with alt-based Tmux shortcuts on osx. If you encounter problems, please check [this post](https://superuser.com/questions/649960/option-key-does-not-work-as-meta-in-tmux) for a workaround.
68
+
65
69
## Configuration
66
70
67
71
### Enable verbose notification
@@ -89,7 +93,7 @@ By default, the monitor sleep period is set to 10 seconds. This means that tmux-
89
93
90
94
> Put `set -g @tnotify-sleep-duration 'desired duration'` in the `.tmux.conf` file to change this duration.
91
95
92
-
> [!WARNING]\
96
+
> \[!WARNING]\
93
97
> Remember that there is a trade-off between notification speed (short sleep duration) and the amount of memory this tool needs.
94
98
95
99
### Add additional shell suffixes
@@ -98,12 +102,12 @@ The Tmux notify script uses your shell prompt suffix to check whether a command
98
102
99
103
> Put `set -g @tnotify-prompt-suffixes 'put your comma-separated bash suffix list here'` in the `.tmux.conf` file to add additional suffixes.
100
104
101
-
> [!NOTE]\
105
+
> \[!NOTE]\
102
106
> Feel free to open [a pull](https://github.com/rickstaa/tmux-notify/pulls) request or [issue](https://github.com/rickstaa/tmux-notify/issues) if you think your shell prompt suffix should be included by default.
103
107
104
108
### Enable telegram channel notifications
105
109
106
-
> [!WARNING]\
110
+
> \[!WARNING]\
107
111
> This feature requires [wget](https://www.gnu.org/software/wget/) to be installed on your system.
108
112
109
113
By default, the tool only sent operating system notifications. It can, however, also send a message to a user-specified telegram channel.
@@ -118,17 +122,17 @@ After enabling this option, the following key bindings are available:
118
122
119
123
Additionally, you can use the `set -g @tnotify-telegram-all 'on'` option to send all notifications to telegram.
120
124
121
-
> [!NOTE]\
125
+
> \[!NOTE]\
122
126
> You can get your telegram bot id by creating a bot using [BotFather](https://core.telegram.org/bots#6-botfather) and your channel id by sending your channel invite link to the `@username_to_id_bot` bot.
123
127
124
128
### Execute custom notification commands
125
129
126
130
You can execute a custom command after a process has finished by putting `set -g @tnotify-custom-cmd 'your custom command here'` in the `.tmux.conf` file. The custom command is executed in the pane where the process has finished. If you want to execute multiple commands, you can also put them in a bash script and execute this script (i.e. `set -g @tnotify-custom-cmd 'bash /path/to/script.sh'`).
127
131
128
-
> [!WARNING]\
132
+
> \[!WARNING]\
129
133
> The custom command is executed using the `eval` command, so [be careful with what you put in here](https://stackoverflow.com/a/17529221/8135687).
130
134
131
-
> [!NOTE]\
135
+
> \[!NOTE]\
132
136
> Please consider contributing to [this repository](https://github.com/rickstaa/tmux-notify) if your custom command is useful for others.
0 commit comments