Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,8 @@ notify() {
# trigger visual bell
# your terminal emulator can be setup to set URGENT bit on visual bell
# for eg, Xresources -> URxvt.urgentOnBell: true
tmux split-window -t "\$$SESSION_ID":@"$WINDOW_ID" "echo -e \"\a\" && exit"
local visual_bell="$(get_tmux_option "$tmux_notify_visual_bell" "$tmux_notify_visual_bell_default")"
if [ "$visual_bell" == "on" ]; then
tmux split-window -t "\$$SESSION_ID":@"$WINDOW_ID" "echo -e \"\a\" && exit"
fi
}
4 changes: 4 additions & 0 deletions scripts/variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export verbose_title_default=""
export monitor_sleep_duration="@tnotify-sleep-duration"
export monitor_sleep_duration_default=10

# Visual bell notification settings
export tmux_notify_visual_bell="@tnotify-visual-bell"
export tmux_notify_visual_bell_default="on"

# Telegram notification settings
export tmux_notify_telegram_bot_id="@tnotify-telegram-bot-id"
export tmux_notify_telegram_channel_id="@tnotify-telegram-channel-id"
Expand Down