-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for terminal bell as a notification #115
Comments
As a work around I'm using tmux v2.2 to handle the terminal bell in termux with the following:
usr/etc/profile.d/tmux.sh
usr/bin/notif.sh
The profile script is another workaround for tmux 2.2 that will be fixed in 2.3 (already fixed in tmux master branch). In tmux v2.3, the profile script will not be needed and the set-hook option can be added directly to your tmux.conf file. The notif.sh script can be modified to your liking and is run whenever there is a terminal bell. Update: added ssh check |
Is this still relevant? I can not make system play system bell sound on both Termux and Konsole (I tried |
@twaik A BEL char being printed to the terminal causes Termux to send a short vibration to Android on my Device (Android 10), check if you have vibration enabled in the Android quick settings. |
You are right. I succeed making constantly vibrating phone with |
There is actually a dedicated escape sequence for notifications, I don't think Termux implements it. |
The terminal bell works when the app is running in the foreground with the screen on but after screen turns off or the app is running in the background it no longer plays a sound or vibrates based on the bell-character setting in termux.properties.
This option is useful for being notified of events if connected to another machine via ssh (where termux-notification will not work). Please add support for terminal bell as a notification.
The text was updated successfully, but these errors were encountered: