config/files/sketchybar/items/executable_front_app.sh
2025-05-03 21:41:46 -07:00

29 lines
1.7 KiB
Bash

#!/usr/bin/env sh
FRONT_APP_SCRIPT='sketchybar --set $NAME label="$INFO"'
sketchybar --add event window_focus \
--add event windows_on_spaces \
--add item system.yabai left \
--set system.yabai script="$PLUGIN_DIR/yabai.sh" \
icon.font="$FONT:Bold:16.0" \
label.drawing=off \
icon.width=30 \
icon=$YABAI_GRID \
icon.color=$BLACK \
updates=on \
associated_display=active \
--subscribe system.yabai window_focus \
windows_on_spaces \
mouse.clicked \
\
--add item front_app left \
--set front_app script="$FRONT_APP_SCRIPT" \
icon.drawing=off \
background.padding_left=0 \
background.padding_right=10 \
label.color=$BLACK \
label.font="$FONT:Black:12.0" \
associated_display=active \
--subscribe front_app front_app_switched