You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
414 B

#!/usr/bin/env bash
6 months ago
# Original source:
# https://nikitabobko.github.io/AeroSpace/goodness#show-aerospace-workspaces-in-sketchybar
# https://stackoverflow.com/a/47541882
if printf '%s\0' "${argv[@]}" | grep -F -x -z -- "$FOCUSED_WORKSPACE"; then
sketchybar --set "$NAME" label="$FOCUSED_WORKSPACE" background.drawing=on
else
sketchybar --set "$NAME" label="$FOCUSED_WORKSPACE" background.drawing=off
6 months ago
fi