users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh
0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3
· 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 |