Define fn for outputting the current workspace's label
This is a useful helper fn, and hopefully something I'll support in my mode line soon.
This commit is contained in:
parent
8137eed738
commit
869bcf3fc8
1 changed files with 6 additions and 0 deletions
|
@ -369,6 +369,12 @@ predicate."
|
||||||
(list-map #'window-manager--register-kbd))
|
(list-map #'window-manager--register-kbd))
|
||||||
(window-manager--alert "Registered workspace KBDs!")))
|
(window-manager--alert "Registered workspace KBDs!")))
|
||||||
|
|
||||||
|
(defun window-manager-current-workspace ()
|
||||||
|
"Output the label of the currently active workspace."
|
||||||
|
(->> window-manager--workspaces
|
||||||
|
cycle-current
|
||||||
|
window-manager--named-workspace-label))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Startup Applications in `window-manager--named-workspaces'
|
;; Startup Applications in `window-manager--named-workspaces'
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
Loading…
Reference in a new issue