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
feat: add the ability to send notification through Pushover (#57)
This commit adds the ability for people to send notifications through [pushover](https://pushover.net/).
---------
Co-authored-by: Mathieu Tanguay <[email protected]>
@@ -110,7 +111,7 @@ The Tmux notify script uses your shell prompt suffix to check whether a command
110
111
> \[!WARNING]\
111
112
> This feature requires [wget](https://www.gnu.org/software/wget/) to be installed on your system.
112
113
113
-
By default, the tool only sent operating system notifications. It can, however, also send a message to a user-specified telegram channel.
114
+
By default, the tool only sends operating system notifications. It can, however, also send a message to a user-specified telegram channel.
114
115
115
116
> Put `set -g @tnotify-telegram-bot-id 'your telegram bot id'` and `set -g @tnotify-telegram-channel-id 'your channel id'` in the `.tmux.conf` config file to enable this.
116
117
@@ -125,6 +126,20 @@ Additionally, you can use the `set -g @tnotify-telegram-all 'on'` option to send
125
126
> \[!NOTE]\
126
127
> 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.
127
128
129
+
### Enable Pushover notifications
130
+
131
+
> \[!WARNING]\
132
+
> This feature requires [curl](https://curl.se/) to be installed on your system.
133
+
134
+
By default, the tool only sends operating system notifications. It can, however, also send a message to a user-specified pusher user or group.
135
+
136
+
> Put `set -g @tnotify-pushover-token 'your pushover application token'` and `set -g @tnotify-pushover-user 'your pushover user or group identifier'` in the `.tmux.conf` config file to enable this.
137
+
138
+
> You may optionally put `set -g @tnotify-pushover-title 'The title of the message'` to override the default title
139
+
140
+
> \[!NOTE]\
141
+
> You can create a free pushover account at [pushover.net](https://pushover.net/).
142
+
128
143
### Execute custom notification commands
129
144
130
145
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'`).
0 commit comments