Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmux-specific alert styles #101

Open
pataquets opened this issue Dec 17, 2022 · 1 comment
Open

tmux-specific alert styles #101

pataquets opened this issue Dec 17, 2022 · 1 comment

Comments

@pataquets
Copy link

pataquets commented Dec 17, 2022

tmux offers two methods of messaging the user:

  • tmux display-message
  • tmux display-popup

Both are suitable for using as alert method.
Not sure if I'll make it to code it soon, just dumping the idea. Comments welcome.

This was referenced Mar 21, 2023
@pataquets
Copy link
Author

So far, in case anyone might find it useful:

    (alert-define-style 'tmux-message
                        :title    "tmux: display message"
                        :remover  (lambda (info))
                        :notifier (lambda (info)
                                    (async-shell-command
                                     (format
                                      "tmux display-message \"%s - (press any key to close)\""
                                      (plist-get info :message))
                                     )))

Needs set -g display-time 0 setting if you don't want to miss notification while away.
Also, tmux 2.6 does not support display-popup function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant