mirror of
https://github.com/SqrtMinusOne/exwm-modeline.git
synced 2025-12-10 14:35:14 +03:00
fix: do not update the modeline on start
This commit is contained in:
parent
dfd0b86133
commit
8aaa57d973
1 changed files with 5 additions and 3 deletions
|
|
@ -63,7 +63,8 @@ workspaces."
|
|||
:type 'boolean
|
||||
:set (lambda (sym value)
|
||||
(set-default sym value)
|
||||
(exwm-modeline-update)))
|
||||
(when exwm-modeline-mode
|
||||
(exwm-modeline-update))))
|
||||
|
||||
(defcustom exwm-modeline-randr t
|
||||
"When set, only show workspaces on the current monitor."
|
||||
|
|
@ -71,7 +72,8 @@ workspaces."
|
|||
:type 'boolean
|
||||
:set (lambda (sym value)
|
||||
(set-default sym value)
|
||||
(exwm-modeline-update)))
|
||||
(when exwm-modeline-mode
|
||||
(exwm-modeline-update))))
|
||||
|
||||
(defcustom exwm-modeline-display-urgent t
|
||||
"When set, display the urgent status in the modeline.
|
||||
|
|
@ -82,8 +84,8 @@ switch, so the number of updates is increased significantly."
|
|||
:type 'boolean
|
||||
:set (lambda (sym value)
|
||||
(set-default sym value)
|
||||
(exwm-modeline-update)
|
||||
(when exwm-modeline-mode
|
||||
(exwm-modeline-update)
|
||||
(if value
|
||||
(progn
|
||||
(advice-add #'exwm--update-hints :after #'exwm-modeline--urgency-advice)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue