update currentWorkspace
This commit is contained in:
parent
183d351cea
commit
0a53c6933e
@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/env fish
|
|
||||||
|
|
||||||
niri msg workspaces | rg "^ \*" | sed -E 's/[[:space:]]+\* //g'
|
|
||||||
3
home-manager/progs/eww/config/scripts/currentWorkspace.sh
Executable file
3
home-manager/progs/eww/config/scripts/currentWorkspace.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
niri msg --json workspaces | jq -r '.[] | select(.is_focused == true) | .["id"]'
|
||||||
@ -128,5 +128,4 @@
|
|||||||
(label :text "${volumevalue.count}" :class {volumevalue.color})))
|
(label :text "${volumevalue.count}" :class {volumevalue.color})))
|
||||||
|
|
||||||
|
|
||||||
(defpoll currentworkspace :interval "1s" `scripts/currentWorkspace.fish`)
|
(defpoll currentworkspace :interval "1s" `scripts/currentWorkspace.sh`)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user