diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-26 16:33:16 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-08-29 03:50:30 +0530 |
| commit | dd76ef7e28a15b095de6afe61a825281f90df1be (patch) | |
| tree | abd9a28c38099fbc992af11a40e2c55adc1dda60 /modules/desktop/eww/workspaces.sh | |
| parent | d1858c51b53e3ebcd841416490c17f7b22334e6a (diff) | |
| download | home-manager-config-dd76ef7e28a15b095de6afe61a825281f90df1be.tar.gz home-manager-config-dd76ef7e28a15b095de6afe61a825281f90df1be.zip | |
desktop: showing currently active windows in eww
- successfully showing the icons for the currently active windows
running in the current workspace
Diffstat (limited to 'modules/desktop/eww/workspaces.sh')
| -rw-r--r-- | modules/desktop/eww/workspaces.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/desktop/eww/workspaces.sh b/modules/desktop/eww/workspaces.sh new file mode 100644 index 0000000..18193fa --- /dev/null +++ b/modules/desktop/eww/workspaces.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -euo pipefail + +print_workspaces() { + niri msg -j workspaces | jq -c --unbuffered 'sort_by(.idx)' +} + +print_workspaces + +niri msg -j event-stream | while IFS= read -r line; do + case "$line" in + *WorkspacesChanged*|*WorkspaceActivated*|*WorkspaceUrgencyChanged*|*WorkspaceActiveWindowChanged*) + print_workspaces + ;; + esac +done |
