mirror of
https://github.com/theniceboy/.config.git
synced 2026-02-22 12:55:39 +08:00
add M-w hotkey to watch pane process and notify on completion
This commit is contained in:
parent
4a5044a949
commit
3e14a478a6
4 changed files with 58 additions and 0 deletions
|
|
@ -4,6 +4,13 @@ set -euo pipefail
|
|||
window_id="$1"
|
||||
[[ -z "$window_id" ]] && exit 0
|
||||
|
||||
# Check manual @watching flag
|
||||
watching=$(tmux show -wv -t "$window_id" @watching 2>/dev/null || true)
|
||||
if [[ "$watching" == "1" ]]; then
|
||||
printf '⏳'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Check manual @unread flag
|
||||
unread=$(tmux show -wv -t "$window_id" @unread 2>/dev/null || true)
|
||||
if [[ "$unread" == "1" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue