add hot_corners example to example configuration

This commit is contained in:
BZ 2021-03-20 20:02:22 +01:00
parent f769617c1b
commit 9ba7ab3e24
1 changed files with 20 additions and 2 deletions

View File

@ -323,7 +323,25 @@ require("smart_borders") {
button_back = function(c)
-- set client as master
c:swap(awful.client.getmaster())
end
}
end,
-- hot_corners
hot_corners_color = "#FD8489",
hot_corners_width = 10,
hot_corners_height = 10,
hot_corners = {
["top_right"] = {
left_click = function()
-- unfullscreen the focused client with left click
local c = client.focus
if c and c.fullscreen then
c.fullscreen = false
end
end,
middle_click = function()
awesome.restart()
end,
}
},
}
```