add spiral layouts, disable quit
This commit is contained in:
parent
accfd5778a
commit
e0d52a41dc
1 changed files with 23 additions and 11 deletions
34
rc.lua
34
rc.lua
|
@ -111,6 +111,10 @@ local layouts = {
|
||||||
float = {
|
float = {
|
||||||
awful.layout.suit.floating
|
awful.layout.suit.floating
|
||||||
},
|
},
|
||||||
|
spiral = {
|
||||||
|
awful.layout.suit.spiral,
|
||||||
|
awful.layout.suit.spiral.dwindle
|
||||||
|
},
|
||||||
|
|
||||||
-- Some weird shit I don't use, but it still exists:
|
-- Some weird shit I don't use, but it still exists:
|
||||||
|
|
||||||
|
@ -118,10 +122,6 @@ local layouts = {
|
||||||
awful.layout.suit.fair,
|
awful.layout.suit.fair,
|
||||||
awful.layout.suit.fair.horizontal
|
awful.layout.suit.fair.horizontal
|
||||||
},
|
},
|
||||||
spiral = {
|
|
||||||
awful.layout.suit.spiral,
|
|
||||||
awful.layout.suit.spiral.dwindle
|
|
||||||
},
|
|
||||||
magnifier = {
|
magnifier = {
|
||||||
awful.layout.suit.magnifier
|
awful.layout.suit.magnifier
|
||||||
}
|
}
|
||||||
|
@ -188,14 +188,14 @@ end
|
||||||
mymainmenu_restart = {
|
mymainmenu_restart = {
|
||||||
{ 'restart', awesome.restart }
|
{ 'restart', awesome.restart }
|
||||||
}
|
}
|
||||||
mymainmenu_quit = {
|
--mymainmenu_quit = {
|
||||||
{ 'quit', awesome.quit }
|
-- { 'quit', awesome.quit }
|
||||||
}
|
--}
|
||||||
|
|
||||||
mymainmenu = awful.menu({
|
mymainmenu = awful.menu({
|
||||||
items = {
|
items = {
|
||||||
{ 'restart', mymainmenu_restart, beautiful.awesome_icon },
|
{ 'restart', mymainmenu_restart, beautiful.awesome_icon }
|
||||||
{ 'quit', mymainmenu_quit, beautiful.awesome_icon }
|
-- { 'quit', mymainmenu_quit, beautiful.awesome_icon }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -213,7 +213,8 @@ mylbmenu = awful.menu({
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{ 'Maximized', function () awful.layout.set(layouts.max[1]) end },
|
{ 'Maximized', function () awful.layout.set(layouts.max[1]) end },
|
||||||
{ 'Floating', function () awful.layout.set(layouts.float[1]) end }
|
{ 'Floating', function () awful.layout.set(layouts.float[1]) end },
|
||||||
|
{ 'Spiral', function () awful.layout.set(layouts.spiral[1]) end }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
-- }}}
|
-- }}}
|
||||||
|
@ -406,7 +407,8 @@ globalkeys = awful.util.table.join(
|
||||||
awful.key({ modkey, }, 'f', function () awful.layout.set(layouts.float[1]) end),
|
awful.key({ modkey, }, 'f', function () awful.layout.set(layouts.float[1]) end),
|
||||||
awful.key({ modkey, }, 'm',
|
awful.key({ modkey, }, 'm',
|
||||||
function ()
|
function ()
|
||||||
local current_layout = awful.layout.get(mouse.screen)
|
local screen = mouse.screen
|
||||||
|
local current_layout = awful.layout.get(screen)
|
||||||
if not enters(current_layout, layouts.max) then
|
if not enters(current_layout, layouts.max) then
|
||||||
awful.layout.set(layouts.max[1])
|
awful.layout.set(layouts.max[1])
|
||||||
else
|
else
|
||||||
|
@ -425,6 +427,16 @@ globalkeys = awful.util.table.join(
|
||||||
saved_layouts[screen].tiled[tag] = awful.layout.get(screen)
|
saved_layouts[screen].tiled[tag] = awful.layout.get(screen)
|
||||||
end
|
end
|
||||||
end),
|
end),
|
||||||
|
awful.key({ modkey, }, 's',
|
||||||
|
function ()
|
||||||
|
local screen = mouse.screen
|
||||||
|
local current_layout = awful.layout.get(screen)
|
||||||
|
if not enters(current_layout, layouts.spiral) then
|
||||||
|
awful.layout.set(layouts.spiral[1])
|
||||||
|
else
|
||||||
|
awful.layout.inc(layouts.spiral, 1)
|
||||||
|
end
|
||||||
|
end),
|
||||||
|
|
||||||
awful.key({ modkey, 'Control' }, 'n', awful.client.restore),
|
awful.key({ modkey, 'Control' }, 'n', awful.client.restore),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue