mirror of
https://github.com/josean-dev/dev-environment-files.git
synced 2025-01-08 17:21:23 +01:00
18 lines
411 B
Bash
Executable file
18 lines
411 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ "$SENDER" = "space_windows_change" ]; then
|
|
space="$(echo "$INFO" | jq -r '.space')"
|
|
apps="$(echo "$INFO" | jq -r '.apps | keys[]')"
|
|
|
|
icon_strip=" "
|
|
if [ "${apps}" != "" ]; then
|
|
while read -r app
|
|
do
|
|
icon_strip+=" $($CONFIG_DIR/plugins/icon_map_fn.sh "$app")"
|
|
done <<< "${apps}"
|
|
else
|
|
icon_strip=" —"
|
|
fi
|
|
|
|
sketchybar --set space.$space label="$icon_strip"
|
|
fi
|