Skip to content
Monitor-independent workspaces for EXWM
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
exwmsw.el

README.md

exwmsw.el

This package provides functions for monitor-independent manipulation of workspaces in EXWM.

Usage

First, set up your monitors:

(setq exwmsw-active-workspace-plist '("DP-5" 0 "DP-3" 0 "HDMI-0" 0))
(setq exwmsw-the-left-screen "DP-5")
(setq exwmsw-the-center-screen "DP-3")
(setq exwmsw-the-right-screen "HDMI-0")

Then, set up some keybindings:

(exwm-input-set-key (kbd "s-a") #'exwmsw-cycle-screens)
(exwm-input-set-key (kbd "s-w") #'exwmsw-switch-to-left-screen)
(exwm-input-set-key (kbd "s-e") #'exwmsw-switch-to-center-screen)
(exwm-input-set-key (kbd "s-r") #'exwmsw-switch-to-right-screen)
(exwm-input-set-key (kbd "s-C-w") #'exwmsw-swap-displayed-workspace-with-left-screen)
(exwm-input-set-key (kbd "s-C-e") #'exwmsw-swap-displayed-workspace-with-center-screen)
(exwm-input-set-key (kbd "s-C-r") #'exwmsw-swap-displayed-workspace-with-right-screen)
(exwm-input-set-key (kbd "<f2>") #'exwmsw-cycle-workspace-on-left-screen)
(exwm-input-set-key (kbd "<f3>") #'exwmsw-cycle-workspace-on-center-screen)
(exwm-input-set-key (kbd "<f4>") #'exwmsw-cycle-workspace-on-right-screen)
(exwm-input-set-key (kbd "<f1>") #'exwmsw-create-workspace-on-current-screen)
(exwm-input-set-key (kbd "s-x") #'exwmsw-delete-workspace-on-current-screen)

Lastly, you can advise functions to create workspaces and delete workspaces automatically:

(exwmsw-advise-screen-session #'mu4e #'mu4e-quit)
You can’t perform that action at this time.