Address issue #13: Add 'selected' option
This commit is contained in:
parent
1fae8f85bc
commit
0aa70b4b80
|
@ -138,6 +138,7 @@ Then edit this section to fit your needs. That available tag properties are:
|
|||
* clone_on
|
||||
* class
|
||||
* exec_once
|
||||
* selected
|
||||
|
||||
The available client properties are:
|
||||
* floating
|
||||
|
@ -154,4 +155,5 @@ The available client properties are:
|
|||
* maximized_vertical
|
||||
* sticky
|
||||
* focusable
|
||||
* skip_taskbar
|
||||
* skip_taskbar
|
||||
|
||||
|
|
|
@ -84,6 +84,7 @@ tyrannical.tags = {
|
|||
exclusive = true, -- Refuse any other type of clients (by classes)
|
||||
screen = {1,2}, -- Create this tag on screen 1 and screen 2
|
||||
layout = awful.layout.suit.tile, -- Use the tile layout
|
||||
selected = true,
|
||||
class = { --Accept the following classes, refuse everything else (because of "exclusive=true")
|
||||
"xterm" , "urxvt" , "aterm","URxvt","XTerm","konsole","terminator","gnome-terminal"
|
||||
}
|
||||
|
|
1
init.lua
1
init.lua
|
@ -197,6 +197,7 @@ awful.tag.add,awful.tag._setscreen = function(tag,props)
|
|||
local t3 = awful.tag._add(tag,{screen = awful.tag.getproperty(t,"clone_on"), clone_of = t,icon=awful.tag.geticon(t)})
|
||||
--TODO prevent clients from being added to the clone
|
||||
end
|
||||
t.selected = props.selected or false
|
||||
t:connect_signal("property::selected", function(t) on_selected_change(t,props or {}) end)
|
||||
return t
|
||||
end,awful.tag.setscreen
|
||||
|
|
Loading…
Reference in New Issue