aboutsummaryrefslogtreecommitdiff
path: root/packaging/tmux/dingger.tmux
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/tmux/dingger.tmux')
-rw-r--r--packaging/tmux/dingger.tmux14
1 files changed, 14 insertions, 0 deletions
diff --git a/packaging/tmux/dingger.tmux b/packaging/tmux/dingger.tmux
new file mode 100644
index 0000000..64c5bff
--- /dev/null
+++ b/packaging/tmux/dingger.tmux
@@ -0,0 +1,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"'