awesome-workspace-grid/README.md

35 lines
1.1 KiB
Markdown
Raw Normal View History

2021-12-14 09:18:08 +01:00
# awesome-workspace-grid
2021-12-14 09:43:19 +01:00
Installation: just clone this repository into your `awesome` configuration
directory:
```
cd ~/.config/awesome
git clone https://github.com/lmanul/awesome-workspace-grid.git
```
Sample usage in `rc.lua`:
2021-12-14 09:18:08 +01:00
```
local workspace_grid = require("awesome-workspace-grid")
grid = workspace_grid({
2021-12-14 09:40:34 +01:00
rows = 2, -- only 2 supported for now!
columns = 3, -- only 3 supported for now!
visual = true, -- whether to show workspace changes
2021-12-14 09:18:08 +01:00
})
2021-12-14 09:43:19 +01:00
-- Insert after 'globalkeys' is defined but before it is passed to 'root':
tag_nav_mod_keys = { "Control" }
2021-12-14 09:18:08 +01:00
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"}),
)
```