Add hotkey to manually toggle titlebar
Co-authored-by: Arkhist <peyrille.benjamin@gmail.com>
This commit is contained in:
parent
4b93a05fa5
commit
93a3caf5a4
@ -532,7 +532,16 @@ clientkeys = gears.table.join(-- tiling
|
|||||||
c.maximized_horizontal = not c.maximized_horizontal
|
c.maximized_horizontal = not c.maximized_horizontal
|
||||||
c:raise()
|
c:raise()
|
||||||
end,
|
end,
|
||||||
{ description = "(un)maximize horizontally", group = "client" }))
|
{ description = "(un)maximize horizontally", group = "client" }),
|
||||||
|
awful.key({ config.keys.modkey, "Shift"}, "p",
|
||||||
|
function(c)
|
||||||
|
awful.titlebar.toggle(c)
|
||||||
|
if c.maximized then
|
||||||
|
c.maximized = false
|
||||||
|
c.maximized = true
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
{ description = "toggle titlebar", group = "client"}))
|
||||||
|
|
||||||
-- Bind all key numbers to tags.
|
-- Bind all key numbers to tags.
|
||||||
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
||||||
|
Loading…
Reference in New Issue
Block a user