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
|
* clone_on
|
||||||
* class
|
* class
|
||||||
* exec_once
|
* exec_once
|
||||||
|
* selected
|
||||||
|
|
||||||
The available client properties are:
|
The available client properties are:
|
||||||
* floating
|
* floating
|
||||||
|
@ -155,3 +156,4 @@ The available client properties are:
|
||||||
* sticky
|
* sticky
|
||||||
* focusable
|
* focusable
|
||||||
* skip_taskbar
|
* skip_taskbar
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,7 @@ tyrannical.tags = {
|
||||||
exclusive = true, -- Refuse any other type of clients (by classes)
|
exclusive = true, -- Refuse any other type of clients (by classes)
|
||||||
screen = {1,2}, -- Create this tag on screen 1 and screen 2
|
screen = {1,2}, -- Create this tag on screen 1 and screen 2
|
||||||
layout = awful.layout.suit.tile, -- Use the tile layout
|
layout = awful.layout.suit.tile, -- Use the tile layout
|
||||||
|
selected = true,
|
||||||
class = { --Accept the following classes, refuse everything else (because of "exclusive=true")
|
class = { --Accept the following classes, refuse everything else (because of "exclusive=true")
|
||||||
"xterm" , "urxvt" , "aterm","URxvt","XTerm","konsole","terminator","gnome-terminal"
|
"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)})
|
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
|
--TODO prevent clients from being added to the clone
|
||||||
end
|
end
|
||||||
|
t.selected = props.selected or false
|
||||||
t:connect_signal("property::selected", function(t) on_selected_change(t,props or {}) end)
|
t:connect_signal("property::selected", function(t) on_selected_change(t,props or {}) end)
|
||||||
return t
|
return t
|
||||||
end,awful.tag.setscreen
|
end,awful.tag.setscreen
|
||||||
|
|
Loading…
Reference in New Issue