Introduces eww bar

This commit is contained in:
Michel Fedde 2025-11-11 17:44:06 +01:00
parent 75bc7eb6a7
commit e58899e4ae
30 changed files with 279 additions and 1147 deletions

View file

@ -0,0 +1,17 @@
$workspaces | map({
id: .id,
name: .name,
activeOnCurrentScreen: .id == $activeWorkspace.id,
activeOnAnyScreen: (.id as $workspaceId | any($monitors[]; .activeWorkspace.id == $workspaceId)),
windows: (
.id as $workspaceId | $clients | map ( select(.workspace.id == $workspaceId) | {
class: .class,
title: .title,
pid: .pid,
icon: (
.class as $class |
($clientIcons | keys | .[] | select(. as $regex | $class | test($regex)) | $clientIcons[.]) // " "
)
})
)
}) | sort_by(.id)