aboutsummaryrefslogtreecommitdiff
path: root/packaging/tmux/dingger.tmux
blob: 64c5bff99a17432406beaab7274545c428b57008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# dingger: herdr-style agent summary after the clock, in herdr's colors:
#   × blocked (red, bold)   ✓ done (teal)   ◐ working (yellow)
# Clicking the status line jumps to the top waiting agent, like the top row
# of the menu bar: blocked first, then the longest-done (FIFO), skipping the
# window you are already looking at.
#
# Source this from your tmux config:  source-file /path/to/dingger.tmux
set -g status-right '%d-%b %H:%M#{?#{e|>:#{@dingger_blocked},0}, #[fg=#f38ba8#,bold]×#{@dingger_blocked}#[default],}#{?#{e|>:#{@dingger_done},0}, #[fg=#94e2d5]✓#{@dingger_done}#[default],}#{?#{e|>:#{@dingger_working},0}, #[fg=#f9e2af]◐#{@dingger_working}#[default],}'
bind -n MouseDown1StatusRight run-shell "$HOME/.local/bin/dingger focus --client '#{client_name}'"
# Tell dingger the moment you look somewhere else (it marks what you see as
# attended). Index 77 keeps your own hooks and makes reloading idempotent.
set-hook -g 'client-session-changed[77]' 'run-shell -b "$HOME/.local/bin/dingger poke"'
set-hook -g 'session-window-changed[77]' 'run-shell -b "$HOME/.local/bin/dingger poke"'
set-hook -g 'window-pane-changed[77]' 'run-shell -b "$HOME/.local/bin/dingger poke"'