Skip to content

LemonBreezes/exwmsw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

Monitor-independent workspaces for EXWM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages