Introduces eww bar
This commit is contained in:
parent
75bc7eb6a7
commit
e58899e4ae
30 changed files with 279 additions and 1147 deletions
17
.config/eww/widgets/bar/scripts/workspaces.jq
Normal file
17
.config/eww/widgets/bar/scripts/workspaces.jq
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue