Go to file
Manu Cornet 107bcdfced Add sample usage in README 2021-12-14 08:18:08 +00:00
README.md Add sample usage in README 2021-12-14 08:18:08 +00:00
awesome-workspace-grid.lua Add sample usage in README 2021-12-14 08:18:08 +00:00
init.lua Initial version 2021-12-14 06:13:48 +00:00

README.md

awesome-workspace-grid

Sample usage:

local workspace_grid = require("awesome-workspace-grid")
grid = workspace_grid({
  rows = rows,        -- only 2 supported for now!
  columns = columns,  -- only 3 supported for now!
  visual = true,
})

globalkeys = gears.table.join(globalkeys,
  awful.key(tag_nav_mod_keys, "Up",
            function () grid:navigate("up") end, {description = "Up", group="Tag"}),
  awful.key(tag_nav_mod_keys, "Down",
            function () grid:navigate("down") end, {description = "Down", group="Tag"}),
  awful.key(tag_nav_mod_keys, "Left",
            function () grid:navigate("left") end, {description = "Left", group="Tag"}),
  awful.key(tag_nav_mod_keys, "Right",
            function () grid:navigate("right") end, {description = "Right", group="Tag"}),
)