yadm-config/.config/eww/widgets/bar/scripts/workspaces.sh
2025-11-11 17:44:06 +01:00

11 lines
423 B
Bash
Executable file

#!/bin/bash
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
jq --null-input \
--argjson activeWorkspace "$(hyprctl -j activeworkspace)" \
--argjson workspaces "$(hyprctl -j workspaces)" \
--argjson monitors "$(hyprctl -j monitors)" \
--argjson clients "$(hyprctl -j clients)" \
--argjson clientIcons "$(cat "$SCRIPT_DIR/clientIcons.json")" \
--from-file "$SCRIPT_DIR/workspaces.jq"