Address issue #13: Add 'selected' option

This commit is contained in:
Emmanuel Lepage Vallee 2013-05-17 01:21:04 -04:00
parent 1fae8f85bc
commit 0aa70b4b80
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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"
}

View File

@ -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