Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.51 KB

README.org

File metadata and controls

33 lines (24 loc) · 1.51 KB

swm-grid

./example.gif

Navigate groups (desktops) in StumpWM as a physical grid. Displays desktop grid as a message, with the current group highlighted, while navigating.

Installation & Quickstart

In your config.lisp:

(stumpwm:add-to-load-path "/path/to/cloned/swm-grid/")
(stumpwm:load-module "swm-grid")

(swm-grid:create-groups)

(stumpwm:define-key stumpwm:*top-map* (stumpwm:kbd "C-M-Right") "right-group")
(stumpwm:define-key stumpwm:*top-map* (stumpwm:kbd "C-M-Left")  "left-group")
(stumpwm:define-key stumpwm:*top-map* (stumpwm:kbd "C-M-Down")  "down-group")
(stumpwm:define-key stumpwm:*top-map* (stumpwm:kbd "C-M-Up")    "up-group")

Exported Symbols

NameDescription
*width*Width of the grid, in groups (desktops)
*height*Height of the grid, in groups (desktops)
*default-group*Index of the default group. Will be selected after group creation.
create-groupsCall once at startup, after setting variables. Creates enough empty groups to fill the grid.
DIRECTION-group…where DIRECTION is left, right, up, or down. Navigate to the group in the given direction.