exwm-modeline/README.org

1.6 KiB

exwm-modeline

A modeline segment to display exwm workspaces.

Here's how it looks near the list of perspectives (the segment of the current package is to the left): /sqrtminusone/exwm-modeline/media/tag/0.1.2/img/screenshot.png

  • workspaces 0 and 5 do not have any X windows
  • workspace 1 is the current workspace
  • workspace 2 has at least one X window.

Features:

  • Supports exwm-randr to display only workspaces related to the current monitor.
  • Numbers are clickable.

Installation

As the package isn't yet available anywhere but in this repository, you can clone the repository, add it to the load-path, and require the package:

(require 'exwm-modeline)

My preferred way is to use use-package with straight:

(use-package exwm-modeline
  :straight (:host github :repo "SqrtMinusOne/exwm-modeline")
  :after (exwm))

Then put a call to exwm-modeline-mode somewhere after the moment when EXWM has been initialized, for instance:

(add-hook 'exwm-init-hook #'exwm-modeline-mode)

Customization

Set exwm-modeline-randr to nil to turn off filtering of workspaces by monitor.

Set exwm-modeline-short to t display only the current workspace in the modeline.

Credits

perspective.el by @nex3 was extremely instructive on how to make a modeline segment individual to a particular frame and avoid recalculating it too often.

doom-modeline-exwm by @elken also was a source of inspiration.