10 lines
399 B
Bash
10 lines
399 B
Bash
#!/usr/bin/env bash
|
|
# ~/.config/waybar/scripts/hypr-workspaces.sh
|
|
|
|
# Example: count windows and generate tooltip
|
|
win_count=4
|
|
tooltip="• scripts - Thunar\n• Droidnix — config\n• Waybar Workspace Customization — Zen Browser\n• henrov@traveldroid: ~/.config/waybar/scripts"
|
|
|
|
# Output compact JSON
|
|
jq -c -n --arg text "$win_count" --arg tooltip "$tooltip" '{text: $text, tooltip: $tooltip}'
|