mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-28 03:44:57 -04:00
updates
This commit is contained in:
parent
bc4d4c403a
commit
715eb53860
57 changed files with 7755 additions and 3 deletions
15
.config/sketchybar/plugins/front_app.sh
Executable file
15
.config/sketchybar/plugins/front_app.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/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
|
||||
Loading…
Reference in a new issue