fix: make variables local

This commit is contained in:
Alexander Gehrke 2024-02-06 17:25:23 +01:00
parent 97049a1f75
commit 60bc316c26
10 changed files with 52 additions and 54 deletions

View file

@ -1,6 +1,6 @@
-- tags
local awful = require("awful")
local conf = conf
local conf = require("localconf")
local modkey = conf.modkey or "Mod4"
local tags={}
@ -80,7 +80,7 @@ local tagdef = {
{"F4", { layout = awful.layout.suit.max }},
}
function defaultlayout(s)
local function defaultlayout(s)
if s.geometry.width > s.geometry.height then
return awful.layout.suit.fair
else
@ -102,6 +102,7 @@ end
function tags.create_bindings()
local tagkeys = {}
local k
-- Bind all number keys and F-keys to tags
for i = 1, 21 do
@ -109,7 +110,7 @@ function tags.create_bindings()
k = "#" .. i + 9 -- number keys 1-9
elseif i == 10 then
k = "#19" -- zero
elseif i > 10 then
else --if i > 10 then
k = "F" .. i - 10 -- F keys
end
tagkeys = awful.util.table.join(tagkeys,