tag client.focus

This commit is contained in:
anakha 2021-07-13 14:44:01 -04:00
parent 468a608704
commit 0c2327295c
4 changed files with 11 additions and 4 deletions

View File

@ -36,6 +36,7 @@ We now have tabs for tiled clients :)
### 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.
- [X] Tags must always have a focused window. Added tag.selected signal.
- [X] Clickable tabs
- [X] Close tabs. (right click)
- [X] Allow detaching from floating tabs. (double click)

View File

@ -72,6 +72,7 @@ end
geoms.clients = {}
geoms.clients["Subl"] = geoms.p1280
geoms.clients["Cudatext"] = geoms.crt43
geoms.clients["Byobu"] = geoms.p720
geoms.clients["Krom"] = geoms.crt43
geoms.clients["Google-chrome"] = geoms.crt43

View File

@ -33,7 +33,6 @@ end --|
--|global_client_index. keeping it here for historical
--|reasons in case we need this again.
local function clear_tabbar(c, position)
if not c then return end
local position = position or "bottom"
@ -43,7 +42,6 @@ local function clear_tabbar(c, position)
}
end --|clears bottom tabbar
local function reload(m)
if package.loaded[m] then
local attrs = {}
@ -61,7 +59,6 @@ local function reload(m)
return temp_module
end
local function getlowest(table)
local low = math.huge
local index
@ -74,7 +71,6 @@ local function getlowest(table)
return index
end
local function compare(a,b)
return a.v < b.v
end

View File

@ -126,6 +126,15 @@ local bindings = {
--------------------------------------------------------------- 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)
c.maximized = false
c.maximized_horizontal = false