users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh

6c2bdcffebb4a0851d0f0288aa8cbe9c443b6860 · 347 B · 10 lines raw

1 #!/usr/bin/env bash
2 # hyprland/window -> focused application name.
3 # (For the literal window *title* instead of the app name, query yabai:
4 # yabai -m query --windows --window | jq -r '.title')
5 source "$CONFIG_DIR/colors.sh"
6 source "$CONFIG_DIR/icons.sh"
7
8 if [ "$SENDER" = "front_app_switched" ]; then
9 sketchybar --set "$NAME" label="$INFO"
10 fi