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

Stumptray issues - icons visibility and desappearance #206

Open
OrionRandD opened this issue Oct 17, 2020 · 1 comment
Open

Stumptray issues - icons visibility and desappearance #206

OrionRandD opened this issue Oct 17, 2020 · 1 comment

Comments

@OrionRandD
Copy link

Stumptray issues

  1. stumptray toggle icons visibility" does not work?
    it says: The value NIL is not of type STUMPTRAY::TRAY

  2. stumptray disappears after toggling mode-line

👎

@trev-dev
Copy link

Not sure what to do about problem 1, but I have resolved problem 2 with the following:

(defvar *base-mode-line-format* "[%n] %W ^>  %C | %M | %I | %B | %d")

(defun make-mode-line-with-stumptray ()
  (setf *screen-mode-line-format* (concat *base-mode-line-format* " %T"))
  (mode-line)
  (stumptray::stumptray))

(defun destroy-mode-line-with-stumptray ()
  (when-let ((tray (stumptray::current-tray)))
      (stumptray::destroy-tray tray))
  (setf *screen-mode-line-format* *base-mode-line-format*)
  (mode-line))

(defun toggle-mode-line-with-stumptray ()
  (if *mode-lines*
      (destroy-mode-line-with-stumptray)
      (make-mode-line-with-stumptray)))

(defcommand mode-line-with-stumptray () ()
  (toggle-mode-line-with-stumptray))

(define-key *root-map* (kbd "m") "mode-line-with-stumptray")

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

2 participants