Skip to content

Commit f379f95

Browse files
authored
Merge pull request #43 from rickstaa/main
docs: add OSX alt shortcut problem comment (#8)
2 parents a8f6084 + 4dca748 commit f379f95

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Tmux plugin to notify you when processes are complete.
1010

11-
> [!NOTE]\
11+
> \[!NOTE]\
1212
> 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.
1313
1414
## Table of Contents <!-- omit in toc -->
@@ -22,6 +22,7 @@ Tmux plugin to notify you when processes are complete.
2222
* [Change monitor update period](#change-monitor-update-period)
2323
* [Add additional shell suffixes](#add-additional-shell-suffixes)
2424
* [Enable telegram channel notifications](#enable-telegram-channel-notifications)
25+
* [Execute custom notification commands](#execute-custom-notification-commands)
2526
* [How does it work](#how-does-it-work)
2627
* [Other use cases](#other-use-cases)
2728
* [Use inside a docker container](#use-inside-a-docker-container)
@@ -41,7 +42,7 @@ Tmux plugin to notify you when processes are complete.
4142
* `notify-send` or `osascript`.
4243
* **Optional**: `wget` (for telegram notifications).
4344

44-
> [!NOTE]\
45+
> \[!NOTE]\
4546
> Works on Linux and macOS (note: only actively tested on Linux).
4647
4748
## Install
@@ -62,6 +63,9 @@ Use `prefix + I` to install.
6263

6364
* `prefix + M`: Cancel monitoring of a pane.
6465

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+
6569
## Configuration
6670

6771
### Enable verbose notification
@@ -89,7 +93,7 @@ By default, the monitor sleep period is set to 10 seconds. This means that tmux-
8993

9094
> Put `set -g @tnotify-sleep-duration 'desired duration'` in the `.tmux.conf` file to change this duration.
9195
92-
> [!WARNING]\
96+
> \[!WARNING]\
9397
> Remember that there is a trade-off between notification speed (short sleep duration) and the amount of memory this tool needs.
9498
9599
### Add additional shell suffixes
@@ -98,12 +102,12 @@ The Tmux notify script uses your shell prompt suffix to check whether a command
98102

99103
> Put `set -g @tnotify-prompt-suffixes 'put your comma-separated bash suffix list here'` in the `.tmux.conf` file to add additional suffixes.
100104
101-
> [!NOTE]\
105+
> \[!NOTE]\
102106
> 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.
103107
104108
### Enable telegram channel notifications
105109

106-
> [!WARNING]\
110+
> \[!WARNING]\
107111
> This feature requires [wget](https://www.gnu.org/software/wget/) to be installed on your system.
108112
109113
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:
118122

119123
Additionally, you can use the `set -g @tnotify-telegram-all 'on'` option to send all notifications to telegram.
120124

121-
> [!NOTE]\
125+
> \[!NOTE]\
122126
> 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.
123127
124128
### Execute custom notification commands
125129

126130
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'`).
127131

128-
> [!WARNING]\
132+
> \[!WARNING]\
129133
> The custom command is executed using the `eval` command, so [be careful with what you put in here](https://stackoverflow.com/a/17529221/8135687).
130134
131-
> [!NOTE]\
135+
> \[!NOTE]\
132136
> Please consider contributing to [this repository](https://github.com/rickstaa/tmux-notify) if your custom command is useful for others.
133137
134138
## How does it work

0 commit comments

Comments
 (0)