chezmoi: macOS

This commit is contained in:
whoami 2025-09-27 16:00:34 +01:00
parent fff9275372
commit c1a63e4658
39 changed files with 10 additions and 284 deletions

View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
VOLUME=$(osascript -e "output volume of (get volume settings)")
MUTED=$(osascript -e "output muted of (get volume settings)")
if [ "$MUTED" != "false" ]; then
ICON="󰖁"
VOLUME=0
else
case ${VOLUME} in
100) ICON="" ;;
[5-9]*) ICON="" ;;
[0-9]*) ICON="" ;;
*) ICON="" ;;
esac
fi
sketchybar -m \
--set "$NAME" icon=$ICON \
--set "$NAME" label="$VOLUME%"