feat: close widget by #esc
This commit is contained in:
parent
7c67d707e7
commit
18f3d2b855
|
@ -18,8 +18,12 @@ vim.o.colorcolumn = 120
|
|||
vim.o.scrolloff = 8
|
||||
--vim.o.clipboard = "unnamedplus"
|
||||
vim.o.expandtab = true
|
||||
vim.o.tabstop = 4
|
||||
vim.o.shiftwidth = 4
|
||||
vim.o.list = true
|
||||
vim.o.mouse = "a"
|
||||
vim.o.ignorecase = true
|
||||
vim.o.smartcase = true
|
||||
|
||||
-- window options
|
||||
vim.wo.number = true
|
||||
|
|
|
@ -426,8 +426,17 @@ globalkeys = gears.table.join(
|
|||
{description = "view previous", group = "tag"}),
|
||||
awful.key({ modkey, }, "period", awful.tag.viewnext,
|
||||
{description = "view next", group = "tag"}),
|
||||
awful.key({ modkey, }, "Escape", awful.tag.history.restore,
|
||||
{description = "go back", group = "tag"}),
|
||||
-- awful.key({ modkey, }, "Escape", awful.tag.history.restore,
|
||||
-- {description = "go back", group = "tag"}),
|
||||
|
||||
awful.key({ modkey, }, "Escape",
|
||||
function ()
|
||||
cw.toggle(false)
|
||||
volume_widget:toggle(false)
|
||||
logout_menu_widget:toggle(false)
|
||||
end,
|
||||
{description = "close all widget", group = "control"}
|
||||
),
|
||||
|
||||
awful.key({ modkey, }, "j",
|
||||
function ()
|
||||
|
|
Loading…
Reference in New Issue
Block a user