tag client.focus
This commit is contained in:
parent
468a608704
commit
0c2327295c
|
@ -36,6 +36,7 @@ We now have tabs for tiled clients :)
|
||||||
### Next?
|
### Next?
|
||||||
|
|
||||||
- [ ] Better keybindings (possibly emacs style, or vim style): an xcape key can be used to to initiate awm layer and enter can exit from it.
|
- [ ] Better keybindings (possibly emacs style, or vim style): an xcape key can be used to to initiate awm layer and enter can exit from it.
|
||||||
|
- [X] Tags must always have a focused window. Added tag.selected signal.
|
||||||
- [X] Clickable tabs
|
- [X] Clickable tabs
|
||||||
- [X] Close tabs. (right click)
|
- [X] Close tabs. (right click)
|
||||||
- [X] Allow detaching from floating tabs. (double click)
|
- [X] Allow detaching from floating tabs. (double click)
|
||||||
|
|
|
@ -72,6 +72,7 @@ end
|
||||||
|
|
||||||
geoms.clients = {}
|
geoms.clients = {}
|
||||||
geoms.clients["Subl"] = geoms.p1280
|
geoms.clients["Subl"] = geoms.p1280
|
||||||
|
geoms.clients["Cudatext"] = geoms.crt43
|
||||||
geoms.clients["Byobu"] = geoms.p720
|
geoms.clients["Byobu"] = geoms.p720
|
||||||
geoms.clients["Krom"] = geoms.crt43
|
geoms.clients["Krom"] = geoms.crt43
|
||||||
geoms.clients["Google-chrome"] = geoms.crt43
|
geoms.clients["Google-chrome"] = geoms.crt43
|
||||||
|
|
|
@ -33,7 +33,6 @@ end --|
|
||||||
--|global_client_index. keeping it here for historical
|
--|global_client_index. keeping it here for historical
|
||||||
--|reasons in case we need this again.
|
--|reasons in case we need this again.
|
||||||
|
|
||||||
|
|
||||||
local function clear_tabbar(c, position)
|
local function clear_tabbar(c, position)
|
||||||
if not c then return end
|
if not c then return end
|
||||||
local position = position or "bottom"
|
local position = position or "bottom"
|
||||||
|
@ -43,7 +42,6 @@ local function clear_tabbar(c, position)
|
||||||
}
|
}
|
||||||
end --|clears bottom tabbar
|
end --|clears bottom tabbar
|
||||||
|
|
||||||
|
|
||||||
local function reload(m)
|
local function reload(m)
|
||||||
if package.loaded[m] then
|
if package.loaded[m] then
|
||||||
local attrs = {}
|
local attrs = {}
|
||||||
|
@ -61,7 +59,6 @@ local function reload(m)
|
||||||
return temp_module
|
return temp_module
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local function getlowest(table)
|
local function getlowest(table)
|
||||||
local low = math.huge
|
local low = math.huge
|
||||||
local index
|
local index
|
||||||
|
@ -74,7 +71,6 @@ local function getlowest(table)
|
||||||
return index
|
return index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local function compare(a,b)
|
local function compare(a,b)
|
||||||
return a.v < b.v
|
return a.v < b.v
|
||||||
end
|
end
|
||||||
|
|
9
init.lua
9
init.lua
|
@ -126,6 +126,15 @@ local bindings = {
|
||||||
|
|
||||||
--------------------------------------------------------------- signals -- ;
|
--------------------------------------------------------------- signals -- ;
|
||||||
|
|
||||||
|
tag.connect_signal("property::selected", function(t)
|
||||||
|
if client.focus == nil then
|
||||||
|
local s = awful.screen.focused()
|
||||||
|
client.focus = awful.client.focus.history.get(s, 0)
|
||||||
|
end
|
||||||
|
end) --|ensure there is always a selected client during tag
|
||||||
|
--|switching or logins
|
||||||
|
|
||||||
|
|
||||||
client.connect_signal("manage", function(c)
|
client.connect_signal("manage", function(c)
|
||||||
c.maximized = false
|
c.maximized = false
|
||||||
c.maximized_horizontal = false
|
c.maximized_horizontal = false
|
||||||
|
|
Loading…
Reference in New Issue