From: martin f. krafft Date: Fri, 9 Sep 2016 09:32:27 +0000 (+0200) Subject: disable unused layouts, reorder used ones, define aliases X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/0a2ce2f67bb99ea4dba2283c0d6d62b9071f26e6 disable unused layouts, reorder used ones, define aliases --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 3d1af88..19572b8 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -51,26 +51,31 @@ editor_cmd = terminal .. " -e " .. editor -- I suggest you to remap Mod4 to another key using xmodmap or other tools. -- However, you can use another modifier like Mod1, but it may interact with others. modkey = "Mod4" +cmdkey = "Mod3" -- Table of layouts to cover with awful.layout.inc, order matters. awful.layout.layouts = { - awful.layout.suit.floating, + awful.layout.suit.fair, awful.layout.suit.tile, - awful.layout.suit.tile.left, - awful.layout.suit.tile.bottom, + -- awful.layout.suit.tile.left, + -- awful.layout.suit.tile.bottom, awful.layout.suit.tile.top, - awful.layout.suit.fair, - awful.layout.suit.fair.horizontal, - awful.layout.suit.spiral, - awful.layout.suit.spiral.dwindle, + -- awful.layout.suit.spiral, + -- awful.layout.suit.spiral.dwindle, awful.layout.suit.max, awful.layout.suit.max.fullscreen, - awful.layout.suit.magnifier, - awful.layout.suit.corner.nw, + -- awful.layout.suit.magnifier, + -- awful.layout.suit.corner.nw, -- awful.layout.suit.corner.ne, -- awful.layout.suit.corner.sw, -- awful.layout.suit.corner.se, + awful.layout.suit.floating, } + +layout_default = awful.layout.layouts[1] +layout_tiled = awful.layout.layouts[2] +layout_maximised = awful.layout.layouts[4] +layout_floating = awful.layout.layouts[5] -- }}} -- {{{ Helper functions @@ -177,7 +182,11 @@ awful.screen.connect_for_each_screen(function(s) end -- Each screen has its own tag table. - awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1]) + tags = awful.tag.new({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, layout_default) + tags[7].layout = layout_maximised + tags[8].layout = layout_maximised + tags[9].layout = layout_maximised + tags[1].selected = true -- Create a promptbox for each screen mypromptbox[s] = awful.widget.prompt()