mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-21 19:34:36 +02:00
tags: rework how tags are defined
Instead of using a list of names and a list of layouts, we use an array with optional names and layouts and additional properties. If no name is given, only numerical ID is used. Default to first layout. Additional properties are set using `setproperty`.
This commit is contained in:
parent
7901e0c294
commit
e5e338e8ee
2 changed files with 29 additions and 13 deletions
9
rc.lua
9
rc.lua
|
@ -40,6 +40,15 @@ config.layouts = {
|
|||
awful.layout.suit.fair,
|
||||
awful.layout.suit.floating,
|
||||
}
|
||||
config.tags = {
|
||||
{ layout = awful.layout.suit.fair }, -- 1
|
||||
{ name = "emacs", mwfact = 0.6 },
|
||||
{ name = "www", mwfact = 0.7 },
|
||||
{ name = "im" , mwfact = 0.2 },
|
||||
{ }, -- 5
|
||||
{ }, -- 6
|
||||
{ }, -- 7
|
||||
}
|
||||
config.hostname = awful.util.pread('uname -n'):gsub('\n', '')
|
||||
|
||||
-- Remaining modules
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue