Skip to content

Commit

Permalink
feat(config: keys): add mod+Ctrl+End to reset the current layout
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Sep 19, 2024
1 parent b38b891 commit a3848eb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,14 @@ function keys.init(awesome_context)
awful.tag.incmwfact(-0.05)
elseif direction == "right" then
awful.tag.incmwfact( 0.05)
elseif direction == "reset" then
local s = c.screen
local t = s.selected_tag
if t then
t.master_width_factor = 0.5
t.windowfact = {}
awful.layout.arrange(s)
end
end
end
end
Expand Down Expand Up @@ -1069,6 +1077,10 @@ function keys.init(awesome_context)
get_resize_function("up"),
"column size+", LAYOUT_MANIPULATION
),
bind_key({ modkey, "Control" }, "End",
get_resize_function("reset"),
"reset layout", LAYOUT_MANIPULATION
),

-- Client resize (VIM style)
bind_key({ modkey, "Control" }, "l",
Expand Down

0 comments on commit a3848eb

Please sign in to comment.