add Lenovox1en5 polybar & i3wm configs, change MacOS folder to macos
This commit is contained in:
10
configs/macos/sketchybar_m/plugins/front_app.sh
Executable file
10
configs/macos/sketchybar_m/plugins/front_app.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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" icon="$($CONFIG_DIR/plugins/icon_map_fn.sh "$INFO")"
|
||||
fi
|
||||
Reference in New Issue
Block a user