mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-07 08:44:22 +02:00
widget: use empty string instead of nil when no widget is wanted
This commit is contained in:
parent
5a4473d370
commit
76e330d981
1 changed files with 2 additions and 2 deletions
|
@ -112,11 +112,11 @@ for s = 1, screen.count() do
|
|||
-- Add widgets to the wibox
|
||||
local onfirst = function(what)
|
||||
if s == 1 then return what end
|
||||
return nil
|
||||
return ""
|
||||
end
|
||||
local onsecond = function(what)
|
||||
if s == 2 or screen.count() == 1 then return what end
|
||||
return nil
|
||||
return ""
|
||||
end
|
||||
|
||||
wibox[s].widgets = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue