diff options
Diffstat (limited to 'packaging')
| -rw-r--r-- | packaging/tmux/dingger.tmux | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packaging/tmux/dingger.tmux b/packaging/tmux/dingger.tmux index 64c5bff..f1529f1 100644 --- a/packaging/tmux/dingger.tmux +++ b/packaging/tmux/dingger.tmux @@ -4,9 +4,15 @@ # of the menu bar: blocked first, then the longest-done (FIFO), skipping the # window you are already looking at. # +# After tmux restarts, `↺N` (blue) offers to restore N saved sessions: +# clicking it runs `dingger restore`; a notification summarizes, the full +# report is in ~/.local/state/dingger/restore.log. +# # 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}'" +set -g status-right '#{?@dingger_restore,#[range=user|restore]#[fg=#89b4fa#,bold]↺#{@dingger_restore}#[norange default] ,}%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 if -F '#{==:#{mouse_status_range},restore}' \ + 'run-shell -b "$HOME/.local/bin/dingger restore --report"' \ + "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"' |
