mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-10 13:54:16 +00:00
10 lines
373 B
Bash
Executable file
10 lines
373 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Some events send additional information specific to the event in the $INFO
|
|
# variable. E.g. the front_app_switched event sends the name of the newly
|
|
# focused application in the $INFO variable:
|
|
# https://felixkratz.github.io/SketchyBar/config/events#events-and-scripting
|
|
|
|
if [ "$SENDER" = "front_app_switched" ]; then
|
|
sketchybar --set $NAME label="$INFO"
|
|
fi
|