Skip to content

Commit

Permalink
Add job done notification to fish/wezterm
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Jan 17, 2025
1 parent 660b6a7 commit 26c0ccd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -868,3 +868,7 @@ function ros_kill
$(pgrep -af gzserver | cut -d' ' -f1) \
$(pgrep -af gzclient | cut -d' ' -f1)
end

function postexec --on-event fish_postexec
echo -e '\a'
end
7 changes: 7 additions & 0 deletions wezterm/.config/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -349,4 +349,11 @@ wezterm.on("augment-command-palette", function(_, _)
end)
config.check_for_updates = false

wezterm.on("bell", function(window, pane)
if window:is_focused() and window:active_pane():pane_id() == pane:pane_id() then
return
end
window:toast_notification("wezterm", "Bell in pane '" .. pane:get_title() .. "'", nil, 5000)
end)

return config

0 comments on commit 26c0ccd

Please sign in to comment.