update currentWorkspace

This commit is contained in:
Simon Gardling 2025-09-17 13:05:06 -04:00
parent 183d351cea
commit 0a53c6933e
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
3 changed files with 4 additions and 5 deletions

View File

@ -1,3 +0,0 @@
#!/usr/bin/env fish
niri msg workspaces | rg "^ \*" | sed -E 's/[[:space:]]+\* //g'

View File

@ -0,0 +1,3 @@
#!/usr/bin/env fish
niri msg --json workspaces | jq -r '.[] | select(.is_focused == true) | .["id"]'

View File

@ -128,5 +128,4 @@
(label :text "${volumevalue.count}" :class {volumevalue.color})))
(defpoll currentworkspace :interval "1s" `scripts/currentWorkspace.fish`)
(defpoll currentworkspace :interval "1s" `scripts/currentWorkspace.sh`)