diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-07-11 22:14:43 -0400 |
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-07-11 22:14:43 -0400 |
| commit | d2b62c9d6f30a0ea88b2a235cde120cd10ba332b (patch) | |
| tree | f373003e64c3ec4593d7ae4ffac72de52767aa70 /users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh | |
| parent | 27117202739f092d837af2752e4b9801c47b8ddb (diff) | |
Sketchybar now, got tired of the battery issue
Diffstat (limited to 'users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh')
| -rwxr-xr-x | users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh b/users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh new file mode 100755 index 0000000..c5d8ed0 --- /dev/null +++ b/users/ryan/modules/sketchybar/bar-config/plugins/front_app.sh | |||
| @@ -0,0 +1,10 @@ | |||
| 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 | ||
