Skip to content

Commit

Permalink
format lua code with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
TanvirOnGH committed Sep 12, 2024
1 parent ac8a1f4 commit bde1e07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion widget/taglist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ local function visible_clients(t, ignored)
local clients = {}

for _, c in pairs(t:clients()) do
local hidden = c.hidden or c.type == "splash" or c.type == "dock" or c.type == "desktop"
local hidden = c.hidden
or c.type == "splash"
or c.type == "dock"
or c.type == "desktop"
or (c.class and awful.util.table.hasitem(ignored, c.class))

if not hidden then
Expand Down
6 changes: 5 additions & 1 deletion widget/tasklist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,11 @@ local function visible_clients(filter, screen, ignored)
local clients = {}

for _, c in ipairs(client.get()) do
local hidden = c.skip_taskbar or c.hidden or c.type == "splash" or c.type == "dock" or c.type == "desktop"
local hidden = c.skip_taskbar
or c.hidden
or c.type == "splash"
or c.type == "dock"
or c.type == "desktop"
or (c.class and awful.util.table.hasitem(ignored, c.class))

if not hidden and filter(c, screen) then
Expand Down

0 comments on commit bde1e07

Please sign in to comment.