Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add tag to every screen if tag.screen is not defined on init

  • Loading branch information...
commit 6c771d9599ba6619e77cef2c8d46ebb70b35a1c1 1 parent 751e1df
@gdott9 authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 init.lua
View
5 init.lua
@@ -874,8 +874,11 @@ end
function init()
local numscr = capi.screen.count()
+ local screens = {}
+ for s = 1, capi.screen.count() do table.insert(screens, s) end
+
for i, j in pairs(config.tags) do
- local scr = j.screen or {1}
+ local scr = j.screen or screens
if type(scr) ~= 'table' then
scr = {scr}
end
Please sign in to comment.
Something went wrong with that request. Please try again.