mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-28 03:44:57 -04:00
15 lines
498 B
Shell
Executable file
15 lines
498 B
Shell
Executable file
#!/bin/bash
|
|
|
|
CONFIG_DIR="${CONFIG_DIR:-$HOME/.config/sketchybar}"
|
|
source "$CONFIG_DIR/helpers/icon_map.sh"
|
|
|
|
if [ "$SENDER" = "front_app_switched" ]; then
|
|
__icon_map "$INFO"
|
|
|
|
# Use smooth animation for app switching - sin 6 for quick buttery transition
|
|
if [ -n "$icon_result" ] && [ "$icon_result" != ":default:" ]; then
|
|
sketchybar --animate sin 6 --set "$NAME" label="$INFO" icon="$icon_result"
|
|
else
|
|
sketchybar --animate sin 6 --set "$NAME" label="$INFO" icon=":default:"
|
|
fi
|
|
fi
|